Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001005/0.001005, allocations: 192.6 kB / 17.38 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.271/1.271, allocations: 226.5 MB / 244.7 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008108/0.0008108, allocations: 99.05 kB / 296.8 MB, free: 6.918 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002397/0.0002397, allocations: 12 kB / 356.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2034/0.2036, allocations: 51.28 MB / 408 MB, free: 27.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.01633/0.22, allocations: 26.17 MB / 434.2 MB, free: 1.477 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01135/0.2314, allocations: 5.689 MB / 439.9 MB, free: 11.79 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003747/0.2352, allocations: 111.8 kB / 440 MB, free: 11.68 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003502/0.2387, allocations: 1.341 MB / 441.4 MB, free: 10.33 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01027/0.249, allocations: 3.801 MB / 445.2 MB, free: 6.512 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001749/0.2508, allocations: 255.6 kB / 445.4 MB, free: 6.262 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003586/0.2544, allocations: 2.619 MB / 448 MB, free: 3.637 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003371/0.2578, allocations: 1.987 MB / 450 MB, free: 1.605 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001433/0.2593, allocations: 0.7354 MB / 450.8 MB, free: 0.8672 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001862/0.2611, allocations: 1.199 MB / 451.9 MB, free: 15.66 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005124/0.2617, allocations: 88 kB / 452 MB, free: 15.58 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001546/0.2632, allocations: 0.62 MB / 452.7 MB, free: 14.96 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001365/0.2646, allocations: 1.087 MB / 453.7 MB, free: 13.87 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001803/0.2664, allocations: 1.24 MB / 455 MB, free: 12.61 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003608/0.27, allocations: 3.251 MB / 458.2 MB, free: 9.352 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.092e-05/0.2701, allocations: 0 / 458.2 MB, free: 9.352 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.334e-06/0.2701, allocations: 3.938 kB / 458.2 MB, free: 9.348 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0002037/0.2703, allocations: 0 / 458.2 MB, free: 9.348 MB / 330.7 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.004945/0.2752, allocations: 2.399 MB / 460.6 MB, free: 6.887 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.283e-05/0.2753, allocations: 8.031 kB / 460.6 MB, free: 6.879 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006322/0.2816, allocations: 1.826 MB / 462.5 MB, free: 5.047 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002266/0.2839, allocations: 1.158 MB / 463.6 MB, free: 3.844 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000158/0.2841, allocations: 155.8 kB / 463.8 MB, free: 3.691 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006196/0.2847, allocations: 207.8 kB / 464 MB, free: 3.488 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01791/0.3027, allocations: 8.6 MB / 472.6 MB, free: 10.28 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001176/0.3028, allocations: 39.66 kB / 472.6 MB, free: 10.24 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000503/0.3033, allocations: 103.9 kB / 472.7 MB, free: 10.14 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002772/0.3061, allocations: 1.667 MB / 474.4 MB, free: 8.473 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02084/0.327, allocations: 7.151 MB / 481.5 MB, free: 1.32 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05829/0.3853, allocations: 30.2 MB / 0.4998 GB, free: 2.234 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2272/0.6126, allocations: 5.095 MB / 0.5047 GB, free: 94.27 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001569/0.6142, allocations: 1.243 MB / 0.5059 GB, free: 94.06 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00511/0.6193, allocations: 3.735 MB / 0.5096 GB, free: 91.89 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.769e-05/0.6194, allocations: 49.89 kB / 0.5096 GB, free: 91.84 MB / 378.7 MB Notification: Performance of pre-optimization done (n=111): time 5.11e-06/0.6194, allocations: 0 / 0.5096 GB, free: 91.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=111): time 0.03923/0.6586, allocations: 9.373 MB / 0.5188 GB, free: 87.28 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.762e-05/0.6587, allocations: 198.1 kB / 0.519 GB, free: 87.05 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003208/0.6619, allocations: 3.029 MB / 0.5219 GB, free: 84.01 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001481/0.6621, allocations: 37.7 kB / 0.522 GB, free: 83.96 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009422/0.663, allocations: 2.423 MB / 0.5243 GB, free: 81.55 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003818/0.6634, allocations: 0.4922 MB / 0.5248 GB, free: 81.06 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001629/0.6636, allocations: 104 kB / 0.5249 GB, free: 80.96 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002049/0.6638, allocations: 0.5333 MB / 0.5254 GB, free: 80.42 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00183/0.6656, allocations: 1.584 MB / 0.527 GB, free: 78.83 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002756/0.6684, allocations: 5.149 MB / 0.532 GB, free: 71.92 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005479/0.6739, allocations: 7.3 MB / 0.5391 GB, free: 62.84 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.729e-05/0.674, allocations: 39.94 kB / 0.5392 GB, free: 62.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.008712/0.6827, allocations: 6.402 MB / 0.5454 GB, free: 56.39 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.419e-05/0.6828, allocations: 62.88 kB / 0.5455 GB, free: 56.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001026/0.6829, allocations: 133.1 kB / 0.5456 GB, free: 56.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001121/0.6831, allocations: 168 kB / 0.5458 GB, free: 56.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004301/0.6874, allocations: 1.45 MB / 0.5472 GB, free: 54.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001424/0.6875, allocations: 251 kB / 0.5474 GB, free: 54.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003146/0.6907, allocations: 0.7477 MB / 0.5482 GB, free: 53.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004252/0.6911, allocations: 340 kB / 0.5485 GB, free: 53.26 MB / 378.7 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.001759/0.6929, allocations: 1.58 MB / 0.55 GB, free: 51.67 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000331/0.6932, allocations: 244.8 kB / 0.5503 GB, free: 51.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001055/0.6943, allocations: 0.8327 MB / 0.5511 GB, free: 50.58 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.392e-05/0.6943, allocations: 15.05 kB / 0.5511 GB, free: 50.57 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.6943, allocations: 1.688 kB / 0.5511 GB, free: 50.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.478e-06/0.6944, allocations: 7.984 kB / 0.5511 GB, free: 50.56 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004662/0.699, allocations: 3.404 MB / 0.5544 GB, free: 47.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/0.6991, allocations: 0 / 0.5544 GB, free: 47.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002155/0.7012, allocations: 407.4 kB / 0.5548 GB, free: 46.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.306e-05/0.7013, allocations: 8 kB / 0.5548 GB, free: 46.71 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.85e-05/0.7014, allocations: 35.97 kB / 0.5549 GB, free: 46.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.594e-06/0.7014, allocations: 4 kB / 0.5549 GB, free: 46.68 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.7014, allocations: 7.938 kB / 0.5549 GB, free: 46.67 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0024/0.7038, allocations: 2.77 MB / 0.5576 GB, free: 43.87 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004806/0.7043, allocations: 309.5 kB / 0.5579 GB, free: 43.55 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002165/0.7045, allocations: 28.36 kB / 0.5579 GB, free: 43.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000821/0.7053, allocations: 49.62 kB / 0.5579 GB, free: 43.47 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.7054, allocations: 55.86 kB / 0.558 GB, free: 43.42 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.875e-05/0.7055, allocations: 33.55 kB / 0.558 GB, free: 43.39 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002117/0.7076, allocations: 1.841 MB / 0.5598 GB, free: 41.54 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7077, allocations: 0 / 0.5598 GB, free: 41.54 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003429/0.7111, allocations: 0.8275 MB / 0.5606 GB, free: 40.72 MB / 378.7 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.0003253/0.7114, allocations: 164.9 kB / 0.5608 GB, free: 40.55 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004828/0.7163, allocations: 3.574 MB / 0.5643 GB, free: 37 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.804e-06/0.7163, allocations: 320 / 0.5643 GB, free: 37 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007646/0.7171, allocations: 0.7181 MB / 0.565 GB, free: 36.29 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001954/0.719, allocations: 264 kB / 0.5652 GB, free: 36.04 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01002/0.7291, allocations: 8.825 MB / 0.5739 GB, free: 27.16 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001753/0.7309, allocations: 2.391 MB / 0.5762 GB, free: 24.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006465/0.7315, allocations: 235.4 kB / 0.5764 GB, free: 24.52 MB / 378.7 MB Notification: Performance of SimCode: time 5.91e-07/0.7315, allocations: 0 / 0.5764 GB, free: 24.52 MB / 378.7 MB Notification: Performance of Templates: time 0.05331/0.7848, allocations: 40.07 MB / 0.6155 GB, free: 488 kB / 394.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches