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.001106/0.001106, allocations: 108.4 kB / 18.34 MB, free: 4.699 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.001118/0.001118, allocations: 190.9 kB / 19.28 MB, free: 3.766 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.329/1.329, allocations: 205.1 MB / 225.2 MB, free: 12.26 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.001304/0.001305, allocations: 43.94 kB / 282.1 MB, free: 2.449 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08231/0.08363, allocations: 46.63 MB / 328.7 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.009234/0.09291, allocations: 7.969 MB / 336.7 MB, free: 11.73 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004671/0.09761, allocations: 2.548 MB / 339.2 MB, free: 9.18 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006134/0.09825, allocations: 35.94 kB / 339.3 MB, free: 9.145 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002687/0.101, allocations: 1.429 MB / 340.7 MB, free: 7.711 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002123/0.1031, allocations: 0.98 MB / 341.7 MB, free: 6.727 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005985/0.1038, allocations: 263.5 kB / 341.9 MB, free: 6.469 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002359/0.1061, allocations: 2.189 MB / 344.1 MB, free: 4.273 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001693/0.1078, allocations: 1.56 MB / 345.7 MB, free: 2.695 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008875/0.1087, allocations: 0.8367 MB / 346.5 MB, free: 1.855 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001363/0.1101, allocations: 1.191 MB / 347.7 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002625/0.1104, allocations: 160 kB / 347.9 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001282/0.1117, allocations: 0.6591 MB / 348.5 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001267/0.1129, allocations: 1.157 MB / 349.7 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001435/0.1144, allocations: 1.382 MB / 351.1 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004309/0.1187, allocations: 4.297 MB / 355.4 MB, free: 8.98 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.1187, allocations: 0 / 355.4 MB, free: 8.98 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1187, allocations: 0 / 355.4 MB, free: 8.98 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.415e-05/0.1188, allocations: 0 / 355.4 MB, free: 8.98 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.004102/0.1229, allocations: 2.968 MB / 358.3 MB, free: 5.949 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.728e-05/0.123, allocations: 8.031 kB / 358.3 MB, free: 5.941 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006344/0.1293, allocations: 1.775 MB / 360.1 MB, free: 4.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002209/0.1315, allocations: 1.162 MB / 361.3 MB, free: 2.953 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001042/0.1317, allocations: 155.8 kB / 361.4 MB, free: 2.801 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003435/0.132, allocations: 207.8 kB / 361.6 MB, free: 2.598 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01729/0.1493, allocations: 8.592 MB / 370.2 MB, free: 9.402 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.607e-05/0.1494, allocations: 43.59 kB / 370.3 MB, free: 9.359 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002545/0.1497, allocations: 107.9 kB / 370.4 MB, free: 9.254 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002705/0.1524, allocations: 1.663 MB / 372 MB, free: 7.586 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0167/0.1691, allocations: 7.167 MB / 379.2 MB, free: 424 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1878/0.357, allocations: 30.09 MB / 409.3 MB, free: 27 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02125/0.3783, allocations: 5.041 MB / 414.3 MB, free: 24.39 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001425/0.3797, allocations: 1.246 MB / 415.6 MB, free: 23.8 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005009/0.3848, allocations: 3.74 MB / 419.3 MB, free: 20.98 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.815e-05/0.3848, allocations: 64.03 kB / 419.4 MB, free: 20.91 MB / 318.1 MB Notification: Performance of pre-optimization done (n=111): time 3.166e-06/0.3848, allocations: 0 / 419.4 MB, free: 20.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=111): time 0.04141/0.4262, allocations: 9.25 MB / 428.6 MB, free: 12.06 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.419e-05/0.4263, allocations: 199.9 kB / 428.8 MB, free: 11.82 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003359/0.4297, allocations: 3.039 MB / 431.9 MB, free: 8.766 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001199/0.4298, allocations: 45.64 kB / 431.9 MB, free: 8.715 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001012/0.4308, allocations: 2.418 MB / 434.3 MB, free: 6.301 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002979/0.4311, allocations: 0.4909 MB / 434.8 MB, free: 5.812 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009837/0.4321, allocations: 1.089 MB / 435.9 MB, free: 4.715 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.195e-05/0.4322, allocations: 305.1 kB / 436.2 MB, free: 4.414 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00182/0.434, allocations: 1.603 MB / 437.8 MB, free: 2.805 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003796/0.4378, allocations: 5.169 MB / 443 MB, free: 11.83 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007511/0.4454, allocations: 7.323 MB / 450.3 MB, free: 2.727 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.704e-05/0.4454, allocations: 36 kB / 450.3 MB, free: 2.691 MB / 334.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.00925/0.4547, allocations: 6.443 MB / 456.8 MB, free: 12.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.583e-05/0.4548, allocations: 63.94 kB / 456.8 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001252/0.4549, allocations: 132 kB / 457 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001436/0.4551, allocations: 168.1 kB / 457.1 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004545/0.4596, allocations: 1.45 MB / 458.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001748/0.4598, allocations: 251 kB / 458.8 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003409/0.4632, allocations: 0.744 MB / 459.6 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004065/0.4637, allocations: 344 kB / 459.9 MB, free: 9.105 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.001977/0.4656, allocations: 1.583 MB / 461.5 MB, free: 7.512 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003683/0.466, allocations: 252.7 kB / 461.7 MB, free: 7.262 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001324/0.4674, allocations: 0.8253 MB / 462.6 MB, free: 6.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-05/0.4674, allocations: 14.03 kB / 462.6 MB, free: 6.418 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.656e-06/0.4674, allocations: 0 / 462.6 MB, free: 6.418 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.509e-05/0.4674, allocations: 7.984 kB / 462.6 MB, free: 6.41 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005596/0.473, allocations: 3.394 MB / 466 MB, free: 2.977 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.504e-06/0.4731, allocations: 4 kB / 466 MB, free: 2.973 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002334/0.4754, allocations: 407.5 kB / 466.4 MB, free: 2.574 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.021e-05/0.4754, allocations: 4 kB / 466.4 MB, free: 2.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.927e-05/0.4755, allocations: 42.72 kB / 466.4 MB, free: 2.531 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.392e-06/0.4755, allocations: 4 kB / 466.4 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.4755, allocations: 0 / 466.4 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003041/0.4786, allocations: 2.79 MB / 469.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004508/0.4791, allocations: 305.6 kB / 469.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002333/0.4793, allocations: 27.98 kB / 469.5 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008606/0.4802, allocations: 43.55 kB / 469.6 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001373/0.4803, allocations: 67.8 kB / 469.7 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.598e-05/0.4804, allocations: 31.98 kB / 469.7 MB, free: 15.23 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002248/0.4826, allocations: 1.841 MB / 471.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4827, allocations: 0 / 471.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003892/0.4865, allocations: 0.8313 MB / 472.4 MB, free: 12.56 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.0003575/0.4869, allocations: 165.5 kB / 472.5 MB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004969/0.4919, allocations: 3.618 MB / 476.1 MB, free: 8.805 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.4919, allocations: 0 / 476.1 MB, free: 8.805 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008555/0.4928, allocations: 0.7159 MB / 476.9 MB, free: 8.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001427/0.4942, allocations: 269.6 kB / 477.1 MB, free: 7.836 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0106/0.5048, allocations: 7.052 MB / 484.2 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002294/0.5072, allocations: 2.387 MB / 486.6 MB, free: 14.33 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003312/0.5105, allocations: 1.633 MB / 488.2 MB, free: 12.69 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004177/0.5109, allocations: 187.4 kB / 488.4 MB, free: 12.51 MB / 382.1 MB Notification: Performance of SimCode: time 8.12e-07/0.5109, allocations: 3.938 kB / 488.4 MB, free: 12.5 MB / 382.1 MB Notification: Performance of Templates: time 0.03627/0.5472, allocations: 17.06 MB / 0.4936 GB, free: 11.43 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins1/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