Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.MultiBody.Forces.Spring") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001249/0.001249, allocations: 103.3 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001331/0.001331, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.446/1.446, allocations: 227.4 MB / 246.3 MB, free: 10.87 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2586/0.2586, allocations: 46.09 MB / 343.6 MB, free: 11.86 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00154/0.00154, allocations: 80.48 kB / 416.8 MB, free: 20.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1531/0.1546, allocations: 62.44 MB / 479.3 MB, free: 5.781 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.3379/0.4926, allocations: 42.56 MB / 0.5096 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02692/0.5196, allocations: 9.156 MB / 0.5186 GB, free: 9.125 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01269/0.5323, allocations: 185.8 kB / 0.5187 GB, free: 9.094 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007145/0.5395, allocations: 2.45 MB / 0.5211 GB, free: 8.352 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007512/0.5471, allocations: 1.735 MB / 0.5228 GB, free: 7.785 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002955/0.5501, allocations: 0.7098 MB / 0.5235 GB, free: 7.52 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01295/0.5631, allocations: 6.202 MB / 0.5296 GB, free: 5.957 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004925/0.5681, allocations: 3.298 MB / 0.5328 GB, free: 4.16 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003163/0.5713, allocations: 1.375 MB / 0.5341 GB, free: 3.48 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004107/0.5754, allocations: 2.37 MB / 0.5365 GB, free: 2.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008702/0.5763, allocations: 242.4 kB / 0.5367 GB, free: 2.25 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00237/0.5787, allocations: 0.9082 MB / 0.5376 GB, free: 1.898 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001814/0.5805, allocations: 1.859 MB / 0.5394 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002643/0.5831, allocations: 2.156 MB / 0.5415 GB, free: 15.27 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009304/0.5925, allocations: 6.501 MB / 0.5478 GB, free: 9.883 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.349e-05/0.5926, allocations: 0 / 0.5478 GB, free: 9.883 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.838e-06/0.5926, allocations: 4 kB / 0.5478 GB, free: 9.879 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000378/0.593, allocations: 4 kB / 0.5478 GB, free: 9.875 MB / 398.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.01287/0.6058, allocations: 4.788 MB / 0.5525 GB, free: 5.117 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.007e-05/0.6059, allocations: 8.875 kB / 0.5525 GB, free: 5.109 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007594/0.6135, allocations: 1.947 MB / 0.5544 GB, free: 3.156 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005827/0.6194, allocations: 2.281 MB / 0.5567 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002315/0.6197, allocations: 253.6 kB / 0.5569 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001187/0.6209, allocations: 332.2 kB / 0.5572 GB, free: 348 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01988/0.6407, allocations: 10.22 MB / 0.5672 GB, free: 5.438 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001374/0.6409, allocations: 51.56 kB / 0.5672 GB, free: 5.387 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004354/0.6414, allocations: 159.5 kB / 0.5674 GB, free: 5.27 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002896/0.6443, allocations: 1.906 MB / 0.5693 GB, free: 3.371 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01783/0.6621, allocations: 8.171 MB / 0.5772 GB, free: 11.18 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0535/0.7157, allocations: 39.41 MB / 0.6157 GB, free: 2.781 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008376/0.7241, allocations: 3.297 MB / 0.6189 GB, free: 15.32 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001729/0.7258, allocations: 1.063 MB / 0.62 GB, free: 14.24 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009324/0.7352, allocations: 5.991 MB / 0.6258 GB, free: 7.906 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.068e-05/0.7353, allocations: 51.5 kB / 0.6259 GB, free: 7.848 MB / 478.1 MB Notification: Performance of pre-optimization done (n=148): time 3.858e-06/0.7353, allocations: 0 / 0.6259 GB, free: 7.848 MB / 478.1 MB Notification: Performance of matching and sorting (n=160): time 0.02336/0.7586, allocations: 9.51 MB / 0.6352 GB, free: 14.23 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.931e-05/0.7588, allocations: 149.5 kB / 0.6353 GB, free: 14.05 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005773/0.7646, allocations: 4.039 MB / 0.6393 GB, free: 9.98 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002193/0.7648, allocations: 48.2 kB / 0.6393 GB, free: 9.93 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002253/0.7671, allocations: 3.18 MB / 0.6424 GB, free: 6.75 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006775/0.7677, allocations: 0.6338 MB / 0.643 GB, free: 6.121 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001522/0.7693, allocations: 1.21 MB / 0.6442 GB, free: 4.898 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001299/0.7694, allocations: 309.1 kB / 0.6445 GB, free: 4.594 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002696/0.7721, allocations: 1.667 MB / 0.6461 GB, free: 2.922 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005391/0.7775, allocations: 5.517 MB / 0.6515 GB, free: 11.47 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0098/0.7873, allocations: 7.804 MB / 0.6591 GB, free: 1.75 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000128/0.7875, allocations: 44 kB / 0.6592 GB, free: 1.707 MB / 0.4981 GB Notification: Performance of matching and sorting (n=799) (initialization): time 0.01477/0.8023, allocations: 6.911 MB / 0.6659 GB, free: 10.79 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 9.385e-05/0.8024, allocations: 68.94 kB / 0.666 GB, free: 10.73 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001546/0.8026, allocations: 136 kB / 0.6661 GB, free: 10.59 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001685/0.8028, allocations: 184 kB / 0.6663 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004621/0.8074, allocations: 1.435 MB / 0.6677 GB, free: 8.977 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002174/0.8076, allocations: 267 kB / 0.668 GB, free: 8.715 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005854/0.8135, allocations: 299.6 kB / 0.6682 GB, free: 8.422 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007101/0.8142, allocations: 383.9 kB / 0.6686 GB, free: 8.047 MB / 0.5137 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.003706/0.818, allocations: 2.043 MB / 0.6706 GB, free: 5.992 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006931/0.8187, allocations: 343.5 kB / 0.6709 GB, free: 5.652 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007062/0.8194, allocations: 414.6 kB / 0.6713 GB, free: 5.234 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.159e-05/0.8194, allocations: 16 kB / 0.6713 GB, free: 5.219 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.766e-05/0.8194, allocations: 4 kB / 0.6714 GB, free: 5.215 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.622e-05/0.8195, allocations: 11.97 kB / 0.6714 GB, free: 5.203 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009959/0.8294, allocations: 5.848 MB / 0.6771 GB, free: 15.08 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.108e-05/0.8295, allocations: 16 kB / 0.6771 GB, free: 15.06 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001006/0.8305, allocations: 287.6 kB / 0.6774 GB, free: 14.78 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.622e-05/0.8305, allocations: 24 kB / 0.6774 GB, free: 14.76 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.592e-05/0.8306, allocations: 48.47 kB / 0.6774 GB, free: 14.71 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.89e-05/0.8307, allocations: 35.86 kB / 0.6775 GB, free: 14.68 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.105e-05/0.8307, allocations: 27.88 kB / 0.6775 GB, free: 14.65 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004266/0.835, allocations: 3.314 MB / 0.6807 GB, free: 11.09 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009415/0.8359, allocations: 416.5 kB / 0.6811 GB, free: 10.66 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003139/0.8362, allocations: 51.92 kB / 0.6812 GB, free: 10.61 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001081/0.8373, allocations: 72.05 kB / 0.6812 GB, free: 10.54 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001899/0.8375, allocations: 143.4 kB / 0.6814 GB, free: 10.4 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001059/0.8377, allocations: 72 kB / 0.6815 GB, free: 10.33 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004228/0.8419, allocations: 2.503 MB / 0.6839 GB, free: 7.816 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.91e-07/0.8419, allocations: 0 / 0.6839 GB, free: 7.816 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005992/0.8479, allocations: 0.8929 MB / 0.6848 GB, free: 6.926 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.0005019/0.8484, allocations: 197.7 kB / 0.685 GB, free: 6.723 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.007137/0.8556, allocations: 3.793 MB / 0.6887 GB, free: 2.957 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-05/0.8556, allocations: 8.25 kB / 0.6887 GB, free: 2.949 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001484/0.8571, allocations: 0.7521 MB / 0.6894 GB, free: 2.199 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003667/0.8608, allocations: 460.8 kB / 0.6898 GB, free: 1.75 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01958/0.8804, allocations: 10.79 MB / 0.7004 GB, free: 6.695 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004053/0.8845, allocations: 3.169 MB / 0.7035 GB, free: 3.5 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004852/0.8894, allocations: 1.816 MB / 0.7052 GB, free: 1.676 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006559/0.8901, allocations: 243.4 kB / 0.7055 GB, free: 1.438 MB / 0.545 GB Notification: Performance of SimCode: time 1.954e-06/0.8901, allocations: 0 / 0.7055 GB, free: 1.438 MB / 0.545 GB Notification: Performance of Templates: time 0.349/1.239, allocations: 27.44 MB / 0.7323 GB, free: 183.5 MB / 0.545 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.makefile (rm -f ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.sim & ./ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.MultiBody.Forces.Spring.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.MultiBody.Forces.Spring.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches