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.001055/0.001055, allocations: 103.2 kB / 17.58 MB, free: 5.422 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.0009802/0.0009802, allocations: 187.9 kB / 18.5 MB, free: 4.516 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.292/1.292, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001137/0.001137, allocations: 56.39 kB / 280.6 MB, free: 3.188 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07795/0.0791, allocations: 46.64 MB / 327.3 MB, free: 4.48 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.008055/0.08718, allocations: 7.954 MB / 335.2 MB, free: 12.47 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004519/0.09174, allocations: 2.552 MB / 337.8 MB, free: 9.914 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006561/0.09243, allocations: 47.81 kB / 337.8 MB, free: 9.867 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002384/0.09489, allocations: 1.417 MB / 339.3 MB, free: 8.445 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001895/0.0968, allocations: 0.9762 MB / 340.2 MB, free: 7.465 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006499/0.09746, allocations: 271.4 kB / 340.5 MB, free: 7.199 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002133/0.0996, allocations: 2.185 MB / 342.7 MB, free: 5.008 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001618/0.1012, allocations: 1.564 MB / 344.2 MB, free: 3.426 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000899/0.1021, allocations: 0.8328 MB / 345.1 MB, free: 2.59 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001234/0.1034, allocations: 1.191 MB / 346.3 MB, free: 1.395 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002699/0.1037, allocations: 160 kB / 346.4 MB, free: 1.238 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001079/0.1048, allocations: 0.6553 MB / 347.1 MB, free: 0.582 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008496/0.1056, allocations: 1.165 MB / 348.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001037/0.1067, allocations: 1.374 MB / 349.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003267/0.1099, allocations: 4.111 MB / 353.7 MB, free: 9.906 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.1099, allocations: 0 / 353.7 MB, free: 9.906 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.206e-06/0.11, allocations: 4 kB / 353.7 MB, free: 9.902 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.396e-05/0.11, allocations: 3.984 kB / 353.7 MB, free: 9.898 MB / 302.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.003338/0.1133, allocations: 2.957 MB / 356.7 MB, free: 6.879 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.365e-05/0.1134, allocations: 8.031 kB / 356.7 MB, free: 6.871 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006258/0.1196, allocations: 1.775 MB / 358.5 MB, free: 5.09 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001788/0.1215, allocations: 1.162 MB / 359.6 MB, free: 3.883 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.224e-05/0.1216, allocations: 143.8 kB / 359.8 MB, free: 3.742 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003399/0.1219, allocations: 211.8 kB / 360 MB, free: 3.535 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01634/0.1382, allocations: 8.592 MB / 368.6 MB, free: 10.34 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.844e-05/0.1383, allocations: 47.58 kB / 368.6 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002496/0.1386, allocations: 99.83 kB / 368.7 MB, free: 10.2 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002659/0.1413, allocations: 1.675 MB / 370.4 MB, free: 8.516 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01681/0.1581, allocations: 7.163 MB / 377.6 MB, free: 1.348 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1644/0.3225, allocations: 30.17 MB / 407.7 MB, free: 27.3 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02079/0.3434, allocations: 5.046 MB / 412.8 MB, free: 24.86 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001302/0.3447, allocations: 1.247 MB / 414 MB, free: 24.27 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004204/0.3489, allocations: 3.739 MB / 417.8 MB, free: 21.45 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.596e-05/0.349, allocations: 51.48 kB / 417.8 MB, free: 21.39 MB / 318.1 MB Notification: Performance of pre-optimization done (n=111): time 3.556e-06/0.349, allocations: 0 / 417.8 MB, free: 21.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=111): time 0.04188/0.3909, allocations: 9.265 MB / 427.1 MB, free: 12.79 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.503e-05/0.391, allocations: 195.9 kB / 427.3 MB, free: 12.55 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003008/0.394, allocations: 3.035 MB / 430.3 MB, free: 9.496 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.216e-05/0.3941, allocations: 42.73 kB / 430.3 MB, free: 9.449 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009229/0.395, allocations: 2.414 MB / 432.8 MB, free: 7.039 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002972/0.3953, allocations: 0.5014 MB / 433.3 MB, free: 6.543 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008938/0.3962, allocations: 1.088 MB / 434.4 MB, free: 5.445 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.888e-05/0.3963, allocations: 305.1 kB / 434.6 MB, free: 5.145 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001652/0.3979, allocations: 1.599 MB / 436.2 MB, free: 3.539 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003797/0.4017, allocations: 5.165 MB / 441.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008279/0.41, allocations: 7.33 MB / 448.7 MB, free: 3.453 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001078/0.4102, allocations: 40 kB / 448.8 MB, free: 3.414 MB / 334.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01076/0.4209, allocations: 6.448 MB / 455.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.8e-05/0.421, allocations: 63.94 kB / 455.3 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001819/0.4212, allocations: 128 kB / 455.4 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001623/0.4214, allocations: 164.8 kB / 455.6 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004851/0.4263, allocations: 1.454 MB / 457 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002229/0.4265, allocations: 255 kB / 457.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003656/0.4302, allocations: 0.7382 MB / 458 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006576/0.4308, allocations: 347.8 kB / 458.4 MB, free: 9.828 MB / 350.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.002629/0.4335, allocations: 1.575 MB / 459.9 MB, free: 8.242 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005849/0.4341, allocations: 252.8 kB / 460.2 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001501/0.4356, allocations: 0.8295 MB / 461 MB, free: 7.156 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.473e-05/0.4356, allocations: 16 kB / 461 MB, free: 7.141 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.314e-05/0.4357, allocations: 3.938 kB / 461 MB, free: 7.137 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.996e-05/0.4357, allocations: 7.984 kB / 461 MB, free: 7.129 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006483/0.4422, allocations: 3.392 MB / 464.4 MB, free: 3.695 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.193e-05/0.4422, allocations: 4 kB / 464.4 MB, free: 3.691 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002246/0.4445, allocations: 407.5 kB / 464.8 MB, free: 3.293 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.379e-05/0.4445, allocations: 4 kB / 464.8 MB, free: 3.289 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000112/0.4446, allocations: 39.91 kB / 464.9 MB, free: 3.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.397e-06/0.4446, allocations: 4 kB / 464.9 MB, free: 3.246 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.4446, allocations: 0 / 464.9 MB, free: 3.246 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003175/0.4478, allocations: 2.782 MB / 467.7 MB, free: 460 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005471/0.4484, allocations: 311.4 kB / 468 MB, free: 128 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003658/0.4488, allocations: 31.98 kB / 468 MB, free: 92 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009883/0.4498, allocations: 35.95 kB / 468 MB, free: 56 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001552/0.4499, allocations: 59.91 kB / 468.1 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.666e-05/0.45, allocations: 35.94 kB / 468.1 MB, free: 15.96 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003008/0.453, allocations: 1.841 MB / 470 MB, free: 14.12 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4531, allocations: 0 / 470 MB, free: 14.12 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.004032/0.4571, allocations: 0.8333 MB / 470.8 MB, free: 13.29 MB / 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 (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.0003945/0.4575, allocations: 173.2 kB / 471 MB, free: 13.12 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006077/0.4636, allocations: 3.79 MB / 474.8 MB, free: 9.363 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.578e-06/0.4636, allocations: 4 kB / 474.8 MB, free: 9.359 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00102/0.4646, allocations: 0.7116 MB / 475.5 MB, free: 8.648 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002389/0.467, allocations: 269.9 kB / 475.7 MB, free: 8.395 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01306/0.4801, allocations: 7.134 MB / 482.9 MB, free: 1.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002982/0.4831, allocations: 2.391 MB / 485.3 MB, free: 14.81 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.004357/0.4875, allocations: 1.637 MB / 486.9 MB, free: 13.17 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006067/0.4881, allocations: 183.4 kB / 487.1 MB, free: 12.99 MB / 382.1 MB Notification: Performance of SimCode: time 9.52e-07/0.4882, allocations: 0 / 487.1 MB, free: 12.99 MB / 382.1 MB Notification: Performance of Templates: time 0.04147/0.5296, allocations: 21.41 MB / 0.4966 GB, free: 7.566 MB / 398.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches