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.001463/0.001463, allocations: 114 kB / 17.28 MB, free: 6.219 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.001435/0.001435, allocations: 189.3 kB / 18.2 MB, free: 5.297 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.509/1.509, allocations: 205.1 MB / 224.1 MB, free: 12.43 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.001182/0.001182, allocations: 51.92 kB / 280.2 MB, free: 3.473 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1126, allocations: 46.62 MB / 326.8 MB, free: 4.781 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.02943/0.1421, allocations: 28.94 MB / 355.7 MB, free: 7.719 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01601/0.1582, allocations: 5.949 MB / 361.7 MB, free: 1.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007685/0.1659, allocations: 111.8 kB / 361.8 MB, free: 1.641 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003737/0.1697, allocations: 1.371 MB / 363.2 MB, free: 272 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003483/0.1732, allocations: 0.9106 MB / 364.1 MB, free: 15.35 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008718/0.1741, allocations: 239.6 kB / 364.3 MB, free: 15.12 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003387/0.1775, allocations: 2.235 MB / 366.5 MB, free: 12.87 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001893/0.1794, allocations: 1.646 MB / 368.2 MB, free: 11.21 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001095/0.1805, allocations: 0.8444 MB / 369 MB, free: 10.36 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001554/0.1821, allocations: 1.347 MB / 370.4 MB, free: 9.008 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003204/0.1824, allocations: 160 kB / 370.5 MB, free: 8.852 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001384/0.1838, allocations: 0.6631 MB / 371.2 MB, free: 8.188 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001091/0.1849, allocations: 1.188 MB / 372.4 MB, free: 6.996 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001161/0.1861, allocations: 1.398 MB / 373.8 MB, free: 5.59 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003845/0.1899, allocations: 4.147 MB / 377.9 MB, free: 1.43 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.413e-06/0.19, allocations: 8 kB / 377.9 MB, free: 1.422 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.19, allocations: 0 / 377.9 MB, free: 1.422 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.961e-05/0.1901, allocations: 0 / 377.9 MB, free: 1.422 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.1951/0.3852, allocations: 2.949 MB / 380.9 MB, free: 55.11 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.3852, allocations: 9.625 kB / 380.9 MB, free: 55.11 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007497/0.3927, allocations: 1.779 MB / 382.7 MB, free: 54.86 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002072/0.3948, allocations: 1.159 MB / 383.8 MB, free: 54.17 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001505/0.395, allocations: 148.5 kB / 384 MB, free: 54.13 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004499/0.3955, allocations: 206.4 kB / 384.2 MB, free: 54.09 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02187/0.4173, allocations: 8.603 MB / 392.8 MB, free: 49.67 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001025/0.4175, allocations: 40.16 kB / 392.8 MB, free: 49.65 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002868/0.4178, allocations: 100.9 kB / 392.9 MB, free: 49.58 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002774/0.4206, allocations: 1.668 MB / 394.6 MB, free: 48.91 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01576/0.4363, allocations: 7.173 MB / 401.8 MB, free: 42.01 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02717/0.4635, allocations: 30.18 MB / 431.9 MB, free: 10.98 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02075/0.4843, allocations: 5.042 MB / 437 MB, free: 5.766 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001313/0.4857, allocations: 1.24 MB / 438.2 MB, free: 4.504 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004038/0.4897, allocations: 3.748 MB / 442 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.142e-05/0.4898, allocations: 50.52 kB / 442 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of pre-optimization done (n=111): time 3.647e-06/0.4898, allocations: 4 kB / 442 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of matching and sorting (n=111): time 0.0445/0.5343, allocations: 9.262 MB / 451.3 MB, free: 7.207 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.525e-05/0.5344, allocations: 191.9 kB / 451.5 MB, free: 6.977 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003784/0.5382, allocations: 3.035 MB / 454.5 MB, free: 3.922 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001229/0.5383, allocations: 45.69 kB / 454.5 MB, free: 3.871 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001377/0.5397, allocations: 2.423 MB / 457 MB, free: 1.41 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005076/0.5402, allocations: 0.494 MB / 457.5 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001253/0.5415, allocations: 1.091 MB / 458.6 MB, free: 15.81 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.5417, allocations: 301.1 kB / 458.9 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002331/0.544, allocations: 1.603 MB / 460.5 MB, free: 13.9 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004878/0.5489, allocations: 5.169 MB / 465.6 MB, free: 6.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007688/0.5566, allocations: 7.326 MB / 472.9 MB, free: 13.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.768e-05/0.5567, allocations: 36 kB / 473 MB, free: 13.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.009638/0.5663, allocations: 6.445 MB / 479.4 MB, free: 7.332 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.256e-05/0.5664, allocations: 60 kB / 479.5 MB, free: 7.273 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000123/0.5666, allocations: 128 kB / 479.6 MB, free: 7.148 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001535/0.5667, allocations: 168 kB / 479.8 MB, free: 6.984 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0045/0.5712, allocations: 1.45 MB / 481.2 MB, free: 5.531 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001896/0.5714, allocations: 247 kB / 481.5 MB, free: 5.289 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00376/0.5752, allocations: 0.7463 MB / 482.2 MB, free: 4.535 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003765/0.5756, allocations: 344 kB / 482.6 MB, free: 4.199 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.002192/0.5778, allocations: 1.583 MB / 484.1 MB, free: 2.605 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003706/0.5782, allocations: 244.8 kB / 484.4 MB, free: 2.363 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001238/0.5794, allocations: 0.833 MB / 485.2 MB, free: 1.523 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.099e-05/0.5794, allocations: 12.38 kB / 485.2 MB, free: 1.512 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.5795, allocations: 8 kB / 485.2 MB, free: 1.504 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.205e-05/0.5795, allocations: 7.969 kB / 485.2 MB, free: 1.496 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005002/0.5845, allocations: 3.393 MB / 488.6 MB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.5845, allocations: 3.938 kB / 488.6 MB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002236/0.5867, allocations: 403.5 kB / 489 MB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.488e-06/0.5868, allocations: 8 kB / 489 MB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.725e-05/0.5869, allocations: 39.97 kB / 489.1 MB, free: 13.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.561e-06/0.5869, allocations: 4 kB / 489.1 MB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.985e-06/0.5869, allocations: 12.62 kB / 489.1 MB, free: 13.58 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003017/0.5899, allocations: 2.776 MB / 491.9 MB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005886/0.5905, allocations: 297.7 kB / 492.2 MB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000244/0.5908, allocations: 27.98 kB / 492.2 MB, free: 10.44 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000833/0.5916, allocations: 43.94 kB / 492.2 MB, free: 10.39 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001304/0.5917, allocations: 59.8 kB / 492.3 MB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.945e-05/0.5918, allocations: 42.34 kB / 492.3 MB, free: 10.3 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002369/0.5942, allocations: 1.841 MB / 494.2 MB, free: 8.453 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5942, allocations: 0 / 494.2 MB, free: 8.453 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004193/0.5984, allocations: 0.8363 MB / 495 MB, free: 7.617 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.0004265/0.5989, allocations: 165 kB / 495.2 MB, free: 7.453 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0059/0.6048, allocations: 3.799 MB / 499 MB, free: 3.695 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/0.6048, allocations: 0 / 499 MB, free: 3.695 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008555/0.6057, allocations: 0.7155 MB / 499.7 MB, free: 2.98 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001713/0.6074, allocations: 265.5 kB / 499.9 MB, free: 2.727 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01273/0.6201, allocations: 8.432 MB / 0.4965 GB, free: 10.25 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002459/0.6226, allocations: 2.394 MB / 0.4988 GB, free: 7.832 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.004251/0.6269, allocations: 1.639 MB / 0.5004 GB, free: 6.188 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004531/0.6274, allocations: 183.4 kB / 0.5006 GB, free: 6.008 MB / 398.1 MB Notification: Performance of SimCode: time 8.82e-07/0.6274, allocations: 0 / 0.5006 GB, free: 6.008 MB / 398.1 MB Notification: Performance of Templates: time 0.04898/0.6764, allocations: 21.39 MB / 0.5215 GB, free: 0.5898 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