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.001234/0.001234, allocations: 109.1 kB / 17.33 MB, free: 6.023 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.001309/0.001309, allocations: 193.3 kB / 18.25 MB, free: 5.117 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.396/1.396, allocations: 222.9 MB / 241.9 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2223/0.2223, allocations: 44.18 MB / 336.2 MB, free: 2.957 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 64.91 kB / 407.9 MB, free: 27.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1397/0.141, allocations: 60.83 MB / 468.7 MB, free: 14.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.04397/0.185, allocations: 42.83 MB / 0.4996 GB, free: 3.734 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2791/0.4642, allocations: 9.149 MB / 0.5085 GB, free: 10.84 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01124/0.4755, allocations: 183.7 kB / 0.5087 GB, free: 10.84 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005492/0.481, allocations: 2.391 MB / 0.511 GB, free: 10.79 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005725/0.4868, allocations: 1.744 MB / 0.5127 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002033/0.4889, allocations: 0.7279 MB / 0.5134 GB, free: 10.66 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.007248/0.4961, allocations: 4.447 MB / 0.5178 GB, free: 10.26 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004999/0.5011, allocations: 3.523 MB / 0.5212 GB, free: 8.926 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003392/0.5046, allocations: 1.582 MB / 0.5227 GB, free: 8.52 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003662/0.5082, allocations: 2.46 MB / 0.5251 GB, free: 7.727 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008399/0.5091, allocations: 332.8 kB / 0.5255 GB, free: 7.727 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002245/0.5114, allocations: 0.9963 MB / 0.5264 GB, free: 7.414 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001824/0.5132, allocations: 1.973 MB / 0.5284 GB, free: 6.277 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00253/0.5157, allocations: 2.276 MB / 0.5306 GB, free: 4.582 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009662/0.5254, allocations: 6.677 MB / 0.5371 GB, free: 160 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/0.5254, allocations: 0 / 0.5371 GB, free: 160 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.5255, allocations: 0 / 0.5371 GB, free: 160 kB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000298/0.5258, allocations: 0 / 0.5371 GB, free: 160 kB / 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.0125/0.5383, allocations: 4.825 MB / 0.5418 GB, free: 12.92 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.941e-05/0.5383, allocations: 13.88 kB / 0.5418 GB, free: 12.92 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00722/0.5456, allocations: 1.945 MB / 0.5437 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005153/0.5507, allocations: 2.341 MB / 0.546 GB, free: 8.672 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002153/0.551, allocations: 249.7 kB / 0.5463 GB, free: 8.465 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008353/0.5518, allocations: 332.9 kB / 0.5466 GB, free: 8.176 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01849/0.5703, allocations: 10.19 MB / 0.5565 GB, free: 13.31 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001364/0.5705, allocations: 59.52 kB / 0.5566 GB, free: 13.25 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004356/0.571, allocations: 157.4 kB / 0.5567 GB, free: 13.13 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0027/0.5737, allocations: 1.899 MB / 0.5586 GB, free: 11.24 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01648/0.5902, allocations: 8.144 MB / 0.5665 GB, free: 3.082 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04825/0.6384, allocations: 39.42 MB / 0.605 GB, free: 10.68 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007785/0.6463, allocations: 3.28 MB / 0.6082 GB, free: 7.238 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001609/0.6479, allocations: 1.057 MB / 0.6093 GB, free: 6.168 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008812/0.6567, allocations: 5.896 MB / 0.615 GB, free: 15.95 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.06e-05/0.6568, allocations: 51.5 kB / 0.6151 GB, free: 15.89 MB / 478.1 MB Notification: Performance of pre-optimization done (n=148): time 4.378e-06/0.6568, allocations: 0 / 0.6151 GB, free: 15.89 MB / 478.1 MB Notification: Performance of matching and sorting (n=160): time 0.02254/0.6794, allocations: 9.441 MB / 0.6243 GB, free: 6.344 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.113e-05/0.6795, allocations: 145.5 kB / 0.6244 GB, free: 6.168 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005715/0.6852, allocations: 4.051 MB / 0.6284 GB, free: 2.09 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002528/0.6855, allocations: 48.83 kB / 0.6284 GB, free: 2.039 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0022/0.6877, allocations: 3.181 MB / 0.6315 GB, free: 14.85 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007301/0.6884, allocations: 0.6367 MB / 0.6322 GB, free: 14.22 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00144/0.6899, allocations: 1.214 MB / 0.6333 GB, free: 13 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.69, allocations: 309.1 kB / 0.6336 GB, free: 12.69 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002436/0.6924, allocations: 1.652 MB / 0.6353 GB, free: 11.04 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005081/0.6975, allocations: 5.521 MB / 0.6406 GB, free: 3.582 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008767/0.7063, allocations: 7.792 MB / 0.6483 GB, free: 9.871 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001092/0.7065, allocations: 40 kB / 0.6483 GB, free: 9.832 MB / 0.4981 GB Notification: Performance of matching and sorting (n=799) (initialization): time 0.01321/0.7197, allocations: 6.891 MB / 0.655 GB, free: 2.934 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001063/0.7198, allocations: 70.44 kB / 0.6551 GB, free: 2.867 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001659/0.72, allocations: 140.1 kB / 0.6552 GB, free: 2.73 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001623/0.7202, allocations: 180 kB / 0.6554 GB, free: 2.555 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004393/0.7246, allocations: 1.439 MB / 0.6568 GB, free: 1.113 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002098/0.7248, allocations: 267.4 kB / 0.6571 GB, free: 0.8516 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00463/0.7294, allocations: 291.6 kB / 0.6573 GB, free: 0.5664 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000682/0.7301, allocations: 382.1 kB / 0.6577 GB, free: 200 kB / 0.4981 GB 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 (775): * Single equations (assignments): 772 * 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.00389/0.734, allocations: 2.037 MB / 0.6597 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008056/0.7349, allocations: 347.5 kB / 0.66 GB, free: 13.8 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003092/0.738, allocations: 1.348 MB / 0.6613 GB, free: 12.44 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.054e-05/0.738, allocations: 20 kB / 0.6614 GB, free: 12.42 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.212e-05/0.7381, allocations: 0 / 0.6614 GB, free: 12.42 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.6e-05/0.7381, allocations: 7.969 kB / 0.6614 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0143/0.7524, allocations: 5.825 MB / 0.667 GB, free: 6.312 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.328e-05/0.7525, allocations: 20.03 kB / 0.6671 GB, free: 6.293 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00106/0.7536, allocations: 287.5 kB / 0.6673 GB, free: 6.012 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.202e-05/0.7536, allocations: 24 kB / 0.6674 GB, free: 5.988 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001145/0.7537, allocations: 44 kB / 0.6674 GB, free: 5.945 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.882e-05/0.7538, allocations: 35.86 kB / 0.6674 GB, free: 5.91 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.848e-05/0.7538, allocations: 23.94 kB / 0.6675 GB, free: 5.887 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004613/0.7584, allocations: 3.282 MB / 0.6707 GB, free: 2.352 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001223/0.7597, allocations: 416.5 kB / 0.6711 GB, free: 1.922 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009919/0.7607, allocations: 51.98 kB / 0.6711 GB, free: 1.871 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001821/0.7625, allocations: 62.69 kB / 0.6712 GB, free: 1.812 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002062/0.7627, allocations: 151.4 kB / 0.6713 GB, free: 1.664 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001151/0.7629, allocations: 60 kB / 0.6714 GB, free: 1.605 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.005147/0.768, allocations: 2.515 MB / 0.6738 GB, free: 15.08 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.9e-07/0.768, allocations: 0 / 0.6738 GB, free: 15.08 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005905/0.7739, allocations: 0.9101 MB / 0.6747 GB, free: 14.17 MB / 0.5294 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 (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.0005606/0.7745, allocations: 202.1 kB / 0.6749 GB, free: 13.96 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007118/0.7816, allocations: 3.971 MB / 0.6788 GB, free: 10.03 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.952e-05/0.7817, allocations: 4 kB / 0.6788 GB, free: 10.02 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001184/0.7829, allocations: 0.7531 MB / 0.6795 GB, free: 9.273 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004687/0.7876, allocations: 472.1 kB / 0.68 GB, free: 8.809 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02366/0.8113, allocations: 10.79 MB / 0.6905 GB, free: 13.75 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006289/0.8176, allocations: 3.169 MB / 0.6936 GB, free: 10.55 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005696/0.8234, allocations: 1.824 MB / 0.6954 GB, free: 8.723 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009732/0.8244, allocations: 239.4 kB / 0.6956 GB, free: 8.488 MB / 0.545 GB Notification: Performance of SimCode: time 1.102e-06/0.8244, allocations: 0 / 0.6956 GB, free: 8.488 MB / 0.545 GB Notification: Performance of Templates: time 0.318/1.142, allocations: 28.63 MB / 0.7236 GB, free: 195.9 MB / 0.545 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches