Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p1.s|p1.v|p2.s|p2.v",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001111/0.001111, allocations: 109.4 kB / 17.16 MB, free: 6.082 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.0012/0.0012, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 222.9 MB / 241.8 MB, free: 15.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001444/0.001444, allocations: 47.19 kB / 300.6 MB, free: 6.309 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1115, allocations: 49.45 MB / 350.1 MB, free: 4.848 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem): time 0.2122/0.3237, allocations: 38.65 MB / 388.7 MB, free: 5.199 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0173/0.3411, allocations: 8.491 MB / 397.2 MB, free: 16 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008243/0.3494, allocations: 163.7 kB / 397.4 MB, free: 15.99 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005362/0.3548, allocations: 2.213 MB / 399.6 MB, free: 14.97 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005904/0.3607, allocations: 1.699 MB / 401.3 MB, free: 14.05 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002101/0.3629, allocations: 0.6623 MB / 401.9 MB, free: 13.62 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.008447/0.3713, allocations: 5.853 MB / 407.8 MB, free: 10.63 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005373/0.3767, allocations: 2.874 MB / 410.7 MB, free: 8.273 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003128/0.3799, allocations: 1.323 MB / 412 MB, free: 6.945 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003954/0.3839, allocations: 2.231 MB / 414.2 MB, free: 4.707 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001078/0.385, allocations: 212 kB / 414.4 MB, free: 4.5 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002691/0.3877, allocations: 0.9166 MB / 415.3 MB, free: 3.582 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002621/0.3903, allocations: 1.765 MB / 417.1 MB, free: 1.812 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00373/0.3941, allocations: 2.046 MB / 419.2 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006131/0.4002, allocations: 4.95 MB / 424.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.4003, allocations: 0 / 424.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.4003, allocations: 3.938 kB / 424.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002777/0.4006, allocations: 0 / 424.1 MB, free: 10.79 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1469 * Number of variables: 1469 Notification: Performance of Generate backend data structure: time 0.01132/0.4119, allocations: 4.596 MB / 428.7 MB, free: 6.121 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/0.412, allocations: 12.03 kB / 428.7 MB, free: 6.109 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007836/0.4198, allocations: 1.925 MB / 430.6 MB, free: 4.176 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004947/0.4248, allocations: 2.242 MB / 432.9 MB, free: 1.871 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002446/0.4251, allocations: 233.6 kB / 433.1 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001015/0.4261, allocations: 295.8 kB / 433.4 MB, free: 1.352 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01757/0.4437, allocations: 9.635 MB / 443 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001793/0.4439, allocations: 47.59 kB / 443.1 MB, free: 6.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009993/0.4449, allocations: 147.8 kB / 443.2 MB, free: 6.766 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003064/0.448, allocations: 1.92 MB / 445.1 MB, free: 4.844 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01545/0.4635, allocations: 7.639 MB / 452.8 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04428/0.5078, allocations: 37.74 MB / 490.5 MB, free: 6.281 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00702/0.5148, allocations: 2.885 MB / 493.4 MB, free: 3.254 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001404/0.5163, allocations: 0.8734 MB / 494.3 MB, free: 2.371 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006306/0.5226, allocations: 3.763 MB / 498 MB, free: 14.41 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.097e-05/0.5227, allocations: 47.16 kB / 498.1 MB, free: 14.35 MB / 414.1 MB Notification: Performance of pre-optimization done (n=134): time 4.058e-06/0.5227, allocations: 7.938 kB / 498.1 MB, free: 14.34 MB / 414.1 MB Notification: Performance of matching and sorting (n=152): time 0.02462/0.5473, allocations: 9.013 MB / 0.4952 GB, free: 5.207 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001108/0.5475, allocations: 153.4 kB / 0.4954 GB, free: 5.027 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007295/0.5548, allocations: 3.916 MB / 0.4992 GB, free: 1.129 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002699/0.5551, allocations: 49.69 kB / 0.4992 GB, free: 1.074 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00287/0.558, allocations: 3.078 MB / 0.5023 GB, free: 13.95 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008508/0.5589, allocations: 0.6095 MB / 0.5028 GB, free: 13.33 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002393/0.5613, allocations: 1.163 MB / 0.504 GB, free: 12.16 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.5614, allocations: 305.1 kB / 0.5043 GB, free: 11.86 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00295/0.5644, allocations: 1.585 MB / 0.5058 GB, free: 10.27 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00605/0.5705, allocations: 5.351 MB / 0.511 GB, free: 3.016 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00981/0.5803, allocations: 7.544 MB / 0.5184 GB, free: 9.59 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001679/0.5805, allocations: 40 kB / 0.5185 GB, free: 9.551 MB / 446.1 MB Notification: Performance of matching and sorting (n=770) (initialization): time 0.0136/0.5941, allocations: 6.662 MB / 0.525 GB, free: 2.887 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001485/0.5943, allocations: 64.47 kB / 0.525 GB, free: 2.824 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002374/0.5945, allocations: 132 kB / 0.5251 GB, free: 2.695 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002299/0.5948, allocations: 176 kB / 0.5253 GB, free: 2.523 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004518/0.5993, allocations: 1.384 MB / 0.5267 GB, free: 1.137 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002733/0.5996, allocations: 263 kB / 0.5269 GB, free: 0.8789 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00433/0.604, allocations: 295.7 kB / 0.5272 GB, free: 0.5898 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000898/0.6049, allocations: 367.9 kB / 0.5275 GB, free: 240 kB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 612 * Number of states: 0 () * Number of discrete variables: 36 (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],p1.boxColor[3],p1.boxColor[2],p1.boxColor[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 (746): * Single equations (assignments): 743 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.2363/0.8412, allocations: 1.971 MB / 0.5295 GB, free: 115.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001063/0.8423, allocations: 335.1 kB / 0.5298 GB, free: 115.8 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003936/0.8462, allocations: 1.249 MB / 0.531 GB, free: 115.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.963e-05/0.8463, allocations: 20.09 kB / 0.531 GB, free: 115.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.473e-05/0.8463, allocations: 1.625 kB / 0.531 GB, free: 115.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.873e-05/0.8464, allocations: 8.016 kB / 0.531 GB, free: 115.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01575/0.8621, allocations: 5.741 MB / 0.5366 GB, free: 114.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.705e-05/0.8622, allocations: 18.12 kB / 0.5367 GB, free: 114.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001594/0.8638, allocations: 276.2 kB / 0.5369 GB, free: 114.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.193e-05/0.8639, allocations: 26.88 kB / 0.537 GB, free: 114.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000139/0.864, allocations: 56.28 kB / 0.537 GB, free: 114.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.191e-05/0.8641, allocations: 38.28 kB / 0.537 GB, free: 114.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.758e-05/0.8641, allocations: 37.81 kB / 0.5371 GB, free: 114.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005794/0.8699, allocations: 3.212 MB / 0.5402 GB, free: 113.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001409/0.8714, allocations: 411.9 kB / 0.5406 GB, free: 113.4 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001003/0.8724, allocations: 52.88 kB / 0.5407 GB, free: 113.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00253/0.875, allocations: 63.38 kB / 0.5407 GB, free: 113.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003018/0.8753, allocations: 150.8 kB / 0.5409 GB, free: 113.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001861/0.8755, allocations: 65.45 kB / 0.5409 GB, free: 113.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00475/0.8803, allocations: 2.44 MB / 0.5433 GB, free: 113 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.91e-07/0.8803, allocations: 0 / 0.5433 GB, free: 113 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005183/0.8855, allocations: 0.8681 MB / 0.5442 GB, free: 112.9 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 82 * Number of states: 4 (p1.s,p1.v,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 (142): * Single equations (assignments): 139 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005464/0.886, allocations: 211.9 kB / 0.5444 GB, free: 112.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005538/0.8916, allocations: 3.632 MB / 0.5479 GB, free: 112 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.767e-05/0.8916, allocations: 4 kB / 0.5479 GB, free: 112 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001086/0.8927, allocations: 0.7248 MB / 0.5486 GB, free: 111.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003861/0.8966, allocations: 440.9 kB / 0.549 GB, free: 111.6 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01556/0.9122, allocations: 10.91 MB / 0.5597 GB, free: 105.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003733/0.916, allocations: 3.09 MB / 0.5627 GB, free: 103.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000806/0.9168, allocations: 282 kB / 0.563 GB, free: 103.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.273e-06/0.9168, allocations: 0 / 0.563 GB, free: 103.7 MB / 446.1 MB Notification: Performance of Templates: time 0.06526/0.9821, allocations: 51.14 MB / 0.6129 GB, free: 53.3 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/SpringMassSystem/SpringMassSystem.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringMassSystem.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches