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.001135/0.001135, allocations: 109.4 kB / 18.35 MB, free: 4.512 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.001131/0.001131, allocations: 192 kB / 19.29 MB, free: 3.578 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.326/1.326, allocations: 205.1 MB / 225.2 MB, free: 12.28 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.002037/0.002037, allocations: 55.92 kB / 282.1 MB, free: 2.477 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1097, allocations: 46.61 MB / 328.7 MB, free: 3.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem): time 0.01203/0.1217, allocations: 12.05 MB / 340.8 MB, free: 7.676 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008266/0.13, allocations: 4.185 MB / 345 MB, free: 3.477 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0013/0.1314, allocations: 71.81 kB / 345 MB, free: 3.406 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00473/0.1362, allocations: 2.768 MB / 347.8 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004887/0.1411, allocations: 1.961 MB / 349.8 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001713/0.1428, allocations: 0.8189 MB / 350.6 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005742/0.1485, allocations: 4.624 MB / 355.2 MB, free: 9.199 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003892/0.1525, allocations: 3.548 MB / 358.8 MB, free: 5.609 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002469/0.1549, allocations: 1.701 MB / 360.5 MB, free: 3.902 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003185/0.1581, allocations: 2.34 MB / 362.8 MB, free: 1.555 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000751/0.1589, allocations: 352 kB / 363.1 MB, free: 1.211 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002216/0.1611, allocations: 1.272 MB / 364.4 MB, free: 15.94 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001824/0.163, allocations: 2.116 MB / 366.5 MB, free: 13.82 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002452/0.1654, allocations: 2.435 MB / 369 MB, free: 11.37 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009024/0.1745, allocations: 7.536 MB / 376.5 MB, free: 3.805 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.1745, allocations: 0 / 376.5 MB, free: 3.805 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.033e-06/0.1745, allocations: 0 / 376.5 MB, free: 3.805 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002644/0.1748, allocations: 0 / 376.5 MB, free: 3.805 MB / 318.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.1685/0.3433, allocations: 5.278 MB / 381.8 MB, free: 49.71 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.3434, allocations: 9.625 kB / 381.8 MB, free: 49.71 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008406/0.3518, allocations: 2.108 MB / 383.9 MB, free: 49.32 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006907/0.3587, allocations: 2.633 MB / 386.5 MB, free: 48.06 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002465/0.359, allocations: 275.1 kB / 386.8 MB, free: 47.98 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00126/0.3603, allocations: 431.9 kB / 387.2 MB, free: 47.88 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02025/0.3805, allocations: 12.22 MB / 399.4 MB, free: 41.1 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001163/0.3807, allocations: 51.47 kB / 399.5 MB, free: 41.05 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004438/0.3812, allocations: 176.9 kB / 399.7 MB, free: 40.88 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002578/0.3837, allocations: 2.158 MB / 401.8 MB, free: 38.71 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01758/0.4013, allocations: 10.2 MB / 412 MB, free: 28.49 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04745/0.4488, allocations: 44.14 MB / 456.2 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01078/0.4597, allocations: 4.607 MB / 460.8 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002364/0.4621, allocations: 1.724 MB / 462.5 MB, free: 8.637 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01163/0.4737, allocations: 8.229 MB / 470.7 MB, free: 28 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.05e-05/0.4738, allocations: 61.69 kB / 470.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of pre-optimization done (n=183): time 4.198e-06/0.4738, allocations: 0 / 470.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=205): time 0.04065/0.5145, allocations: 15.95 MB / 486.7 MB, free: 15.83 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001423/0.5159, allocations: 1.688 MB / 488.4 MB, free: 13.96 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006407/0.5224, allocations: 4.211 MB / 492.6 MB, free: 9.73 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004343/0.5228, allocations: 49.7 kB / 492.7 MB, free: 9.676 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002446/0.5253, allocations: 3.412 MB / 496.1 MB, free: 6.219 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001042/0.5263, allocations: 0.8062 MB / 496.9 MB, free: 5.402 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001647/0.528, allocations: 1.357 MB / 498.2 MB, free: 4.035 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.382e-05/0.5281, allocations: 305.1 kB / 498.5 MB, free: 3.734 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003303/0.5314, allocations: 2.266 MB / 0.4891 GB, free: 1.465 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005569/0.537, allocations: 6.398 MB / 0.4953 GB, free: 9.016 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00995/0.547, allocations: 9.326 MB / 0.5044 GB, free: 13.64 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.986e-05/0.5471, allocations: 40 kB / 0.5045 GB, free: 13.6 MB / 414.1 MB Notification: Performance of matching and sorting (n=894) (initialization): time 0.02268/0.5698, allocations: 10.07 MB / 0.5143 GB, free: 3.516 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001684/0.57, allocations: 64 kB / 0.5144 GB, free: 3.453 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01119/0.5812, allocations: 3.792 MB / 0.5181 GB, free: 15.64 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01028/0.5915, allocations: 2.168 MB / 0.5202 GB, free: 13.46 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00534/0.5969, allocations: 1.579 MB / 0.5217 GB, free: 11.88 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008784/0.6057, allocations: 6.602 MB / 0.5282 GB, free: 4.996 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00511/0.6108, allocations: 427.5 kB / 0.5286 GB, free: 4.578 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001387/0.6123, allocations: 420 kB / 0.529 GB, free: 4.168 MB / 430.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.005185/0.6175, allocations: 2.224 MB / 0.5311 GB, free: 1.934 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009996/0.6185, allocations: 379.1 kB / 0.5315 GB, free: 1.559 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1675/0.786, allocations: 3.28 MB / 0.5347 GB, free: 142.5 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005239/0.7913, allocations: 2.74 MB / 0.5374 GB, free: 142.4 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.759e-05/0.7914, allocations: 4.781 kB / 0.5374 GB, free: 142.4 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-05/0.7914, allocations: 13.05 kB / 0.5374 GB, free: 142.4 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01751/0.8089, allocations: 10.33 MB / 0.5475 GB, free: 138.4 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.263e-05/0.809, allocations: 13.75 kB / 0.5475 GB, free: 138.4 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001466/0.8105, allocations: 368.4 kB / 0.5479 GB, free: 138.4 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002641/0.8131, allocations: 0.9881 MB / 0.5488 GB, free: 138.2 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001543/0.8133, allocations: 62.7 kB / 0.5489 GB, free: 138.2 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003907/0.8172, allocations: 4.9 MB / 0.5537 GB, free: 134.9 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0006997/0.8179, allocations: 1.556 MB / 0.5552 GB, free: 133.4 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007603/0.8255, allocations: 5.91 MB / 0.561 GB, free: 130.8 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001761/0.8273, allocations: 0.6568 MB / 0.5616 GB, free: 130.5 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004176/0.8277, allocations: 60.19 kB / 0.5617 GB, free: 130.5 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001533/0.8293, allocations: 147.4 kB / 0.5618 GB, free: 130.4 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002837/0.8296, allocations: 169.4 kB / 0.562 GB, free: 130.4 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001308/0.8297, allocations: 74.91 kB / 0.562 GB, free: 130.3 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003129/0.8328, allocations: 2.615 MB / 0.5646 GB, free: 129 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.8328, allocations: 3.906 kB / 0.5646 GB, free: 129 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00447/0.8373, allocations: 1.159 MB / 0.5657 GB, free: 128.9 MB / 430.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.000415/0.8377, allocations: 224.1 kB / 0.5659 GB, free: 128.7 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.007993/0.8458, allocations: 6.039 MB / 0.5718 GB, free: 123.2 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.131e-05/0.8458, allocations: 0 / 0.5718 GB, free: 123.2 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00332/0.8491, allocations: 2.195 MB / 0.574 GB, free: 121 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003042/0.8522, allocations: 0.4954 MB / 0.5745 GB, free: 120.5 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01396/0.8661, allocations: 10.63 MB / 0.5848 GB, free: 109.8 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002843/0.869, allocations: 3.473 MB / 0.5882 GB, free: 106.3 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003778/0.8728, allocations: 2.019 MB / 0.5902 GB, free: 104.2 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006018/0.8734, allocations: 275.4 kB / 0.5905 GB, free: 104 MB / 430.1 MB Notification: Performance of SimCode: time 1.252e-06/0.8734, allocations: 0 / 0.5905 GB, free: 104 MB / 430.1 MB Notification: Performance of Templates: time 0.05918/0.9326, allocations: 36.29 MB / 0.6259 GB, free: 67.83 MB / 430.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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringDamperSystem/SpringDamperSystem.csv","/var/lib/jenkins1/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