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.0008262/0.0008265, allocations: 96.97 kB / 16.96 MB, free: 5.996 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.0007866/0.0007867, allocations: 179.3 kB / 17.84 MB, free: 5.633 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.403/1.403, allocations: 205.4 MB / 224 MB, free: 13.16 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.0004509/0.000451, allocations: 12 kB / 280.8 MB, free: 3.734 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09683/0.09729, allocations: 47.59 MB / 328.4 MB, free: 4.078 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.02552/0.1229, allocations: 26.14 MB / 354.5 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01349/0.1364, allocations: 5.678 MB / 360.2 MB, free: 4.156 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00495/0.1414, allocations: 111.8 kB / 360.3 MB, free: 4.047 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003737/0.1452, allocations: 1.326 MB / 361.6 MB, free: 2.715 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009551/0.1547, allocations: 3.798 MB / 365.4 MB, free: 14.9 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001639/0.1564, allocations: 219.7 kB / 365.6 MB, free: 14.68 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003644/0.1601, allocations: 2.594 MB / 368.2 MB, free: 12.08 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003152/0.1632, allocations: 1.892 MB / 370.1 MB, free: 10.15 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001255/0.1645, allocations: 0.7315 MB / 370.9 MB, free: 9.414 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001676/0.1662, allocations: 1.199 MB / 372.1 MB, free: 8.211 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003432/0.1666, allocations: 88 kB / 372.1 MB, free: 8.125 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001135/0.1677, allocations: 0.5305 MB / 372.7 MB, free: 7.594 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001147/0.1689, allocations: 1.087 MB / 373.8 MB, free: 6.504 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008833/0.1697, allocations: 0.5546 MB / 374.3 MB, free: 5.941 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003981/0.1737, allocations: 3.246 MB / 377.6 MB, free: 2.691 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.634e-06/0.1738, allocations: 0 / 377.6 MB, free: 2.691 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1738, allocations: 0 / 377.6 MB, free: 2.691 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001902/0.174, allocations: 0 / 377.6 MB, free: 2.691 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.004872/0.1788, allocations: 2.438 MB / 380 MB, free: 196 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/0.1789, allocations: 8.031 kB / 380 MB, free: 188 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.172/0.3509, allocations: 1.813 MB / 381.8 MB, free: 54.82 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003487/0.3544, allocations: 1.143 MB / 383 MB, free: 54.36 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001727/0.3546, allocations: 149.2 kB / 383.1 MB, free: 54.35 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005298/0.3551, allocations: 211.5 kB / 383.3 MB, free: 54.34 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01883/0.374, allocations: 8.599 MB / 391.9 MB, free: 50.28 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.01e-05/0.3741, allocations: 48.08 kB / 392 MB, free: 50.25 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000258/0.3744, allocations: 104.8 kB / 392.1 MB, free: 50.21 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002352/0.3767, allocations: 1.667 MB / 393.7 MB, free: 49.55 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01374/0.3905, allocations: 7.151 MB / 400.9 MB, free: 43.32 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02598/0.4165, allocations: 30.18 MB / 431.1 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01842/0.435, allocations: 5.105 MB / 436.2 MB, free: 7.152 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001449/0.4365, allocations: 1.237 MB / 437.4 MB, free: 5.895 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004898/0.4414, allocations: 3.748 MB / 441.1 MB, free: 2.016 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.349e-05/0.4415, allocations: 46.83 kB / 441.2 MB, free: 1.961 MB / 318.1 MB Notification: Performance of pre-optimization done (n=111): time 3.357e-06/0.4415, allocations: 0 / 441.2 MB, free: 1.961 MB / 318.1 MB Notification: Performance of matching and sorting (n=111): time 0.03865/0.4801, allocations: 9.375 MB / 450.6 MB, free: 8.5 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.995e-05/0.4803, allocations: 191.9 kB / 450.8 MB, free: 8.27 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005225/0.4855, allocations: 3.027 MB / 453.8 MB, free: 5.223 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001832/0.4857, allocations: 45.64 kB / 453.8 MB, free: 5.172 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002216/0.4879, allocations: 2.423 MB / 456.2 MB, free: 2.754 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006768/0.4886, allocations: 499.8 kB / 456.7 MB, free: 2.27 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003109/0.4889, allocations: 112 kB / 456.8 MB, free: 2.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0003929/0.4894, allocations: 0.5333 MB / 457.4 MB, free: 1.621 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002687/0.492, allocations: 1.58 MB / 459 MB, free: 36 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005057/0.4971, allocations: 5.145 MB / 464.1 MB, free: 9.086 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004045/0.5012, allocations: 2.806 MB / 466.9 MB, free: 6.281 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.208e-05/0.5012, allocations: 39.94 kB / 466.9 MB, free: 6.242 MB / 350.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.011/0.5123, allocations: 6.394 MB / 473.3 MB, free: 15.84 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.287e-05/0.5124, allocations: 64.25 kB / 473.4 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001702/0.5126, allocations: 128 kB / 473.5 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001912/0.5128, allocations: 188 kB / 473.7 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004789/0.5176, allocations: 1.458 MB / 475.2 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002305/0.5178, allocations: 243 kB / 475.4 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003716/0.5215, allocations: 0.746 MB / 476.2 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005176/0.5221, allocations: 348.3 kB / 476.5 MB, free: 12.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002439/0.5245, allocations: 1.579 MB / 478.1 MB, free: 11.09 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004778/0.525, allocations: 252.7 kB / 478.3 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001378/0.5264, allocations: 0.8211 MB / 479.1 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.887e-05/0.5264, allocations: 19.94 kB / 479.2 MB, free: 9.988 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.227e-05/0.5264, allocations: 3.25 kB / 479.2 MB, free: 9.988 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.351e-05/0.5264, allocations: 11.91 kB / 479.2 MB, free: 9.977 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005804/0.5323, allocations: 3.391 MB / 482.6 MB, free: 6.547 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.768e-06/0.5323, allocations: 4 kB / 482.6 MB, free: 6.543 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002166/0.5345, allocations: 403.5 kB / 483 MB, free: 6.148 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.356e-05/0.5345, allocations: 4 kB / 483 MB, free: 6.145 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.581e-05/0.5346, allocations: 43.92 kB / 483 MB, free: 6.102 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.703e-06/0.5346, allocations: 4 kB / 483 MB, free: 6.098 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.5346, allocations: 0 / 483 MB, free: 6.098 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003271/0.5379, allocations: 2.785 MB / 485.8 MB, free: 3.285 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004964/0.5384, allocations: 309.5 kB / 486.1 MB, free: 2.961 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002642/0.5387, allocations: 31.98 kB / 486.1 MB, free: 2.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007889/0.5395, allocations: 40.84 kB / 486.2 MB, free: 2.891 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001104/0.5396, allocations: 63.86 kB / 486.2 MB, free: 2.828 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.891e-05/0.5397, allocations: 32.61 kB / 486.3 MB, free: 2.797 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002479/0.5422, allocations: 1.825 MB / 488.1 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.5422, allocations: 0 / 488.1 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003976/0.5461, allocations: 0.8364 MB / 488.9 MB, free: 140 kB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003675/0.5465, allocations: 155.9 kB / 489.1 MB, free: 15.98 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005338/0.5519, allocations: 3.571 MB / 492.7 MB, free: 12.44 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.5519, allocations: 8.688 kB / 492.7 MB, free: 12.43 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009254/0.5528, allocations: 0.7119 MB / 493.4 MB, free: 11.72 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001467/0.5543, allocations: 247 kB / 493.6 MB, free: 11.48 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01201/0.5663, allocations: 8.507 MB / 0.4904 GB, free: 2.93 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002532/0.5689, allocations: 2.387 MB / 0.4927 GB, free: 0.5117 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.004045/0.5729, allocations: 1.645 MB / 0.4943 GB, free: 14.86 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004939/0.5735, allocations: 191.4 kB / 0.4945 GB, free: 14.67 MB / 398.1 MB Notification: Performance of SimCode: time 1.934e-06/0.5735, allocations: 0 / 0.4945 GB, free: 14.67 MB / 398.1 MB Notification: Performance of Templates: time 0.04295/0.6164, allocations: 20.13 MB / 0.5141 GB, free: 10.59 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