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.001317/0.001317, allocations: 103.4 kB / 17.16 MB, free: 6.32 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.001439/0.001439, allocations: 190 kB / 18.07 MB, free: 5.414 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.453/1.453, allocations: 205.1 MB / 223.9 MB, free: 12.48 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.00124/0.00124, allocations: 55.92 kB / 280 MB, free: 3.57 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1153, allocations: 46.61 MB / 326.6 MB, free: 4.891 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.02793/0.1433, allocations: 28.94 MB / 355.5 MB, free: 7.828 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01506/0.1584, allocations: 5.984 MB / 361.5 MB, free: 1.824 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006465/0.1649, allocations: 111.8 kB / 361.6 MB, free: 1.715 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00312/0.1681, allocations: 1.414 MB / 363 MB, free: 304 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002593/0.1707, allocations: 0.9301 MB / 364 MB, free: 15.36 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006825/0.1714, allocations: 235.6 kB / 364.2 MB, free: 15.13 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004031/0.1754, allocations: 3.292 MB / 367.5 MB, free: 11.83 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002184/0.1776, allocations: 1.538 MB / 369 MB, free: 10.27 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001122/0.1788, allocations: 0.7314 MB / 369.8 MB, free: 9.535 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001902/0.1807, allocations: 1.3 MB / 371.1 MB, free: 8.23 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003273/0.181, allocations: 112 kB / 371.2 MB, free: 8.121 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001505/0.1825, allocations: 0.6435 MB / 371.8 MB, free: 7.477 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001177/0.1837, allocations: 1.149 MB / 373 MB, free: 6.324 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001506/0.1852, allocations: 1.347 MB / 374.3 MB, free: 4.969 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004117/0.1894, allocations: 4.08 MB / 378.4 MB, free: 0.875 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.1894, allocations: 0 / 378.4 MB, free: 0.875 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1894, allocations: 0 / 378.4 MB, free: 0.875 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.493e-05/0.1895, allocations: 8 kB / 378.4 MB, free: 0.8672 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.2011/0.3906, allocations: 2.943 MB / 381.3 MB, free: 55.25 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.836e-05/0.3906, allocations: 10.12 kB / 381.4 MB, free: 55.25 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007863/0.3985, allocations: 1.776 MB / 383.1 MB, free: 55 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003586/0.4021, allocations: 1.157 MB / 384.3 MB, free: 54.31 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001671/0.4023, allocations: 151.5 kB / 384.4 MB, free: 54.27 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005309/0.4029, allocations: 210.5 kB / 384.6 MB, free: 54.23 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02041/0.4233, allocations: 8.603 MB / 393.2 MB, free: 49.82 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001189/0.4235, allocations: 36.16 kB / 393.3 MB, free: 49.8 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002958/0.4238, allocations: 100.9 kB / 393.4 MB, free: 49.74 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002765/0.4265, allocations: 1.672 MB / 395.1 MB, free: 49.07 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01722/0.4438, allocations: 7.17 MB / 402.2 MB, free: 42.01 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03561/0.4794, allocations: 30.19 MB / 432.4 MB, free: 10.98 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02102/0.5005, allocations: 5.046 MB / 437.5 MB, free: 5.758 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001477/0.502, allocations: 1.24 MB / 438.7 MB, free: 4.496 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006057/0.5081, allocations: 3.736 MB / 442.4 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.824e-05/0.5082, allocations: 53.14 kB / 442.5 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of pre-optimization done (n=111): time 5.43e-06/0.5082, allocations: 0 / 442.5 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of matching and sorting (n=111): time 0.04688/0.5551, allocations: 9.264 MB / 451.7 MB, free: 7.203 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001123/0.5553, allocations: 191.9 kB / 451.9 MB, free: 6.973 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005641/0.5609, allocations: 3.043 MB / 455 MB, free: 3.91 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002223/0.5612, allocations: 37.7 kB / 455 MB, free: 3.867 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001887/0.5631, allocations: 2.422 MB / 457.4 MB, free: 1.406 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007504/0.5638, allocations: 0.4979 MB / 457.9 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001775/0.5656, allocations: 1.083 MB / 459 MB, free: 15.81 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.397e-05/0.5657, allocations: 301.1 kB / 459.3 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00215/0.5679, allocations: 1.607 MB / 460.9 MB, free: 13.9 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004656/0.5725, allocations: 5.17 MB / 466.1 MB, free: 6.926 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008173/0.5807, allocations: 7.337 MB / 473.4 MB, free: 13.8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.769e-05/0.5808, allocations: 40 kB / 473.5 MB, free: 13.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.009782/0.5906, allocations: 6.434 MB / 479.9 MB, free: 7.324 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.896e-05/0.5907, allocations: 60 kB / 480 MB, free: 7.266 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001159/0.5908, allocations: 124.9 kB / 480.1 MB, free: 7.145 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001455/0.591, allocations: 171.9 kB / 480.2 MB, free: 6.977 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004573/0.5956, allocations: 1.458 MB / 481.7 MB, free: 5.516 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002134/0.5958, allocations: 243 kB / 481.9 MB, free: 5.277 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004075/0.5999, allocations: 0.746 MB / 482.7 MB, free: 4.523 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004673/0.6004, allocations: 344 kB / 483 MB, free: 4.188 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.002281/0.6027, allocations: 1.575 MB / 484.6 MB, free: 2.602 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005818/0.6033, allocations: 248.8 kB / 484.8 MB, free: 2.355 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001338/0.6046, allocations: 0.833 MB / 485.7 MB, free: 1.516 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.428e-05/0.6046, allocations: 16 kB / 485.7 MB, free: 1.5 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.169e-05/0.6047, allocations: 0 / 485.7 MB, free: 1.5 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.376e-05/0.6047, allocations: 7.969 kB / 485.7 MB, free: 1.492 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005547/0.6102, allocations: 3.394 MB / 489.1 MB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.6103, allocations: 0 / 489.1 MB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002275/0.6125, allocations: 408.9 kB / 489.5 MB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.203e-05/0.6126, allocations: 4 kB / 489.5 MB, free: 13.63 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.4e-05/0.6127, allocations: 39.97 kB / 489.5 MB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.013e-06/0.6127, allocations: 4 kB / 489.5 MB, free: 13.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.284e-06/0.6127, allocations: 15.8 kB / 489.6 MB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003109/0.6158, allocations: 2.776 MB / 492.3 MB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006605/0.6165, allocations: 297.7 kB / 492.6 MB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002617/0.6168, allocations: 32.73 kB / 492.7 MB, free: 10.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009305/0.6177, allocations: 47.86 kB / 492.7 MB, free: 10.38 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001321/0.6178, allocations: 55.86 kB / 492.8 MB, free: 10.33 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.968e-05/0.6179, allocations: 39.97 kB / 492.8 MB, free: 10.29 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003169/0.6211, allocations: 1.845 MB / 494.6 MB, free: 8.441 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.71e-07/0.6211, allocations: 0 / 494.6 MB, free: 8.441 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004934/0.6261, allocations: 0.8287 MB / 495.5 MB, free: 7.613 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.0003935/0.6265, allocations: 168.9 kB / 495.6 MB, free: 7.445 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006149/0.6326, allocations: 3.592 MB / 499.2 MB, free: 3.883 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.578e-06/0.6327, allocations: 5.875 kB / 499.2 MB, free: 3.879 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009672/0.6336, allocations: 0.7153 MB / 499.9 MB, free: 3.164 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002059/0.6357, allocations: 259.9 kB / 0.4885 GB, free: 2.914 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01318/0.6489, allocations: 8.44 MB / 0.4967 GB, free: 10.43 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002663/0.6516, allocations: 2.379 MB / 0.499 GB, free: 8.023 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.004652/0.6563, allocations: 1.652 MB / 0.5007 GB, free: 6.367 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004857/0.6568, allocations: 183.4 kB / 0.5008 GB, free: 6.188 MB / 398.1 MB Notification: Performance of SimCode: time 1.924e-06/0.6568, allocations: 4 kB / 0.5008 GB, free: 6.184 MB / 398.1 MB Notification: Performance of Templates: time 0.04393/0.7008, allocations: 20.64 MB / 0.521 GB, free: 1.523 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