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.001113/0.001113, allocations: 110.5 kB / 17.73 MB, free: 5.301 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.001165/0.001165, allocations: 187 kB / 18.66 MB, free: 4.375 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.367/1.367, allocations: 205.1 MB / 224.5 MB, free: 12.22 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.001225/0.001225, allocations: 55.92 kB / 328.5 MB, free: 3.285 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1107, allocations: 46.62 MB / 375.1 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.2288/0.3395, allocations: 7.959 MB / 383.1 MB, free: 9.031 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005349/0.3449, allocations: 2.558 MB / 385.7 MB, free: 7.938 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001122/0.346, allocations: 38.28 kB / 385.7 MB, free: 7.93 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002711/0.3488, allocations: 1.429 MB / 387.1 MB, free: 7.32 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002545/0.3514, allocations: 1.011 MB / 388.1 MB, free: 6.832 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008044/0.3522, allocations: 261.4 kB / 388.4 MB, free: 6.699 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002765/0.355, allocations: 2.184 MB / 390.6 MB, free: 5.824 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00181/0.3568, allocations: 1.563 MB / 392.1 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001521/0.3583, allocations: 0.841 MB / 393 MB, free: 4.844 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00183/0.3602, allocations: 1.188 MB / 394.2 MB, free: 4.383 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004286/0.3606, allocations: 160.3 kB / 394.3 MB, free: 4.383 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001582/0.3622, allocations: 0.6527 MB / 395 MB, free: 4.227 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001436/0.3636, allocations: 1.165 MB / 396.1 MB, free: 3.82 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001518/0.3652, allocations: 1.374 MB / 397.5 MB, free: 2.832 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005937/0.3711, allocations: 4.302 MB / 401.8 MB, free: 432 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.316e-06/0.3711, allocations: 4 kB / 401.8 MB, free: 428 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.3712, allocations: 0 / 401.8 MB, free: 428 kB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000148/0.3713, allocations: 0 / 401.8 MB, free: 428 kB / 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.006983/0.3783, allocations: 2.956 MB / 404.8 MB, free: 14.25 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.3784, allocations: 8.938 kB / 404.8 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007143/0.3855, allocations: 1.775 MB / 406.6 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002975/0.3885, allocations: 1.166 MB / 407.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001493/0.3887, allocations: 154.4 kB / 407.9 MB, free: 12.41 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005723/0.3893, allocations: 204.9 kB / 408.1 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01825/0.4075, allocations: 8.593 MB / 416.7 MB, free: 5.262 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.314e-05/0.4076, allocations: 47.64 kB / 416.7 MB, free: 5.215 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003027/0.408, allocations: 99.88 kB / 416.8 MB, free: 5.117 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002781/0.4107, allocations: 1.663 MB / 418.5 MB, free: 3.453 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01744/0.4282, allocations: 7.179 MB / 425.7 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0385/0.4667, allocations: 30.1 MB / 455.8 MB, free: 13.28 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0217/0.4885, allocations: 5.033 MB / 460.8 MB, free: 8.07 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001627/0.4901, allocations: 1.24 MB / 462 MB, free: 6.809 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006328/0.4965, allocations: 3.745 MB / 465.8 MB, free: 2.914 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.44e-05/0.4965, allocations: 54.83 kB / 465.8 MB, free: 2.852 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 3.436e-06/0.4965, allocations: 0 / 465.8 MB, free: 2.852 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.04422/0.5408, allocations: 9.265 MB / 475.1 MB, free: 9.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001065/0.5409, allocations: 195.9 kB / 475.3 MB, free: 9.266 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00652/0.5474, allocations: 3.039 MB / 478.3 MB, free: 6.207 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002112/0.5477, allocations: 45.64 kB / 478.4 MB, free: 6.156 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002055/0.5497, allocations: 2.418 MB / 480.8 MB, free: 3.699 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006785/0.5504, allocations: 0.494 MB / 481.3 MB, free: 3.199 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00213/0.5526, allocations: 1.095 MB / 482.4 MB, free: 2.094 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.262e-05/0.5527, allocations: 301.1 kB / 482.7 MB, free: 1.797 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002292/0.555, allocations: 1.603 MB / 484.3 MB, free: 192 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004694/0.5597, allocations: 5.169 MB / 489.5 MB, free: 9.211 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008038/0.5677, allocations: 7.324 MB / 496.8 MB, free: 104 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001174/0.5679, allocations: 36 kB / 496.8 MB, free: 68 kB / 414.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01086/0.5787, allocations: 6.439 MB / 0.4915 GB, free: 9.621 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000137/0.5789, allocations: 64.03 kB / 0.4915 GB, free: 9.559 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002201/0.5791, allocations: 128 kB / 0.4916 GB, free: 9.434 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002/0.5793, allocations: 168 kB / 0.4918 GB, free: 9.27 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004985/0.5843, allocations: 1.45 MB / 0.4932 GB, free: 7.816 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002461/0.5846, allocations: 257.4 kB / 0.4935 GB, free: 7.566 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004164/0.5888, allocations: 0.746 MB / 0.4942 GB, free: 6.812 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007489/0.5895, allocations: 340 kB / 0.4945 GB, free: 6.48 MB / 430.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.003411/0.593, allocations: 1.582 MB / 0.4961 GB, free: 4.891 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007099/0.5937, allocations: 244.8 kB / 0.4963 GB, free: 4.648 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001631/0.5953, allocations: 0.8369 MB / 0.4971 GB, free: 3.801 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.96e-05/0.5954, allocations: 12 kB / 0.4971 GB, free: 3.789 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.305e-05/0.5954, allocations: 7.938 kB / 0.4971 GB, free: 3.781 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.9e-05/0.5954, allocations: 3.984 kB / 0.4971 GB, free: 3.777 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007239/0.6026, allocations: 3.395 MB / 0.5004 GB, free: 328 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.435e-05/0.6027, allocations: 4 kB / 0.5004 GB, free: 324 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002287/0.605, allocations: 407.4 kB / 0.5008 GB, free: 15.92 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.999e-05/0.605, allocations: 4 kB / 0.5008 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001275/0.6052, allocations: 39.97 kB / 0.5009 GB, free: 15.88 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.061e-05/0.6052, allocations: 4 kB / 0.5009 GB, free: 15.87 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.6052, allocations: 4 kB / 0.5009 GB, free: 15.87 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003513/0.6087, allocations: 2.777 MB / 0.5036 GB, free: 13.06 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007043/0.6094, allocations: 309.6 kB / 0.5039 GB, free: 12.74 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005166/0.6099, allocations: 27.98 kB / 0.5039 GB, free: 12.71 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001148/0.6111, allocations: 35.97 kB / 0.504 GB, free: 12.68 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001401/0.6113, allocations: 63.84 kB / 0.504 GB, free: 12.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.002e-05/0.6114, allocations: 35.98 kB / 0.5041 GB, free: 12.58 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00367/0.615, allocations: 1.841 MB / 0.5058 GB, free: 10.73 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.615, allocations: 0 / 0.5058 GB, free: 10.73 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004807/0.6199, allocations: 0.8299 MB / 0.5067 GB, free: 9.902 MB / 446.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.0004908/0.6204, allocations: 167.7 kB / 0.5068 GB, free: 9.73 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005773/0.6261, allocations: 3.616 MB / 0.5104 GB, free: 6.141 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.6262, allocations: 0 / 0.5104 GB, free: 6.141 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009649/0.6271, allocations: 0.7103 MB / 0.511 GB, free: 5.43 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002152/0.6293, allocations: 269.1 kB / 0.5113 GB, free: 5.172 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01296/0.6423, allocations: 7.045 MB / 0.5182 GB, free: 14.08 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003775/0.6461, allocations: 2.395 MB / 0.5205 GB, free: 11.66 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004369/0.6505, allocations: 1.633 MB / 0.5221 GB, free: 10.02 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006602/0.6512, allocations: 191.4 kB / 0.5223 GB, free: 9.828 MB / 462.1 MB Notification: Performance of SimCode: time 8.51e-07/0.6512, allocations: 3.938 kB / 0.5223 GB, free: 9.824 MB / 462.1 MB Notification: Performance of Templates: time 0.0437/0.6949, allocations: 18.81 MB / 0.5407 GB, free: 6.992 MB / 478.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