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.001873/0.001873, allocations: 107.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002228/0.002229, allocations: 209.7 kB / 18.14 MB, free: 5.344 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.86 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2297/0.2297, allocations: 46.11 MB / 343.6 MB, free: 11.81 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001376/0.001376, allocations: 76.41 kB / 416.8 MB, free: 20.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1338, allocations: 62.45 MB / 479.3 MB, free: 5.727 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Spring): time 0.3127/0.4466, allocations: 42.55 MB / 0.5096 GB, free: 10.23 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02762/0.4742, allocations: 9.155 MB / 0.5186 GB, free: 9.109 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01245/0.4867, allocations: 189.3 kB / 0.5187 GB, free: 9.074 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005787/0.4925, allocations: 2.458 MB / 0.5211 GB, free: 8.324 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006669/0.4993, allocations: 1.723 MB / 0.5228 GB, free: 7.766 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002309/0.5016, allocations: 0.7126 MB / 0.5235 GB, free: 7.5 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.009194/0.5108, allocations: 6.204 MB / 0.5296 GB, free: 5.926 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004718/0.5156, allocations: 3.288 MB / 0.5328 GB, free: 4.141 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003033/0.5186, allocations: 1.384 MB / 0.5341 GB, free: 3.453 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004164/0.5228, allocations: 2.356 MB / 0.5364 GB, free: 2.234 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001222/0.5241, allocations: 242.8 kB / 0.5367 GB, free: 2.234 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002599/0.5267, allocations: 0.9197 MB / 0.5376 GB, free: 1.871 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002245/0.5289, allocations: 1.864 MB / 0.5394 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002951/0.5319, allocations: 2.151 MB / 0.5415 GB, free: 15.24 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008807/0.5407, allocations: 6.499 MB / 0.5478 GB, free: 9.844 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.5408, allocations: 0 / 0.5478 GB, free: 9.844 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.5408, allocations: 0 / 0.5478 GB, free: 9.844 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002509/0.541, allocations: 0 / 0.5478 GB, free: 9.844 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.01058/0.5516, allocations: 4.796 MB / 0.5525 GB, free: 5.078 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.252e-05/0.5517, allocations: 12.88 kB / 0.5525 GB, free: 5.066 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007638/0.5593, allocations: 1.94 MB / 0.5544 GB, free: 3.121 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006088/0.5655, allocations: 2.292 MB / 0.5567 GB, free: 0.793 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002372/0.5657, allocations: 249 kB / 0.5569 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008117/0.5666, allocations: 330.2 kB / 0.5572 GB, free: 308 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02066/0.5872, allocations: 10.23 MB / 0.5672 GB, free: 5.391 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001486/0.5874, allocations: 47.62 kB / 0.5673 GB, free: 5.344 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004761/0.5879, allocations: 156.2 kB / 0.5674 GB, free: 5.227 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003151/0.5911, allocations: 1.903 MB / 0.5693 GB, free: 3.332 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01923/0.6103, allocations: 8.177 MB / 0.5772 GB, free: 11.13 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05489/0.6653, allocations: 39.4 MB / 0.6157 GB, free: 2.75 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009355/0.6747, allocations: 3.306 MB / 0.6189 GB, free: 15.28 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002622/0.6774, allocations: 1.057 MB / 0.62 GB, free: 14.21 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01044/0.6879, allocations: 5.986 MB / 0.6258 GB, free: 7.875 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.396e-05/0.688, allocations: 55.5 kB / 0.6259 GB, free: 7.812 MB / 478.1 MB Notification: Performance of pre-optimization done (n=148): time 5.731e-06/0.688, allocations: 0 / 0.6259 GB, free: 7.812 MB / 478.1 MB Notification: Performance of matching and sorting (n=160): time 0.02662/0.7146, allocations: 9.521 MB / 0.6352 GB, free: 14.19 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001268/0.7148, allocations: 145.5 kB / 0.6353 GB, free: 14.01 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006084/0.7209, allocations: 4.039 MB / 0.6393 GB, free: 9.945 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002227/0.7211, allocations: 49.7 kB / 0.6393 GB, free: 9.891 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002291/0.7234, allocations: 3.175 MB / 0.6424 GB, free: 6.715 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007149/0.7242, allocations: 0.6375 MB / 0.643 GB, free: 6.082 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001435/0.7256, allocations: 1.213 MB / 0.6442 GB, free: 4.859 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.7257, allocations: 309.1 kB / 0.6445 GB, free: 4.555 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002567/0.7283, allocations: 1.663 MB / 0.6461 GB, free: 2.887 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005365/0.7337, allocations: 5.521 MB / 0.6515 GB, free: 11.43 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00988/0.7436, allocations: 7.798 MB / 0.6591 GB, free: 1.715 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001599/0.7438, allocations: 43.94 kB / 0.6592 GB, free: 1.672 MB / 0.4981 GB Notification: Performance of matching and sorting (n=799) (initialization): time 0.01863/0.7624, allocations: 6.921 MB / 0.6659 GB, free: 10.75 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001329/0.7626, allocations: 64 kB / 0.666 GB, free: 10.68 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002306/0.7629, allocations: 136 kB / 0.6661 GB, free: 10.55 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002346/0.7631, allocations: 180 kB / 0.6663 GB, free: 10.38 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005074/0.7682, allocations: 1.435 MB / 0.6677 GB, free: 8.938 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003172/0.7685, allocations: 270.9 kB / 0.668 GB, free: 8.672 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005582/0.7741, allocations: 299.8 kB / 0.6683 GB, free: 8.379 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001356/0.7755, allocations: 387.2 kB / 0.6686 GB, free: 8.004 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.005647/0.7812, allocations: 2.029 MB / 0.6706 GB, free: 5.961 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001046/0.7822, allocations: 351.5 kB / 0.6709 GB, free: 5.613 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001402/0.7836, allocations: 410.6 kB / 0.6713 GB, free: 5.199 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.152e-05/0.7837, allocations: 16 kB / 0.6713 GB, free: 5.184 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.031e-05/0.7837, allocations: 4 kB / 0.6713 GB, free: 5.18 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.846e-05/0.7838, allocations: 8.156 kB / 0.6714 GB, free: 5.172 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01258/0.7963, allocations: 5.863 MB / 0.6771 GB, free: 15.04 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-05/0.7964, allocations: 16 kB / 0.6771 GB, free: 15.02 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001016/0.7974, allocations: 283.5 kB / 0.6774 GB, free: 14.74 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-05/0.7975, allocations: 24 kB / 0.6774 GB, free: 14.72 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.879e-05/0.7976, allocations: 47.98 kB / 0.6774 GB, free: 14.67 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.85e-05/0.7976, allocations: 35.86 kB / 0.6775 GB, free: 14.64 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.937e-05/0.7976, allocations: 27.88 kB / 0.6775 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004363/0.802, allocations: 3.306 MB / 0.6807 GB, free: 11.06 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001043/0.803, allocations: 420.5 kB / 0.6811 GB, free: 10.62 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003646/0.8034, allocations: 55.34 kB / 0.6812 GB, free: 10.57 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001109/0.8045, allocations: 63.95 kB / 0.6812 GB, free: 10.51 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001952/0.8047, allocations: 147.8 kB / 0.6814 GB, free: 10.37 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.869e-05/0.8048, allocations: 67.98 kB / 0.6814 GB, free: 10.3 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.004064/0.8089, allocations: 2.503 MB / 0.6839 GB, free: 7.785 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8089, allocations: 0 / 0.6839 GB, free: 7.785 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.006353/0.8153, allocations: 0.8945 MB / 0.6848 GB, free: 6.891 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.0006138/0.8159, allocations: 197.2 kB / 0.685 GB, free: 6.688 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00684/0.8228, allocations: 3.8 MB / 0.6887 GB, free: 2.914 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.792e-05/0.8228, allocations: 4 kB / 0.6887 GB, free: 2.91 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001153/0.824, allocations: 0.7565 MB / 0.6894 GB, free: 2.16 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003233/0.8272, allocations: 456.6 kB / 0.6898 GB, free: 1.711 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01757/0.8448, allocations: 10.79 MB / 0.7004 GB, free: 6.66 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003791/0.8486, allocations: 3.173 MB / 0.7035 GB, free: 3.461 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.004676/0.8533, allocations: 1.808 MB / 0.7052 GB, free: 1.645 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006574/0.854, allocations: 243.4 kB / 0.7055 GB, free: 1.406 MB / 0.545 GB Notification: Performance of SimCode: time 1.172e-06/0.854, allocations: 0 / 0.7055 GB, free: 1.406 MB / 0.545 GB Notification: Performance of Templates: time 0.3109/1.165, allocations: 27.46 MB / 0.7323 GB, free: 183.4 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