Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.MultiBody.Forces.Spring,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|prismatic1.s|prismatic1.v",fileNamePrefix="ModelicaTest_3.2.3_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_3.2.3_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.001689/0.001689, allocations: 107.1 kB / 16.41 MB, free: 6.508 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.001712/0.001712, allocations: 189.5 kB / 17.34 MB, free: 5.742 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.704/1.704, allocations: 205.1 MB / 223.2 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2451/0.2451, allocations: 43.51 MB / 314.1 MB, free: 456 kB / 254.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.001618/0.001618, allocations: 73.47 kB / 441.8 MB, free: 5.621 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1503/0.1519, allocations: 57.78 MB / 499.6 MB, free: 11.76 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01326/0.1652, allocations: 11.45 MB / 0.4991 GB, free: 268 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01078/0.1761, allocations: 4.047 MB / 0.503 GB, free: 12.2 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002824/0.179, allocations: 67.81 kB / 0.5031 GB, free: 12.14 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005803/0.1848, allocations: 2.499 MB / 0.5055 GB, free: 9.629 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007466/0.1923, allocations: 1.922 MB / 0.5074 GB, free: 7.699 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002508/0.1949, allocations: 0.7877 MB / 0.5082 GB, free: 6.91 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007907/0.2028, allocations: 4.453 MB / 0.5125 GB, free: 2.445 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006332/0.2092, allocations: 3.346 MB / 0.5158 GB, free: 15.04 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003747/0.2129, allocations: 1.581 MB / 0.5173 GB, free: 13.46 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00436/0.2173, allocations: 2.231 MB / 0.5195 GB, free: 11.22 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001602/0.2189, allocations: 332 kB / 0.5198 GB, free: 10.89 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003272/0.2222, allocations: 0.9792 MB / 0.5208 GB, free: 9.914 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003298/0.2256, allocations: 1.944 MB / 0.5227 GB, free: 7.965 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00542/0.231, allocations: 2.264 MB / 0.5249 GB, free: 5.688 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3581/0.5892, allocations: 6.874 MB / 0.5316 GB, free: 16.08 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.746e-06/0.5892, allocations: 2.25 kB / 0.5316 GB, free: 16.08 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.5892, allocations: 0 / 0.5316 GB, free: 16.08 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003547/0.5896, allocations: 0.6562 kB / 0.5316 GB, free: 16.08 MB / 414.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.01608/0.6057, allocations: 4.832 MB / 0.5363 GB, free: 14.23 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.48e-05/0.6058, allocations: 13.58 kB / 0.5363 GB, free: 14.22 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008924/0.6147, allocations: 1.943 MB / 0.5382 GB, free: 13.94 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007392/0.6221, allocations: 2.477 MB / 0.5407 GB, free: 13.37 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000393/0.6225, allocations: 258.3 kB / 0.5409 GB, free: 13.36 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001706/0.6243, allocations: 329.8 kB / 0.5412 GB, free: 13.35 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02905/0.6533, allocations: 10.21 MB / 0.5512 GB, free: 10.95 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004522/0.6538, allocations: 48.97 kB / 0.5512 GB, free: 10.94 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001688/0.6555, allocations: 159.4 kB / 0.5514 GB, free: 10.87 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003552/0.6591, allocations: 1.905 MB / 0.5532 GB, free: 10.54 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01971/0.6788, allocations: 8.147 MB / 0.5612 GB, free: 8.254 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05805/0.7369, allocations: 39.26 MB / 0.5995 GB, free: 4.238 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008231/0.7452, allocations: 3.272 MB / 0.6027 GB, free: 0.8164 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001837/0.7471, allocations: 1.053 MB / 0.6038 GB, free: 15.75 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009993/0.7571, allocations: 5.919 MB / 0.6096 GB, free: 9.527 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.765e-05/0.7572, allocations: 54.94 kB / 0.6096 GB, free: 9.469 MB / 462.1 MB Notification: Performance of pre-optimization done (n=148): time 4.469e-06/0.7572, allocations: 0 / 0.6096 GB, free: 9.469 MB / 462.1 MB Notification: Performance of matching and sorting (n=160): time 0.02737/0.7846, allocations: 9.473 MB / 0.6189 GB, free: 15.92 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001741/0.7848, allocations: 198.5 kB / 0.619 GB, free: 15.68 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007445/0.7922, allocations: 4.071 MB / 0.623 GB, free: 11.59 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003388/0.7926, allocations: 49.7 kB / 0.6231 GB, free: 11.54 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002528/0.7952, allocations: 3.179 MB / 0.6262 GB, free: 8.371 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008845/0.7961, allocations: 0.6344 MB / 0.6268 GB, free: 7.742 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001753/0.7978, allocations: 1.217 MB / 0.628 GB, free: 6.516 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.798, allocations: 305.1 kB / 0.6283 GB, free: 6.215 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002896/0.8009, allocations: 1.656 MB / 0.6299 GB, free: 4.555 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00581/0.8067, allocations: 5.528 MB / 0.6353 GB, free: 13.16 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01052/0.8173, allocations: 7.781 MB / 0.6429 GB, free: 4 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000153/0.8174, allocations: 40 kB / 0.6429 GB, free: 3.961 MB / 494.1 MB Notification: Performance of matching and sorting (n=799) (initialization): time 0.01465/0.8321, allocations: 6.905 MB / 0.6497 GB, free: 13.2 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.817e-05/0.8323, allocations: 65.53 kB / 0.6497 GB, free: 13.13 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002181/0.8325, allocations: 136 kB / 0.6499 GB, free: 13 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001893/0.8327, allocations: 180 kB / 0.65 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004684/0.8374, allocations: 1.434 MB / 0.6514 GB, free: 11.39 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002303/0.8376, allocations: 271.2 kB / 0.6517 GB, free: 11.12 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004667/0.8423, allocations: 299.6 kB / 0.652 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005773/0.8429, allocations: 376 kB / 0.6523 GB, free: 10.46 MB / 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.003412/0.8463, allocations: 2.047 MB / 0.6543 GB, free: 8.406 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007145/0.847, allocations: 351.5 kB / 0.6547 GB, free: 8.059 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002299/0.8494, allocations: 1.339 MB / 0.656 GB, free: 6.703 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-05/0.8494, allocations: 20 kB / 0.656 GB, free: 6.684 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.088e-05/0.8494, allocations: 0 / 0.656 GB, free: 6.684 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.44e-05/0.8494, allocations: 7.969 kB / 0.656 GB, free: 6.676 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009618/0.8591, allocations: 5.824 MB / 0.6617 GB, free: 0.5742 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.522e-05/0.8591, allocations: 21.64 kB / 0.6617 GB, free: 0.5547 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001/0.8601, allocations: 279.7 kB / 0.662 GB, free: 288 kB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.662e-05/0.8602, allocations: 24 kB / 0.662 GB, free: 264 kB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001022/0.8603, allocations: 52 kB / 0.662 GB, free: 212 kB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.506e-05/0.8603, allocations: 37.73 kB / 0.6621 GB, free: 176 kB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-05/0.8604, allocations: 31.86 kB / 0.6621 GB, free: 144 kB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005181/0.8655, allocations: 3.276 MB / 0.6653 GB, free: 12.62 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002202/0.8678, allocations: 0.5198 MB / 0.6658 GB, free: 12.08 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006912/0.8685, allocations: 51.98 kB / 0.6659 GB, free: 12.03 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001375/0.8699, allocations: 55.97 kB / 0.6659 GB, free: 11.97 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002404/0.8701, allocations: 151.4 kB / 0.6661 GB, free: 11.82 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001571/0.8703, allocations: 67.98 kB / 0.6661 GB, free: 11.76 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.005775/0.8761, allocations: 2.523 MB / 0.6686 GB, free: 9.223 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.21e-07/0.8761, allocations: 0 / 0.6686 GB, free: 9.223 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00785/0.8839, allocations: 0.9209 MB / 0.6695 GB, free: 8.305 MB / 0.5137 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.0007249/0.8847, allocations: 194 kB / 0.6697 GB, free: 8.109 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007582/0.8923, allocations: 3.83 MB / 0.6734 GB, free: 4.312 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.168e-05/0.8924, allocations: 9.609 kB / 0.6734 GB, free: 4.305 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.001198/0.8936, allocations: 0.7377 MB / 0.6742 GB, free: 3.57 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003331/0.8969, allocations: 476.6 kB / 0.6746 GB, free: 3.109 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01683/0.9138, allocations: 8.758 MB / 0.6832 GB, free: 10.09 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003721/0.9176, allocations: 3.181 MB / 0.6863 GB, free: 6.879 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.00404/0.9216, allocations: 1.821 MB / 0.688 GB, free: 5.055 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005348/0.9222, allocations: 243.4 kB / 0.6883 GB, free: 4.816 MB / 0.5294 GB Notification: Performance of SimCode: time 9.81e-07/0.9222, allocations: 0 / 0.6883 GB, free: 4.816 MB / 0.5294 GB Notification: Performance of Templates: time 0.0563/0.9785, allocations: 25.33 MB / 0.713 GB, free: 11.62 MB / 0.5606 GB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.sim & ./ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/Spring/Spring.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches