Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.frame_a.r_0.1.|body1.frame_a.r_0.2.|body1.frame_a.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body1.w_a.1.|body1.w_a.2.|body1.w_a.3.|p2.s|p2.v",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.frame_a.r_0.1.|body1.frame_a.r_0.2.|body1.frame_a.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body1.w_a.1.|body1.w_a.2.|body1.w_a.3.|p2.s|p2.v",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001574/0.001585, allocations: 106.5 kB / 17.72 MB, free: 5.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0024/0.0024, allocations: 191 kB / 18.66 MB, free: 4.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.471/1.471, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001243, allocations: 55.92 kB / 328.5 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0898/0.09105, allocations: 46.61 MB / 375.2 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.2109/0.302, allocations: 12.04 MB / 387.2 MB, free: 6.512 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01076/0.3128, allocations: 4.193 MB / 391.4 MB, free: 4.031 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003178/0.3161, allocations: 69.19 kB / 391.5 MB, free: 4.02 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005697/0.3218, allocations: 2.76 MB / 394.2 MB, free: 2.727 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006589/0.3284, allocations: 1.971 MB / 396.2 MB, free: 1.812 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002424/0.3309, allocations: 0.8051 MB / 397 MB, free: 1.477 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009149/0.34, allocations: 4.623 MB / 401.6 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005778/0.3458, allocations: 3.563 MB / 405.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004415/0.3503, allocations: 1.701 MB / 406.9 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005917/0.3562, allocations: 2.345 MB / 409.2 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001573/0.3579, allocations: 353.1 kB / 409.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003993/0.3619, allocations: 1.273 MB / 410.8 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003242/0.3651, allocations: 2.119 MB / 413 MB, free: 9.621 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0045/0.3696, allocations: 2.434 MB / 415.4 MB, free: 7.23 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01025/0.3799, allocations: 7.536 MB / 422.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.995e-06/0.38, allocations: 0 / 422.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.38, allocations: 0 / 422.9 MB, free: 15.67 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000286/0.3803, allocations: 3.984 kB / 422.9 MB, free: 15.66 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1686 * Number of variables: 1686 Notification: Performance of Generate backend data structure: time 0.0118/0.3921, allocations: 5.278 MB / 428.2 MB, free: 10.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/0.3922, allocations: 16.03 kB / 428.2 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008126/0.4003, allocations: 2.104 MB / 430.3 MB, free: 8.188 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005633/0.406, allocations: 2.634 MB / 433 MB, free: 5.492 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00021/0.4062, allocations: 278.8 kB / 433.2 MB, free: 5.219 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001041/0.4073, allocations: 427.6 kB / 433.7 MB, free: 4.801 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02476/0.432, allocations: 12.23 MB / 445.9 MB, free: 7.762 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001289/0.4322, allocations: 47.53 kB / 445.9 MB, free: 7.715 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004592/0.4327, allocations: 171.8 kB / 446.1 MB, free: 7.547 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003231/0.4359, allocations: 2.166 MB / 448.3 MB, free: 5.379 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02207/0.458, allocations: 10.2 MB / 458.5 MB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05767/0.5157, allocations: 44.13 MB / 0.4908 GB, free: 13.77 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01137/0.5271, allocations: 4.614 MB / 0.4953 GB, free: 8.961 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002507/0.5297, allocations: 1.712 MB / 0.497 GB, free: 7.238 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01323/0.5429, allocations: 8.231 MB / 0.505 GB, free: 14.62 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.943e-05/0.543, allocations: 59.81 kB / 0.5051 GB, free: 14.55 MB / 446.1 MB Notification: Performance of pre-optimization done (n=183): time 5.17e-06/0.543, allocations: 0 / 0.5051 GB, free: 14.55 MB / 446.1 MB Notification: Performance of matching and sorting (n=205): time 0.03985/0.5829, allocations: 15.96 MB / 0.5207 GB, free: 14.41 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001469/0.5844, allocations: 1.692 MB / 0.5223 GB, free: 12.54 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005721/0.5902, allocations: 4.211 MB / 0.5264 GB, free: 8.305 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004127/0.5906, allocations: 57.61 kB / 0.5265 GB, free: 8.246 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002287/0.5929, allocations: 3.412 MB / 0.5298 GB, free: 4.785 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00107/0.594, allocations: 0.8022 MB / 0.5306 GB, free: 3.973 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00181/0.5958, allocations: 1.361 MB / 0.5319 GB, free: 2.602 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.5959, allocations: 305.1 kB / 0.5322 GB, free: 2.301 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003342/0.5993, allocations: 2.262 MB / 0.5344 GB, free: 36 kB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00642/0.6057, allocations: 6.398 MB / 0.5407 GB, free: 7.59 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2209/0.8266, allocations: 9.321 MB / 0.5498 GB, free: 140.6 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001324/0.8268, allocations: 41.97 kB / 0.5498 GB, free: 140.6 MB / 478.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02339/0.8502, allocations: 10.06 MB / 0.5597 GB, free: 138.3 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.319e-05/0.8503, allocations: 69.38 kB / 0.5597 GB, free: 138.3 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01172/0.862, allocations: 3.793 MB / 0.5634 GB, free: 137.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01049/0.8726, allocations: 2.162 MB / 0.5655 GB, free: 137.3 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00545/0.878, allocations: 1.586 MB / 0.5671 GB, free: 137.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008506/0.8866, allocations: 6.594 MB / 0.5735 GB, free: 133.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005344/0.892, allocations: 424.8 kB / 0.5739 GB, free: 133.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007865/0.8928, allocations: 424.6 kB / 0.5743 GB, free: 133.2 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 665 * Number of states: 0 () * Number of discrete variables: 45 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (856): * Single equations (assignments): 847 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002914/0.8957, allocations: 2.216 MB / 0.5765 GB, free: 132.3 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005093/0.8962, allocations: 374.3 kB / 0.5769 GB, free: 132.3 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005271/0.9015, allocations: 3.294 MB / 0.5801 GB, free: 131.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.004276/0.9058, allocations: 2.734 MB / 0.5827 GB, free: 130.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.285e-05/0.9058, allocations: 3.969 kB / 0.5827 GB, free: 130.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.325e-05/0.9059, allocations: 15.95 kB / 0.5828 GB, free: 130.1 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01527/0.9211, allocations: 10.34 MB / 0.5929 GB, free: 122.4 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.15e-05/0.9212, allocations: 22.73 kB / 0.5929 GB, free: 122.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001356/0.9226, allocations: 363.4 kB / 0.5932 GB, free: 122.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002548/0.9251, allocations: 0.983 MB / 0.5942 GB, free: 121.1 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001591/0.9253, allocations: 59.98 kB / 0.5942 GB, free: 121 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003838/0.9291, allocations: 4.899 MB / 0.599 GB, free: 115.9 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007041/0.9299, allocations: 1.565 MB / 0.6006 GB, free: 114.2 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007046/0.9369, allocations: 5.905 MB / 0.6063 GB, free: 108.2 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00172/0.9387, allocations: 0.6639 MB / 0.607 GB, free: 107.5 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003984/0.9391, allocations: 55.98 kB / 0.607 GB, free: 107.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001529/0.9406, allocations: 139.8 kB / 0.6072 GB, free: 107.4 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002843/0.9409, allocations: 178.3 kB / 0.6073 GB, free: 107.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001251/0.941, allocations: 75.97 kB / 0.6074 GB, free: 107.1 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003065/0.9441, allocations: 2.609 MB / 0.6099 GB, free: 104.5 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.9441, allocations: 0 / 0.6099 GB, free: 104.5 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005122/0.9492, allocations: 1.168 MB / 0.6111 GB, free: 103.3 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],p2.s,p2.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (180): * Single equations (assignments): 173 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005906/0.9498, allocations: 231.9 kB / 0.6113 GB, free: 103.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.009056/0.9589, allocations: 6.024 MB / 0.6172 GB, free: 97.05 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.482e-05/0.959, allocations: 4 kB / 0.6172 GB, free: 97.04 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003409/0.9624, allocations: 2.197 MB / 0.6193 GB, free: 94.78 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002995/0.9654, allocations: 0.5011 MB / 0.6198 GB, free: 94.29 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01451/0.9799, allocations: 10.63 MB / 0.6302 GB, free: 83.47 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003083/0.983, allocations: 3.467 MB / 0.6336 GB, free: 79.97 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003986/0.9871, allocations: 2.026 MB / 0.6356 GB, free: 77.94 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007822/0.9879, allocations: 276.6 kB / 0.6358 GB, free: 77.67 MB / 478.1 MB Notification: Performance of SimCode: time 1.012e-06/0.9879, allocations: 0 / 0.6358 GB, free: 77.67 MB / 478.1 MB Notification: Performance of Templates: time 0.06219/1.05, allocations: 38.42 MB / 0.6734 GB, free: 39.38 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches