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.001439/0.001439, allocations: 111.9 kB / 17.86 MB, free: 5.504 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.001532/0.001532, allocations: 201.9 kB / 18.78 MB, free: 4.586 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.458/1.458, allocations: 222.9 MB / 242.4 MB, free: 15.49 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.2267/0.2267, allocations: 44.18 MB / 336.8 MB, free: 2.992 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001308, allocations: 64.61 kB / 408.3 MB, free: 27.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1256/0.1269, allocations: 60.83 MB / 469.2 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.03915/0.1661, allocations: 42.84 MB / 0.5 GB, free: 3.824 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.298/0.4642, allocations: 9.237 MB / 0.509 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01334/0.4775, allocations: 182.1 kB / 0.5092 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007805/0.4854, allocations: 2.476 MB / 0.5116 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007952/0.4935, allocations: 1.748 MB / 0.5133 GB, free: 10.03 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002609/0.4961, allocations: 0.7163 MB / 0.514 GB, free: 10 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01088/0.507, allocations: 6.117 MB / 0.52 GB, free: 9.703 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006146/0.5132, allocations: 3.301 MB / 0.5232 GB, free: 8.605 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00342/0.5167, allocations: 1.388 MB / 0.5246 GB, free: 8.117 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003753/0.5204, allocations: 2.377 MB / 0.5269 GB, free: 6.941 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009845/0.5214, allocations: 242.7 kB / 0.5271 GB, free: 6.941 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002469/0.5239, allocations: 0.9384 MB / 0.5281 GB, free: 6.602 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002018/0.526, allocations: 1.884 MB / 0.5299 GB, free: 5.562 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002906/0.5289, allocations: 2.175 MB / 0.532 GB, free: 3.973 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005236/0.5341, allocations: 5.34 MB / 0.5372 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.546e-06/0.5342, allocations: 4 kB / 0.5372 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.5342, allocations: 6.562 kB / 0.5372 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002711/0.5345, allocations: 0 / 0.5372 GB, free: 0.5117 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.01199/0.5465, allocations: 4.818 MB / 0.5419 GB, free: 13.18 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.842e-05/0.5465, allocations: 12.03 kB / 0.542 GB, free: 13.17 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007817/0.5544, allocations: 1.948 MB / 0.5439 GB, free: 11.22 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006092/0.5605, allocations: 2.338 MB / 0.5461 GB, free: 8.848 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003093/0.5609, allocations: 254.5 kB / 0.5464 GB, free: 8.637 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001618/0.5625, allocations: 334.9 kB / 0.5467 GB, free: 8.344 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02368/0.5862, allocations: 10.2 MB / 0.5567 GB, free: 13.47 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002707/0.5865, allocations: 51.53 kB / 0.5567 GB, free: 13.42 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001403/0.5879, allocations: 157.9 kB / 0.5569 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003151/0.5911, allocations: 1.903 MB / 0.5587 GB, free: 11.41 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01883/0.61, allocations: 8.152 MB / 0.5667 GB, free: 3.242 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05371/0.6637, allocations: 39.41 MB / 0.6052 GB, free: 10.85 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008523/0.6723, allocations: 3.271 MB / 0.6084 GB, free: 7.414 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002142/0.6745, allocations: 1.065 MB / 0.6094 GB, free: 6.34 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01392/0.6884, allocations: 5.9 MB / 0.6152 GB, free: 116 kB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.56e-05/0.6886, allocations: 59.48 kB / 0.6152 GB, free: 48 kB / 462.1 MB Notification: Performance of pre-optimization done (n=148): time 9.288e-06/0.6886, allocations: 0 / 0.6152 GB, free: 48 kB / 462.1 MB Notification: Performance of matching and sorting (n=160): time 0.02712/0.7157, allocations: 9.436 MB / 0.6244 GB, free: 6.512 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.811e-05/0.7159, allocations: 145.5 kB / 0.6246 GB, free: 6.336 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008097/0.724, allocations: 4.047 MB / 0.6285 GB, free: 2.262 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000301/0.7243, allocations: 45.7 kB / 0.6286 GB, free: 2.211 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002925/0.7273, allocations: 3.179 MB / 0.6317 GB, free: 15.03 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009841/0.7283, allocations: 0.6363 MB / 0.6323 GB, free: 14.39 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002901/0.7312, allocations: 1.213 MB / 0.6335 GB, free: 13.17 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001121/0.7313, allocations: 313 kB / 0.6338 GB, free: 12.86 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003247/0.7346, allocations: 1.652 MB / 0.6354 GB, free: 11.21 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006219/0.7408, allocations: 5.517 MB / 0.6408 GB, free: 3.758 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01021/0.7511, allocations: 7.803 MB / 0.6484 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001692/0.7513, allocations: 36 kB / 0.6484 GB, free: 10 MB / 0.4981 GB Notification: Performance of matching and sorting (n=799) (initialization): time 0.0159/0.7672, allocations: 6.898 MB / 0.6552 GB, free: 3.094 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001973/0.7675, allocations: 66.5 kB / 0.6552 GB, free: 3.031 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002443/0.7677, allocations: 140 kB / 0.6554 GB, free: 2.895 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002368/0.768, allocations: 180 kB / 0.6555 GB, free: 2.719 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005179/0.7732, allocations: 1.435 MB / 0.6569 GB, free: 1.281 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003115/0.7735, allocations: 274.9 kB / 0.6572 GB, free: 1.012 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00508/0.7786, allocations: 291.6 kB / 0.6575 GB, free: 0.7266 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001326/0.78, allocations: 372 kB / 0.6578 GB, free: 372 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.005849/0.7858, allocations: 2.051 MB / 0.6598 GB, free: 14.3 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00105/0.7869, allocations: 347.5 kB / 0.6602 GB, free: 13.96 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003616/0.7906, allocations: 1.333 MB / 0.6615 GB, free: 12.61 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.665e-05/0.7906, allocations: 16 kB / 0.6615 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.839e-05/0.7907, allocations: 7.938 kB / 0.6615 GB, free: 12.59 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.065e-05/0.7907, allocations: 11.97 kB / 0.6615 GB, free: 12.57 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01589/0.8066, allocations: 5.817 MB / 0.6672 GB, free: 6.48 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.963e-05/0.8067, allocations: 16 kB / 0.6672 GB, free: 6.465 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001307/0.808, allocations: 284.4 kB / 0.6675 GB, free: 6.188 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.335e-05/0.8081, allocations: 27.94 kB / 0.6675 GB, free: 6.16 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001946/0.8083, allocations: 50.19 kB / 0.6675 GB, free: 6.113 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.774e-05/0.8083, allocations: 39.86 kB / 0.6676 GB, free: 6.074 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3e-05/0.8084, allocations: 27.88 kB / 0.6676 GB, free: 6.047 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005425/0.8138, allocations: 3.282 MB / 0.6708 GB, free: 2.512 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001353/0.8152, allocations: 416.5 kB / 0.6712 GB, free: 2.082 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001039/0.8162, allocations: 51.98 kB / 0.6713 GB, free: 2.031 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001968/0.8182, allocations: 55.97 kB / 0.6713 GB, free: 1.977 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000339/0.8186, allocations: 146.6 kB / 0.6715 GB, free: 1.836 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001593/0.8188, allocations: 71.98 kB / 0.6715 GB, free: 1.766 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.005789/0.8246, allocations: 2.511 MB / 0.674 GB, free: 15.24 MB / 0.5294 GB Notification: Performance of sort global known variables: time 6.11e-07/0.8246, allocations: 0 / 0.674 GB, free: 15.24 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006694/0.8313, allocations: 0.9062 MB / 0.6749 GB, free: 14.34 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.0007097/0.8321, allocations: 189.7 kB / 0.675 GB, free: 14.14 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00794/0.84, allocations: 3.781 MB / 0.6787 GB, free: 10.39 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.082e-05/0.8401, allocations: 192 / 0.6787 GB, free: 10.39 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001436/0.8416, allocations: 0.7515 MB / 0.6795 GB, free: 9.648 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004898/0.8465, allocations: 455 kB / 0.6799 GB, free: 9.199 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02437/0.8709, allocations: 11.22 MB / 0.6909 GB, free: 13.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006909/0.8779, allocations: 3.165 MB / 0.6939 GB, free: 10.51 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001489/0.8795, allocations: 291.4 kB / 0.6942 GB, free: 10.22 MB / 0.545 GB Notification: Performance of SimCode: time 1.663e-06/0.8795, allocations: 0 / 0.6942 GB, free: 10.22 MB / 0.545 GB Notification: Performance of Templates: time 0.3547/1.234, allocations: 53.12 MB / 0.7461 GB, free: 177.4 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/MultiBody/Forces/Spring/Spring.csv","/var/lib/jenkins1/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