Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.MultiBody.Forces.Spring,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring") translateModel(ModelicaTest.MultiBody.Forces.Spring,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008354/0.0008351, allocations: 96.39 kB / 16.99 MB, free: 6.402 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.0008033/0.0008034, allocations: 178 kB / 17.88 MB, free: 5.957 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.437/1.437, allocations: 223.2 MB / 241.8 MB, free: 368 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2423/0.2423, allocations: 44.22 MB / 337.1 MB, free: 2.91 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004249/0.0004251, allocations: 12.75 kB / 409.5 MB, free: 27.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.157/0.1574, allocations: 61.93 MB / 471.5 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.04083/0.1983, allocations: 36.62 MB / 0.4962 GB, free: 9.039 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3024/0.5008, allocations: 9.114 MB / 0.5051 GB, free: 9.996 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01079/0.5116, allocations: 182.3 kB / 0.5052 GB, free: 9.996 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009132/0.5208, allocations: 1.786 MB / 0.507 GB, free: 9.996 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02192/0.5428, allocations: 5.338 MB / 0.5122 GB, free: 9.91 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003442/0.5462, allocations: 0.6628 MB / 0.5128 GB, free: 9.906 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00639/0.5526, allocations: 2.497 MB / 0.5153 GB, free: 9.883 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007477/0.5601, allocations: 4.127 MB / 0.5193 GB, free: 9.227 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002561/0.5627, allocations: 1.071 MB / 0.5204 GB, free: 9.031 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002545/0.5653, allocations: 1.509 MB / 0.5218 GB, free: 8.684 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007182/0.566, allocations: 150.4 kB / 0.522 GB, free: 8.684 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00188/0.5679, allocations: 0.7214 MB / 0.5227 GB, free: 8.527 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001723/0.5697, allocations: 1.595 MB / 0.5242 GB, free: 8.191 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001124/0.5708, allocations: 0.8286 MB / 0.525 GB, free: 8.16 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005165/0.576, allocations: 5.231 MB / 0.5302 GB, free: 5.359 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.576, allocations: 2.188 kB / 0.5302 GB, free: 5.359 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.576, allocations: 0 / 0.5302 GB, free: 5.359 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002431/0.5762, allocations: 0 / 0.5302 GB, free: 5.359 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1535 * Number of variables: 1535 Notification: Performance of Generate backend data structure: time 0.007894/0.5841, allocations: 4.03 MB / 0.5341 GB, free: 2.891 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.5842, allocations: 8.5 kB / 0.5341 GB, free: 2.891 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008284/0.5925, allocations: 2.289 MB / 0.5363 GB, free: 1.863 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006768/0.5993, allocations: 2.496 MB / 0.5388 GB, free: 1.004 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000221/0.5995, allocations: 253.9 kB / 0.539 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001152/0.6007, allocations: 333.3 kB / 0.5393 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02101/0.6217, allocations: 10.28 MB / 0.5494 GB, free: 10.02 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001472/0.6219, allocations: 47.53 kB / 0.5494 GB, free: 9.992 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000441/0.6224, allocations: 161.7 kB / 0.5496 GB, free: 9.945 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002923/0.6253, allocations: 1.902 MB / 0.5514 GB, free: 8.375 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.018/0.6433, allocations: 8.234 MB / 0.5595 GB, free: 2.59 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05666/0.7, allocations: 39.54 MB / 0.5981 GB, free: 13.37 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008157/0.7082, allocations: 3.277 MB / 0.6013 GB, free: 9.941 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009699/0.7179, allocations: 5.968 MB / 0.6071 GB, free: 3.66 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.018e-05/0.718, allocations: 54.61 kB / 0.6072 GB, free: 3.602 MB / 446.1 MB Notification: Performance of pre-optimization done (n=148): time 4.709e-06/0.718, allocations: 0 / 0.6072 GB, free: 3.602 MB / 446.1 MB Notification: Performance of matching and sorting (n=160): time 0.02304/0.7411, allocations: 9.708 MB / 0.6167 GB, free: 9.762 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/0.7412, allocations: 149.5 kB / 0.6168 GB, free: 9.586 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00598/0.7472, allocations: 4.258 MB / 0.621 GB, free: 5.305 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002463/0.7475, allocations: 49.7 kB / 0.621 GB, free: 5.25 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002287/0.7498, allocations: 3.176 MB / 0.6241 GB, free: 2.09 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007941/0.7506, allocations: 0.6422 MB / 0.6247 GB, free: 1.453 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001974/0.7508, allocations: 127.8 kB / 0.6249 GB, free: 1.332 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0003783/0.7512, allocations: 0.5516 MB / 0.6254 GB, free: 0.7734 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002597/0.7538, allocations: 1.618 MB / 0.627 GB, free: 15.15 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005174/0.759, allocations: 5.444 MB / 0.6323 GB, free: 7.82 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004028/0.763, allocations: 2.912 MB / 0.6351 GB, free: 4.922 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.348e-05/0.7631, allocations: 44 kB / 0.6352 GB, free: 4.879 MB / 478.1 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.01076/0.7738, allocations: 6.807 MB / 0.6418 GB, free: 14.07 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.891e-05/0.7739, allocations: 64 kB / 0.6419 GB, free: 14 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001266/0.7741, allocations: 136.8 kB / 0.642 GB, free: 13.87 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001759/0.7743, allocations: 200 kB / 0.6422 GB, free: 13.68 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004009/0.7783, allocations: 1.423 MB / 0.6436 GB, free: 12.25 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001927/0.7785, allocations: 274.9 kB / 0.6439 GB, free: 11.98 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003804/0.7823, allocations: 295.5 kB / 0.6441 GB, free: 11.69 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004867/0.7828, allocations: 376 kB / 0.6445 GB, free: 11.32 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 625 * Number of states: 0 () * Number of discrete variables: 39 (prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (767): * Single equations (assignments): 764 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003309/0.7861, allocations: 2.039 MB / 0.6465 GB, free: 9.277 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006139/0.7867, allocations: 355.5 kB / 0.6468 GB, free: 8.926 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002085/0.7888, allocations: 1.333 MB / 0.6481 GB, free: 7.574 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.558e-05/0.7889, allocations: 18.97 kB / 0.6481 GB, free: 7.559 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/0.7889, allocations: 4 kB / 0.6481 GB, free: 7.555 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.291e-05/0.7889, allocations: 7.984 kB / 0.6482 GB, free: 7.547 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01006/0.799, allocations: 5.834 MB / 0.6539 GB, free: 1.438 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.517e-05/0.799, allocations: 17 kB / 0.6539 GB, free: 1.422 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001046/0.8001, allocations: 279.5 kB / 0.6541 GB, free: 1.148 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.384e-05/0.8001, allocations: 32 kB / 0.6542 GB, free: 1.117 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001031/0.8002, allocations: 55.94 kB / 0.6542 GB, free: 1.062 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.174e-05/0.8003, allocations: 39.86 kB / 0.6543 GB, free: 1.023 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.27e-05/0.8003, allocations: 27.88 kB / 0.6543 GB, free: 0.9961 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0054/0.8057, allocations: 5.274 MB / 0.6594 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00124/0.807, allocations: 432.4 kB / 0.6598 GB, free: 10.48 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003827/0.8074, allocations: 47.98 kB / 0.6599 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001156/0.8085, allocations: 66.09 kB / 0.66 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001714/0.8087, allocations: 151.2 kB / 0.6601 GB, free: 10.22 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/0.8088, allocations: 68 kB / 0.6602 GB, free: 10.15 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.004329/0.8132, allocations: 2.676 MB / 0.6628 GB, free: 7.465 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.11e-07/0.8132, allocations: 0 / 0.6628 GB, free: 7.465 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005635/0.8188, allocations: 0.9258 MB / 0.6637 GB, free: 6.539 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 78 * Number of states: 4 (prismatic.s,prismatic.v,prismatic1.s,prismatic1.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 (145): * Single equations (assignments): 142 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004919/0.8193, allocations: 220.8 kB / 0.6639 GB, free: 6.316 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00589/0.8252, allocations: 3.71 MB / 0.6675 GB, free: 2.641 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 9.748e-06/0.8253, allocations: 1.375 kB / 0.6675 GB, free: 2.641 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0009983/0.8263, allocations: 0.7489 MB / 0.6682 GB, free: 1.895 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002496/0.8288, allocations: 432.1 kB / 0.6687 GB, free: 1.469 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01548/0.8443, allocations: 10.39 MB / 0.6788 GB, free: 6.816 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00339/0.8477, allocations: 3.263 MB / 0.682 GB, free: 3.523 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.004448/0.8521, allocations: 1.812 MB / 0.6838 GB, free: 1.703 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000567/0.8527, allocations: 247.4 kB / 0.684 GB, free: 1.461 MB / 0.5137 GB Notification: Performance of SimCode: time 1.052e-06/0.8527, allocations: 0 / 0.684 GB, free: 1.461 MB / 0.5137 GB Notification: Performance of Templates: time 0.3257/1.178, allocations: 27.51 MB / 0.7109 GB, free: 179 MB / 0.5294 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.sim & ./ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Spring/Spring.csv","../files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches