Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.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 3.2.3+maint.om/package.mo", uses=false) 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 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(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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001337/0.001337, allocations: 115 kB / 17.93 MB, free: 5.566 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.001111/0.001111, allocations: 189.4 kB / 18.86 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.359/1.359, allocations: 205.1 MB / 224.7 MB, free: 12.31 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001154, allocations: 51.94 kB / 280.8 MB, free: 3.477 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09777/0.09894, allocations: 46.63 MB / 327.4 MB, free: 4.777 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.02802/0.127, allocations: 28.95 MB / 356.4 MB, free: 7.707 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0141/0.1411, allocations: 5.949 MB / 362.3 MB, free: 1.738 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005784/0.147, allocations: 111.8 kB / 362.4 MB, free: 1.629 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003238/0.1503, allocations: 1.363 MB / 363.8 MB, free: 268 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002911/0.1532, allocations: 0.9222 MB / 364.7 MB, free: 15.34 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007186/0.154, allocations: 235.6 kB / 365 MB, free: 15.11 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002977/0.157, allocations: 2.224 MB / 367.2 MB, free: 12.87 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002114/0.1591, allocations: 1.657 MB / 368.8 MB, free: 11.2 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001342/0.1605, allocations: 0.8405 MB / 369.7 MB, free: 10.35 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001787/0.1623, allocations: 1.351 MB / 371 MB, free: 8.996 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004189/0.1627, allocations: 160 kB / 371.2 MB, free: 8.84 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00134/0.1641, allocations: 0.667 MB / 371.9 MB, free: 8.172 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001207/0.1653, allocations: 1.196 MB / 373 MB, free: 6.973 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00146/0.1667, allocations: 1.394 MB / 374.4 MB, free: 5.57 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00367/0.1704, allocations: 3.352 MB / 377.8 MB, free: 2.211 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.303e-06/0.1705, allocations: 0 / 377.8 MB, free: 2.211 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.1705, allocations: 3.938 kB / 377.8 MB, free: 2.207 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001079/0.1706, allocations: 7.984 kB / 377.8 MB, free: 2.199 MB / 318.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.174/0.3446, allocations: 2.941 MB / 380.7 MB, free: 54.83 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.716e-05/0.3447, allocations: 8.719 kB / 380.8 MB, free: 54.83 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007824/0.3526, allocations: 1.778 MB / 382.5 MB, free: 54.64 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002865/0.3555, allocations: 1.156 MB / 383.7 MB, free: 54.01 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001645/0.3557, allocations: 155.4 kB / 383.8 MB, free: 53.97 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004631/0.3561, allocations: 205.4 kB / 384 MB, free: 53.93 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01866/0.3748, allocations: 8.6 MB / 392.6 MB, free: 49.78 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001145/0.375, allocations: 40.16 kB / 392.7 MB, free: 49.76 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003168/0.3753, allocations: 101.3 kB / 392.8 MB, free: 49.69 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00291/0.3782, allocations: 1.675 MB / 394.5 MB, free: 49.02 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01631/0.3945, allocations: 7.162 MB / 401.6 MB, free: 42.44 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02807/0.4226, allocations: 30.19 MB / 431.8 MB, free: 11.41 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02194/0.4446, allocations: 5.036 MB / 436.8 MB, free: 6.199 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00136/0.446, allocations: 1.237 MB / 438.1 MB, free: 4.941 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004438/0.4505, allocations: 3.749 MB / 441.8 MB, free: 1.047 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.032e-05/0.4506, allocations: 58.77 kB / 441.9 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of pre-optimization done (n=111): time 4.217e-06/0.4506, allocations: 0 / 441.9 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of matching and sorting (n=111): time 0.04707/0.4977, allocations: 9.266 MB / 451.1 MB, free: 7.633 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/0.4978, allocations: 191.9 kB / 451.3 MB, free: 7.402 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004377/0.5022, allocations: 3.039 MB / 454.4 MB, free: 4.344 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002054/0.5024, allocations: 45.7 kB / 454.4 MB, free: 4.293 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001583/0.504, allocations: 2.418 MB / 456.8 MB, free: 1.836 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006691/0.5047, allocations: 0.494 MB / 457.3 MB, free: 1.336 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001336/0.506, allocations: 1.091 MB / 458.4 MB, free: 240 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.5062, allocations: 301.1 kB / 458.7 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002219/0.5084, allocations: 1.599 MB / 460.3 MB, free: 14.33 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004625/0.513, allocations: 5.173 MB / 465.5 MB, free: 7.355 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007731/0.5208, allocations: 7.327 MB / 472.8 MB, free: 14.24 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001181/0.521, allocations: 36 kB / 472.8 MB, free: 14.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.0118/0.5328, allocations: 6.437 MB / 479.3 MB, free: 7.762 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.315e-05/0.5329, allocations: 60 kB / 479.3 MB, free: 7.703 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00014/0.533, allocations: 128 kB / 479.5 MB, free: 7.578 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001543/0.5332, allocations: 168.8 kB / 479.6 MB, free: 7.414 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00513/0.5383, allocations: 1.45 MB / 481.1 MB, free: 5.961 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002023/0.5386, allocations: 255 kB / 481.3 MB, free: 5.711 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003897/0.5425, allocations: 0.7499 MB / 482.1 MB, free: 4.953 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000643/0.5431, allocations: 340 kB / 482.4 MB, free: 4.621 MB / 366.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.002251/0.5454, allocations: 1.579 MB / 484 MB, free: 3.035 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004552/0.5459, allocations: 248.8 kB / 484.2 MB, free: 2.789 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001258/0.5471, allocations: 0.833 MB / 485.1 MB, free: 1.949 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.646e-05/0.5472, allocations: 12 kB / 485.1 MB, free: 1.938 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/0.5472, allocations: 4 kB / 485.1 MB, free: 1.934 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.835e-05/0.5472, allocations: 8.016 kB / 485.1 MB, free: 1.926 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005734/0.5529, allocations: 3.394 MB / 488.5 MB, free: 14.47 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.266e-06/0.553, allocations: 0 / 488.5 MB, free: 14.47 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002526/0.5555, allocations: 407.5 kB / 488.9 MB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.06e-05/0.5556, allocations: 8 kB / 488.9 MB, free: 14.06 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001153/0.5557, allocations: 35.97 kB / 488.9 MB, free: 14.03 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.855e-06/0.5557, allocations: 4 kB / 488.9 MB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.52e-06/0.5557, allocations: 7.938 kB / 488.9 MB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00333/0.5591, allocations: 2.78 MB / 491.7 MB, free: 11.21 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007289/0.5598, allocations: 301.6 kB / 492 MB, free: 10.89 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002719/0.5601, allocations: 31.89 kB / 492 MB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009421/0.561, allocations: 39.95 kB / 492.1 MB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001283/0.5612, allocations: 59.8 kB / 492.1 MB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.976e-05/0.5613, allocations: 39.98 kB / 492.2 MB, free: 10.73 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00265/0.5639, allocations: 1.841 MB / 494 MB, free: 8.883 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5639, allocations: 4 kB / 494 MB, free: 8.879 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004253/0.5682, allocations: 0.825 MB / 494.9 MB, free: 8.055 MB / 382.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.0004401/0.5687, allocations: 173 kB / 495 MB, free: 7.883 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005885/0.5746, allocations: 3.801 MB / 498.8 MB, free: 4.121 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.063e-06/0.5746, allocations: 0 / 498.8 MB, free: 4.121 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000925/0.5755, allocations: 0.7119 MB / 499.5 MB, free: 3.41 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001997/0.5775, allocations: 256.8 kB / 499.8 MB, free: 3.168 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01275/0.5903, allocations: 8.776 MB / 0.4966 GB, free: 10.34 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002286/0.5927, allocations: 2.391 MB / 0.499 GB, free: 7.926 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007706/0.5934, allocations: 235.3 kB / 0.4992 GB, free: 7.695 MB / 398.1 MB Notification: Performance of SimCode: time 8.81e-07/0.5935, allocations: 3.938 kB / 0.4992 GB, free: 7.691 MB / 398.1 MB Notification: Performance of Templates: time 0.2228/0.8163, allocations: 40.61 MB / 0.5389 GB, free: 122.7 MB / 414.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches