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.0008123/0.0008123, allocations: 96.33 kB / 17.3 MB, free: 6.344 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.0009234/0.0009235, allocations: 175.6 kB / 18.21 MB, free: 5.527 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.528/1.528, allocations: 205.4 MB / 224.4 MB, free: 13.06 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.000487/0.0004874, allocations: 19.98 kB / 281.4 MB, free: 3.406 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1067, allocations: 47.59 MB / 329 MB, free: 3.746 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.02731/0.1341, allocations: 28.06 MB / 357 MB, free: 7.562 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01579/0.1499, allocations: 5.938 MB / 363 MB, free: 1.605 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005887/0.1559, allocations: 115.8 kB / 363.1 MB, free: 1.492 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00141/0.1573, allocations: 306.6 kB / 363.4 MB, free: 1.191 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003079/0.1604, allocations: 0.9378 MB / 364.3 MB, free: 256 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007008/0.1611, allocations: 227.7 kB / 364.5 MB, free: 28 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003892/0.165, allocations: 3.296 MB / 367.8 MB, free: 12.72 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003576/0.1686, allocations: 2.046 MB / 369.9 MB, free: 10.63 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001519/0.1702, allocations: 0.661 MB / 370.5 MB, free: 9.969 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001961/0.1722, allocations: 1.214 MB / 371.8 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003644/0.1725, allocations: 84 kB / 371.8 MB, free: 8.668 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001368/0.1739, allocations: 0.6239 MB / 372.5 MB, free: 8.043 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00115/0.1751, allocations: 1.118 MB / 373.6 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001339/0.1764, allocations: 1.321 MB / 374.9 MB, free: 5.586 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004638/0.1811, allocations: 3.997 MB / 378.9 MB, free: 1.574 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.1811, allocations: 0 / 378.9 MB, free: 1.574 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.1811, allocations: 0 / 378.9 MB, free: 1.574 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001206/0.1813, allocations: 0 / 378.9 MB, free: 1.574 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.2083/0.3896, allocations: 2.392 MB / 381.3 MB, free: 54.08 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.694e-05/0.3896, allocations: 11.53 kB / 381.3 MB, free: 54.08 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007689/0.3973, allocations: 1.823 MB / 383.1 MB, free: 53.89 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002305/0.3996, allocations: 1.153 MB / 384.3 MB, free: 53.4 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001443/0.3998, allocations: 152.6 kB / 384.4 MB, free: 53.4 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00045/0.4003, allocations: 205.7 kB / 384.6 MB, free: 53.39 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02173/0.422, allocations: 8.626 MB / 393.3 MB, free: 49.31 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001182/0.4222, allocations: 48.08 kB / 393.3 MB, free: 49.28 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003151/0.4225, allocations: 100.5 kB / 393.4 MB, free: 49.24 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003031/0.4255, allocations: 1.665 MB / 395.1 MB, free: 48.59 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01679/0.4423, allocations: 7.184 MB / 402.3 MB, free: 41.88 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03056/0.4729, allocations: 30.2 MB / 432.5 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02177/0.4947, allocations: 5.109 MB / 437.6 MB, free: 5.68 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0015/0.4963, allocations: 1.241 MB / 438.8 MB, free: 4.418 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00517/0.5015, allocations: 3.748 MB / 442.6 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.734e-05/0.5015, allocations: 50.89 kB / 442.6 MB, free: 492 kB / 318.1 MB Notification: Performance of pre-optimization done (n=111): time 3.807e-06/0.5015, allocations: 0 / 442.6 MB, free: 492 kB / 318.1 MB Notification: Performance of matching and sorting (n=111): time 0.04733/0.5489, allocations: 9.389 MB / 452 MB, free: 7.004 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/0.549, allocations: 187.9 kB / 452.2 MB, free: 6.777 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005028/0.554, allocations: 3.043 MB / 455.2 MB, free: 3.715 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000346/0.5544, allocations: 41.7 kB / 455.3 MB, free: 3.668 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002743/0.5572, allocations: 2.422 MB / 457.7 MB, free: 1.25 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001156/0.5583, allocations: 0.4953 MB / 458.2 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007269/0.5591, allocations: 458.5 kB / 458.6 MB, free: 312 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.5592, allocations: 309.1 kB / 458.9 MB, free: 0 / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003698/0.5629, allocations: 1.596 MB / 460.5 MB, free: 14.4 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008095/0.571, allocations: 5.169 MB / 465.7 MB, free: 7.426 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01295/0.584, allocations: 7.341 MB / 473 MB, free: 14.3 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001708/0.5843, allocations: 36 kB / 473.1 MB, free: 14.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.02084/0.6051, allocations: 6.442 MB / 479.5 MB, free: 7.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000324/0.6055, allocations: 60 kB / 479.6 MB, free: 7.762 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000457/0.606, allocations: 128 kB / 479.7 MB, free: 7.637 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004357/0.6065, allocations: 164.8 kB / 479.9 MB, free: 7.477 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008031/0.6145, allocations: 1.458 MB / 481.3 MB, free: 6.016 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004542/0.615, allocations: 255 kB / 481.6 MB, free: 5.766 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007266/0.6223, allocations: 0.7434 MB / 482.3 MB, free: 5.016 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001476/0.6238, allocations: 344 kB / 482.6 MB, free: 4.68 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.004989/0.6288, allocations: 1.576 MB / 484.2 MB, free: 3.094 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007321/0.6296, allocations: 248.8 kB / 484.5 MB, free: 2.848 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001932/0.6315, allocations: 0.833 MB / 485.3 MB, free: 2.008 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.032e-05/0.6316, allocations: 12 kB / 485.3 MB, free: 1.996 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.145e-05/0.6316, allocations: 0 / 485.3 MB, free: 1.996 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.559e-05/0.6316, allocations: 7.984 kB / 485.3 MB, free: 1.988 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007457/0.6391, allocations: 3.396 MB / 488.7 MB, free: 14.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.108e-05/0.6391, allocations: 0 / 488.7 MB, free: 14.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002374/0.6415, allocations: 411.5 kB / 489.1 MB, free: 14.15 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.779e-05/0.6415, allocations: 4 kB / 489.1 MB, free: 14.15 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001237/0.6417, allocations: 32.52 kB / 489.1 MB, free: 14.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.237e-06/0.6417, allocations: 7.938 kB / 489.1 MB, free: 14.11 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.953e-06/0.6417, allocations: 7.938 kB / 489.2 MB, free: 14.1 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003662/0.6454, allocations: 2.781 MB / 491.9 MB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007347/0.6461, allocations: 309.5 kB / 492.2 MB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000508/0.6466, allocations: 33.22 kB / 492.3 MB, free: 10.94 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001296/0.6479, allocations: 37.05 kB / 492.3 MB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001719/0.6481, allocations: 63.86 kB / 492.4 MB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001027/0.6482, allocations: 32.61 kB / 492.4 MB, free: 10.81 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00392/0.6522, allocations: 1.841 MB / 494.2 MB, free: 8.965 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6522, allocations: 0 / 494.2 MB, free: 8.965 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004312/0.6565, allocations: 0.8331 MB / 495.1 MB, free: 8.133 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.0003793/0.6569, allocations: 172.3 kB / 495.2 MB, free: 7.965 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005942/0.6628, allocations: 3.599 MB / 498.8 MB, free: 4.395 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.652e-06/0.6629, allocations: 1.938 kB / 498.8 MB, free: 4.395 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009508/0.6638, allocations: 0.7116 MB / 499.6 MB, free: 3.684 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002181/0.666, allocations: 251.5 kB / 499.8 MB, free: 3.441 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01537/0.6814, allocations: 8.798 MB / 0.4967 GB, free: 10.59 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002938/0.6844, allocations: 2.387 MB / 0.499 GB, free: 8.176 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.004647/0.6891, allocations: 1.645 MB / 0.5006 GB, free: 6.523 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006044/0.6897, allocations: 183.4 kB / 0.5008 GB, free: 6.344 MB / 398.1 MB Notification: Performance of SimCode: time 1.333e-06/0.6897, allocations: 4 kB / 0.5008 GB, free: 6.34 MB / 398.1 MB Notification: Performance of Templates: time 0.04681/0.7365, allocations: 20.5 MB / 0.5208 GB, free: 1.887 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/jenkins/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