Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_ModelicaTest.MultiBody.Forces.Spring") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002421/0.002425, allocations: 189.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.246/2.246, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001702/0.001702, allocations: 102.8 kB / 270.9 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2926/0.2926, allocations: 43.56 MB / 362.7 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000479/0.0004794, allocations: 16 kB / 431.4 MB, free: 20.26 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1257/0.1262, allocations: 58.86 MB / 490.2 MB, free: 9.328 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.05938/0.1856, allocations: 36.65 MB / 0.5145 GB, free: 4.574 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.3704/0.5561, allocations: 9.124 MB / 0.5234 GB, free: 9.82 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008573/0.5647, allocations: 183 kB / 0.5236 GB, free: 9.82 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00702/0.5718, allocations: 1.789 MB / 0.5254 GB, free: 9.82 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02224/0.5941, allocations: 5.346 MB / 0.5306 GB, free: 9.73 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003977/0.5981, allocations: 0.6588 MB / 0.5312 GB, free: 9.727 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.007004/0.6052, allocations: 2.521 MB / 0.5337 GB, free: 9.699 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009023/0.6142, allocations: 4.127 MB / 0.5377 GB, free: 8.535 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002991/0.6173, allocations: 1.079 MB / 0.5388 GB, free: 8.34 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003782/0.6211, allocations: 1.519 MB / 0.5402 GB, free: 7.957 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001016/0.6222, allocations: 152.6 kB / 0.5404 GB, free: 7.957 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002662/0.6249, allocations: 0.7068 MB / 0.5411 GB, free: 7.789 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002565/0.6275, allocations: 1.606 MB / 0.5427 GB, free: 7.281 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001364/0.6289, allocations: 0.8328 MB / 0.5435 GB, free: 7.078 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008283/0.6372, allocations: 5.244 MB / 0.5486 GB, free: 4.258 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.6372, allocations: 0 / 0.5486 GB, free: 4.258 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.246e-06/0.6372, allocations: 0 / 0.5486 GB, free: 4.258 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002769/0.6375, allocations: 0 / 0.5486 GB, free: 4.258 MB / 362.7 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.01203/0.6496, allocations: 4.053 MB / 0.5525 GB, free: 1.77 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/0.6496, allocations: 10.03 kB / 0.5526 GB, free: 1.77 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01484/0.6645, allocations: 2.296 MB / 0.5548 GB, free: 0.7383 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008059/0.6726, allocations: 2.794 MB / 0.5575 GB, free: 15.7 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002914/0.673, allocations: 252.4 kB / 0.5578 GB, free: 15.66 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001692/0.6747, allocations: 326.5 kB / 0.5581 GB, free: 15.45 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02985/0.7045, allocations: 10.28 MB / 0.5681 GB, free: 7.074 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002122/0.7048, allocations: 54.77 kB / 0.5682 GB, free: 7.023 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007287/0.7056, allocations: 169.9 kB / 0.5683 GB, free: 6.965 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005114/0.7107, allocations: 1.896 MB / 0.5702 GB, free: 5.383 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.029/0.7397, allocations: 8.249 MB / 0.5782 GB, free: 14.68 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07727/0.817, allocations: 39.56 MB / 0.6169 GB, free: 6.168 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01437/0.8315, allocations: 3.291 MB / 0.6201 GB, free: 2.707 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01529/0.8468, allocations: 5.984 MB / 0.6259 GB, free: 12.41 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.461e-05/0.8469, allocations: 43.56 kB / 0.626 GB, free: 12.36 MB / 442.7 MB Notification: Performance of pre-optimization done (n=148): time 5.56e-06/0.8469, allocations: 0 / 0.626 GB, free: 12.36 MB / 442.7 MB Notification: Performance of matching and sorting (n=160): time 0.0418/0.8887, allocations: 9.835 MB / 0.6356 GB, free: 2.371 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001045/0.8889, allocations: 153.4 kB / 0.6357 GB, free: 2.191 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01037/0.8993, allocations: 4.288 MB / 0.6399 GB, free: 13.88 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003199/0.8997, allocations: 49.7 kB / 0.64 GB, free: 13.83 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003557/0.9032, allocations: 3.113 MB / 0.643 GB, free: 10.73 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001085/0.9044, allocations: 0.6376 MB / 0.6436 GB, free: 10.1 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007007/0.9051, allocations: 120 kB / 0.6437 GB, free: 9.984 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005525/0.9057, allocations: 0.563 MB / 0.6443 GB, free: 9.41 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005271/0.9109, allocations: 1.612 MB / 0.6459 GB, free: 7.793 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009006/0.92, allocations: 5.45 MB / 0.6512 GB, free: 416 kB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008057/0.9281, allocations: 2.908 MB / 0.654 GB, free: 13.5 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001334/0.9283, allocations: 45.73 kB / 0.6541 GB, free: 13.46 MB / 474.7 MB Notification: Performance of matching and sorting (n=791) (initialization): time 0.02023/0.9486, allocations: 6.696 MB / 0.6606 GB, free: 6.758 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001435/0.9488, allocations: 64 kB / 0.6607 GB, free: 6.695 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002687/0.949, allocations: 136 kB / 0.6608 GB, free: 6.562 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002899/0.9493, allocations: 204 kB / 0.661 GB, free: 6.363 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009032/0.9584, allocations: 1.423 MB / 0.6624 GB, free: 4.938 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003535/0.9588, allocations: 267 kB / 0.6626 GB, free: 4.676 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006701/0.9655, allocations: 295.5 kB / 0.6629 GB, free: 4.387 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001392/0.967, allocations: 376 kB / 0.6633 GB, free: 4.02 MB / 474.7 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.006054/0.973, allocations: 2.037 MB / 0.6653 GB, free: 1.969 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009623/0.974, allocations: 351.5 kB / 0.6656 GB, free: 1.621 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00424/0.9783, allocations: 1.341 MB / 0.6669 GB, free: 272 kB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.622e-05/0.9784, allocations: 26.27 kB / 0.6669 GB, free: 248 kB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.266e-05/0.9784, allocations: 0 / 0.6669 GB, free: 248 kB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.316e-05/0.9785, allocations: 3.984 kB / 0.6669 GB, free: 244 kB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01742/0.9959, allocations: 5.845 MB / 0.6726 GB, free: 10.12 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.036e-05/0.996, allocations: 22.09 kB / 0.6727 GB, free: 10.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002198/0.9982, allocations: 287.5 kB / 0.6729 GB, free: 9.816 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.735e-05/0.9983, allocations: 24 kB / 0.673 GB, free: 9.793 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002232/0.9985, allocations: 48 kB / 0.673 GB, free: 9.746 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.763e-05/0.9986, allocations: 39.86 kB / 0.673 GB, free: 9.707 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-05/0.9986, allocations: 27.88 kB / 0.6731 GB, free: 9.68 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008223/1.007, allocations: 5.29 MB / 0.6782 GB, free: 3.598 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002093/1.009, allocations: 0.5393 MB / 0.6788 GB, free: 3.035 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001008/1.01, allocations: 51.98 kB / 0.6788 GB, free: 2.984 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002594/1.013, allocations: 67.89 kB / 0.6789 GB, free: 2.918 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004284/1.013, allocations: 147.5 kB / 0.679 GB, free: 2.773 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001693/1.013, allocations: 66.89 kB / 0.6791 GB, free: 2.711 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.007888/1.021, allocations: 2.696 MB / 0.6817 GB, free: 4 kB / 490.7 MB Notification: Performance of sort global known variables: time 9.32e-07/1.021, allocations: 0 / 0.6817 GB, free: 4 kB / 490.7 MB Notification: Performance of remove unused functions: time 0.00754/1.029, allocations: 0.9141 MB / 0.6826 GB, free: 15.09 MB / 0.4949 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.0008634/1.03, allocations: 228.8 kB / 0.6828 GB, free: 14.86 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.01025/1.04, allocations: 3.722 MB / 0.6865 GB, free: 11.17 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 2.401e-05/1.04, allocations: 8.375 kB / 0.6865 GB, free: 11.16 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.001994/1.042, allocations: 0.7404 MB / 0.6872 GB, free: 10.43 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003862/1.046, allocations: 435.6 kB / 0.6876 GB, free: 9.996 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0277/1.074, allocations: 10.85 MB / 0.6982 GB, free: 14.87 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007553/1.081, allocations: 3.274 MB / 0.7014 GB, free: 11.56 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001387/1.083, allocations: 291.4 kB / 0.7017 GB, free: 11.28 MB / 0.5105 GB Notification: Performance of SimCode: time 1.503e-06/1.083, allocations: 0 / 0.7017 GB, free: 11.28 MB / 0.5105 GB Notification: Performance of Templates: time 0.4514/1.534, allocations: 52.33 MB / 0.7528 GB, free: 159.9 MB / 0.5105 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/MultiBody/Forces/Spring/Spring.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches