Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.r_0.1.|body1.r_0.2.|body1.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body2.r_0.1.|body2.r_0.2.|body2.r_0.3.|body2.v_0.1.|body2.v_0.2.|body2.v_0.3.|body3.r_0.1.|body3.r_0.2.|body3.r_0.3.|body3.v_0.1.|body3.v_0.2.|body3.v_0.3.|body4.r_0.1.|body4.r_0.2.|body4.r_0.3.|body4.v_0.1.|body4.v_0.2.|body4.v_0.3.",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.r_0.1.|body1.r_0.2.|body1.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body2.r_0.1.|body2.r_0.2.|body2.r_0.3.|body2.v_0.1.|body2.v_0.2.|body2.v_0.3.|body3.r_0.1.|body3.r_0.2.|body3.r_0.3.|body3.v_0.1.|body3.v_0.2.|body3.v_0.3.|body4.r_0.1.|body4.r_0.2.|body4.r_0.3.|body4.v_0.1.|body4.v_0.2.|body4.v_0.3.",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001485/0.001485, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001862/0.001862, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.464/1.464, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001146/0.001146, allocations: 56.47 kB / 306.9 MB, free: 0.6484 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09312/0.09428, allocations: 50.54 MB / 357.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.008241/0.1026, allocations: 7.928 MB / 365.4 MB, free: 6.133 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004774/0.1074, allocations: 2.574 MB / 368 MB, free: 3.551 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008162/0.1082, allocations: 35.94 kB / 368 MB, free: 3.516 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002663/0.1109, allocations: 1.44 MB / 369.5 MB, free: 2.07 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002052/0.113, allocations: 0.9801 MB / 370.4 MB, free: 1.086 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006412/0.1136, allocations: 263.5 kB / 370.7 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1775/0.2912, allocations: 2.151 MB / 372.8 MB, free: 9.461 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00207/0.2933, allocations: 1.545 MB / 374.4 MB, free: 9.324 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001183/0.2945, allocations: 0.8285 MB / 375.2 MB, free: 9.234 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001516/0.296, allocations: 1.189 MB / 376.4 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004135/0.2964, allocations: 158.9 kB / 376.6 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001473/0.2979, allocations: 0.6621 MB / 377.2 MB, free: 9.07 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001152/0.2991, allocations: 1.153 MB / 378.4 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009636/0.3001, allocations: 1.359 MB / 379.7 MB, free: 8.41 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005009/0.3051, allocations: 4.074 MB / 383.8 MB, free: 7.164 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.62e-06/0.3051, allocations: 0 / 383.8 MB, free: 7.164 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.3051, allocations: 0 / 383.8 MB, free: 7.164 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001022/0.3052, allocations: 1.125 kB / 383.8 MB, free: 7.164 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1113 * Number of variables: 1113 Notification: Performance of Generate backend data structure: time 0.004886/0.3101, allocations: 2.934 MB / 386.7 MB, free: 5.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.914e-05/0.3102, allocations: 10.72 kB / 386.8 MB, free: 5.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006703/0.3169, allocations: 1.778 MB / 388.5 MB, free: 4.906 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001845/0.3187, allocations: 1.144 MB / 389.7 MB, free: 4.207 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001026/0.3189, allocations: 157.5 kB / 389.8 MB, free: 4.16 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003547/0.3192, allocations: 208.8 kB / 390 MB, free: 4.113 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01822/0.3375, allocations: 8.606 MB / 398.6 MB, free: 15.11 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.29e-05/0.3376, allocations: 47.98 kB / 398.7 MB, free: 15.09 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002829/0.3379, allocations: 103.5 kB / 398.8 MB, free: 15.05 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002785/0.3407, allocations: 1.667 MB / 400.5 MB, free: 13.67 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01818/0.3589, allocations: 7.179 MB / 407.6 MB, free: 6.645 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03638/0.3953, allocations: 30.17 MB / 437.8 MB, free: 7.863 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02271/0.418, allocations: 5.065 MB / 442.9 MB, free: 2.629 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001781/0.4199, allocations: 1.244 MB / 444.1 MB, free: 1.363 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005797/0.4257, allocations: 3.829 MB / 447.9 MB, free: 13.39 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.525e-05/0.4258, allocations: 50.83 kB / 448 MB, free: 13.33 MB / 366.1 MB Notification: Performance of pre-optimization done (n=111): time 2.906e-06/0.4258, allocations: 0 / 448 MB, free: 13.33 MB / 366.1 MB Notification: Performance of matching and sorting (n=111): time 0.04643/0.4722, allocations: 9.284 MB / 457.3 MB, free: 3.957 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001043/0.4723, allocations: 191.9 kB / 457.5 MB, free: 3.727 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004366/0.4767, allocations: 3.032 MB / 460.5 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001843/0.4769, allocations: 43.03 kB / 460.5 MB, free: 0.6289 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001659/0.4786, allocations: 2.418 MB / 463 MB, free: 14.21 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000615/0.4792, allocations: 0.4953 MB / 463.5 MB, free: 13.72 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001366/0.4806, allocations: 1.083 MB / 464.5 MB, free: 12.63 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001008/0.4807, allocations: 309.1 kB / 464.8 MB, free: 12.32 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002261/0.483, allocations: 1.607 MB / 466.4 MB, free: 10.71 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005012/0.488, allocations: 5.172 MB / 471.6 MB, free: 3.742 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008455/0.4965, allocations: 7.343 MB / 479 MB, free: 10.63 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001137/0.4966, allocations: 36 kB / 479 MB, free: 10.6 MB / 398.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01072/0.5073, allocations: 6.451 MB / 485.4 MB, free: 4.148 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.454e-05/0.5075, allocations: 60 kB / 485.5 MB, free: 4.09 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001515/0.5076, allocations: 124 kB / 485.6 MB, free: 3.969 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001548/0.5078, allocations: 168 kB / 485.8 MB, free: 3.805 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004808/0.5126, allocations: 1.458 MB / 487.2 MB, free: 2.344 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001819/0.5128, allocations: 251 kB / 487.5 MB, free: 2.098 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003603/0.5164, allocations: 0.7503 MB / 488.2 MB, free: 1.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004656/0.5169, allocations: 344.8 kB / 488.6 MB, free: 1.004 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 580 * Number of states: 0 () * Number of discrete variables: 30 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body4.sphereColor[3],body4.sphereColor[2],body4.sphereColor[1],body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (681): * Single equations (assignments): 678 * 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.002474/0.5194, allocations: 1.576 MB / 490.2 MB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004781/0.5199, allocations: 249.1 kB / 490.4 MB, free: 15.17 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005303/0.5204, allocations: 311.3 kB / 490.7 MB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-05/0.5204, allocations: 22.73 kB / 490.7 MB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/0.5204, allocations: 0 / 490.7 MB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.411e-05/0.5205, allocations: 15.86 kB / 490.7 MB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00564/0.5261, allocations: 3.384 MB / 494.1 MB, free: 11.4 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.171e-06/0.5261, allocations: 4 kB / 494.1 MB, free: 11.4 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002335/0.5285, allocations: 411.5 kB / 494.5 MB, free: 11 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.636e-05/0.5285, allocations: 11.92 kB / 494.5 MB, free: 10.98 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.17e-05/0.5286, allocations: 35.92 kB / 494.6 MB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.286e-06/0.5286, allocations: 7.984 kB / 494.6 MB, free: 10.94 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.5286, allocations: 4 kB / 494.6 MB, free: 10.94 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003381/0.532, allocations: 2.79 MB / 497.4 MB, free: 8.133 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005921/0.5326, allocations: 301.6 kB / 497.7 MB, free: 7.816 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002562/0.5329, allocations: 35.92 kB / 497.7 MB, free: 7.781 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008888/0.5338, allocations: 39.95 kB / 497.7 MB, free: 7.742 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001276/0.5339, allocations: 51.92 kB / 497.8 MB, free: 7.691 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.866e-05/0.534, allocations: 34.33 kB / 497.8 MB, free: 7.66 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002844/0.5369, allocations: 1.844 MB / 499.7 MB, free: 5.812 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5369, allocations: 0 / 499.7 MB, free: 5.812 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004566/0.5414, allocations: 0.818 MB / 0.4888 GB, free: 4.996 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 24 (body1.r_0[1],body1.r_0[2],body1.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body2.r_0[1],body2.r_0[2],body2.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body3.r_0[1],body3.r_0[2],body3.r_0[3],body3.v_0[1],body3.v_0[2],body3.v_0[3],body4.r_0[1],body4.r_0[2],body4.r_0[3],body4.v_0[1],body4.v_0[2],body4.v_0[3]) * 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 (87): * Single equations (assignments): 84 * 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.0004367/0.5419, allocations: 169.3 kB / 0.4889 GB, free: 4.82 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005842/0.5477, allocations: 3.8 MB / 0.4926 GB, free: 1.047 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.5478, allocations: 0 / 0.4926 GB, free: 1.047 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009236/0.5487, allocations: 0.7235 MB / 0.4933 GB, free: 332 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001826/0.5505, allocations: 269.4 kB / 0.4936 GB, free: 72 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01199/0.5625, allocations: 7.136 MB / 0.5006 GB, free: 8.898 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002323/0.5649, allocations: 2.39 MB / 0.5029 GB, free: 6.48 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003875/0.5688, allocations: 1.637 MB / 0.5045 GB, free: 4.836 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004282/0.5692, allocations: 187.4 kB / 0.5047 GB, free: 4.656 MB / 430.1 MB Notification: Performance of SimCode: time 1.002e-06/0.5692, allocations: 0 / 0.5047 GB, free: 4.656 MB / 430.1 MB Notification: Performance of Templates: time 0.2148/0.7841, allocations: 21.28 MB / 0.5255 GB, free: 145.2 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches