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.001073/0.001073, allocations: 113.4 kB / 17.78 MB, free: 5.266 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.001165/0.001165, allocations: 184.9 kB / 18.71 MB, free: 4.344 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.364/1.364, allocations: 222.9 MB / 242.4 MB, free: 15.04 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.2122/0.2122, allocations: 44.17 MB / 336.7 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002033/0.002033, allocations: 63.91 kB / 470.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4513/0.4534, allocations: 60.81 MB / 0.5189 GB, free: 3.867 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.01236/0.4658, allocations: 11.4 MB / 0.53 GB, free: 11.75 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.009934/0.4758, allocations: 4.038 MB / 0.534 GB, free: 8.598 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002782/0.4786, allocations: 66.16 kB / 0.534 GB, free: 8.586 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005676/0.4843, allocations: 2.485 MB / 0.5365 GB, free: 6.902 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006326/0.4908, allocations: 1.872 MB / 0.5383 GB, free: 5.582 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002209/0.493, allocations: 0.7821 MB / 0.5391 GB, free: 5.039 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.007627/0.5006, allocations: 4.429 MB / 0.5434 GB, free: 2.703 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006054/0.5067, allocations: 3.331 MB / 0.5466 GB, free: 15.71 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003757/0.5105, allocations: 1.553 MB / 0.5482 GB, free: 14.15 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003644/0.5142, allocations: 2.224 MB / 0.5503 GB, free: 11.92 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001012/0.5152, allocations: 332 kB / 0.5506 GB, free: 11.59 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002291/0.5175, allocations: 0.987 MB / 0.5516 GB, free: 10.61 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001776/0.5193, allocations: 1.932 MB / 0.5535 GB, free: 8.668 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002448/0.5218, allocations: 2.249 MB / 0.5557 GB, free: 6.406 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009215/0.531, allocations: 6.87 MB / 0.5624 GB, free: 15.51 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.531, allocations: 3.938 kB / 0.5624 GB, free: 15.51 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.5311, allocations: 4 kB / 0.5624 GB, free: 15.5 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002186/0.5313, allocations: 0 / 0.5624 GB, free: 15.5 MB / 430.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.009401/0.5407, allocations: 4.827 MB / 0.5671 GB, free: 10.61 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.5408, allocations: 8.031 kB / 0.5671 GB, free: 10.6 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006815/0.5476, allocations: 1.941 MB / 0.569 GB, free: 8.648 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004629/0.5522, allocations: 2.387 MB / 0.5714 GB, free: 6.199 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002037/0.5525, allocations: 258.4 kB / 0.5716 GB, free: 5.945 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006064/0.5531, allocations: 331.8 kB / 0.5719 GB, free: 5.621 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01796/0.571, allocations: 10.2 MB / 0.5819 GB, free: 10.62 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001477/0.5712, allocations: 47.53 kB / 0.5819 GB, free: 10.58 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004433/0.5717, allocations: 159.8 kB / 0.5821 GB, free: 10.42 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002974/0.5747, allocations: 1.904 MB / 0.5839 GB, free: 8.516 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0175/0.5922, allocations: 8.146 MB / 0.5919 GB, free: 360 kB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04937/0.6416, allocations: 39.27 MB / 0.6302 GB, free: 7.891 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007751/0.6494, allocations: 3.276 MB / 0.6334 GB, free: 4.449 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001516/0.6509, allocations: 1.053 MB / 0.6345 GB, free: 3.375 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008662/0.6596, allocations: 5.891 MB / 0.6402 GB, free: 13.11 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.989e-05/0.6597, allocations: 63.44 kB / 0.6403 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=148): time 3.626e-06/0.6597, allocations: 3.938 kB / 0.6403 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of matching and sorting (n=160): time 0.02211/0.6818, allocations: 9.427 MB / 0.6495 GB, free: 3.504 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001141/0.682, allocations: 192.9 kB / 0.6497 GB, free: 3.27 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005134/0.6871, allocations: 4.055 MB / 0.6536 GB, free: 15.19 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 0.000163/0.6873, allocations: 45.7 kB / 0.6537 GB, free: 15.14 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.001977/0.6893, allocations: 3.186 MB / 0.6568 GB, free: 11.9 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005347/0.6898, allocations: 0.6327 MB / 0.6574 GB, free: 11.26 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001247/0.6911, allocations: 1.218 MB / 0.6586 GB, free: 10.03 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 9.267e-05/0.6912, allocations: 305.1 kB / 0.6589 GB, free: 9.73 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002327/0.6935, allocations: 1.652 MB / 0.6605 GB, free: 8.074 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004618/0.6981, allocations: 5.522 MB / 0.6659 GB, free: 0.6133 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01184/0.71, allocations: 7.786 MB / 0.6735 GB, free: 6.91 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001956/0.7102, allocations: 40 kB / 0.6735 GB, free: 6.871 MB / 0.5294 GB Notification: Performance of matching and sorting (n=799) (initialization): time 0.02224/0.7325, allocations: 6.902 MB / 0.6803 GB, free: 15.96 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001569/0.7327, allocations: 64 kB / 0.6803 GB, free: 15.89 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002993/0.733, allocations: 140 kB / 0.6805 GB, free: 15.76 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003182/0.7333, allocations: 180.2 kB / 0.6806 GB, free: 15.58 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007703/0.741, allocations: 1.431 MB / 0.682 GB, free: 14.15 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003844/0.7415, allocations: 271.3 kB / 0.6823 GB, free: 13.88 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007754/0.7492, allocations: 299.5 kB / 0.6826 GB, free: 13.59 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001339/0.7506, allocations: 388 kB / 0.683 GB, free: 13.21 MB / 0.545 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.005829/0.7564, allocations: 2.029 MB / 0.6849 GB, free: 11.17 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0012/0.7577, allocations: 352 kB / 0.6853 GB, free: 10.82 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003236/0.7609, allocations: 1.333 MB / 0.6866 GB, free: 9.477 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.273e-05/0.761, allocations: 20 kB / 0.6866 GB, free: 9.457 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.682e-05/0.761, allocations: 0 / 0.6866 GB, free: 9.457 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.79e-05/0.761, allocations: 11.86 kB / 0.6866 GB, free: 9.445 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0125/0.7735, allocations: 5.825 MB / 0.6923 GB, free: 3.309 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.487e-05/0.7736, allocations: 16 kB / 0.6923 GB, free: 3.293 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009928/0.7746, allocations: 283.6 kB / 0.6926 GB, free: 3.016 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.299e-05/0.7746, allocations: 24 kB / 0.6926 GB, free: 2.992 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.547e-05/0.7747, allocations: 59.98 kB / 0.6927 GB, free: 2.934 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.441e-05/0.7748, allocations: 35.86 kB / 0.6927 GB, free: 2.898 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-05/0.7748, allocations: 27.88 kB / 0.6927 GB, free: 2.871 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003983/0.7788, allocations: 3.29 MB / 0.6959 GB, free: 15.32 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009352/0.7797, allocations: 416.5 kB / 0.6963 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003269/0.78, allocations: 51.97 kB / 0.6964 GB, free: 14.84 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001132/0.7812, allocations: 59.95 kB / 0.6964 GB, free: 14.79 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000189/0.7814, allocations: 147.5 kB / 0.6966 GB, free: 14.64 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.46e-05/0.7815, allocations: 68 kB / 0.6966 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.004021/0.7855, allocations: 2.511 MB / 0.6991 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.31e-07/0.7855, allocations: 3.938 kB / 0.6991 GB, free: 12.04 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00534/0.7909, allocations: 0.9023 MB / 0.7 GB, free: 11.14 MB / 0.5606 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.0004478/0.7913, allocations: 202.7 kB / 0.7002 GB, free: 10.93 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006523/0.7979, allocations: 3.826 MB / 0.7039 GB, free: 7.137 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.31e-05/0.7979, allocations: 1.75 kB / 0.7039 GB, free: 7.137 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001062/0.799, allocations: 0.7491 MB / 0.7046 GB, free: 6.391 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002929/0.8019, allocations: 472.8 kB / 0.7051 GB, free: 5.926 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0148/0.8167, allocations: 8.718 MB / 0.7136 GB, free: 12.94 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003574/0.8203, allocations: 3.165 MB / 0.7167 GB, free: 9.738 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.003959/0.8243, allocations: 1.824 MB / 0.7185 GB, free: 7.906 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005048/0.8248, allocations: 239.4 kB / 0.7187 GB, free: 7.672 MB / 0.5762 GB Notification: Performance of SimCode: time 9.82e-07/0.8248, allocations: 0 / 0.7187 GB, free: 7.672 MB / 0.5762 GB Notification: Performance of Templates: time 0.3726/1.197, allocations: 24.86 MB / 0.743 GB, free: 176.2 MB / 0.5762 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