Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) 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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 222.9 MB / 240.9 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00109/0.00109, allocations: 103.8 kB / 291.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007902/0.0007902, allocations: 39.94 kB / 350 MB, free: 68 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.225/0.2258, allocations: 49.45 MB / 399.5 MB, free: 33.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.01899/0.2448, allocations: 28.95 MB / 428.4 MB, free: 4.301 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01011/0.255, allocations: 5.94 MB / 434.4 MB, free: 14.34 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00334/0.2584, allocations: 119.8 kB / 434.5 MB, free: 14.23 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002469/0.2609, allocations: 1.406 MB / 435.9 MB, free: 12.82 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001761/0.2627, allocations: 0.934 MB / 436.8 MB, free: 11.88 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005155/0.2632, allocations: 239.6 kB / 437.1 MB, free: 11.64 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002735/0.2659, allocations: 3.305 MB / 440.4 MB, free: 8.328 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001488/0.2674, allocations: 1.543 MB / 441.9 MB, free: 6.762 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006307/0.2681, allocations: 0.7314 MB / 442.6 MB, free: 6.027 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001275/0.2694, allocations: 1.3 MB / 443.9 MB, free: 4.723 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002023/0.2696, allocations: 116 kB / 444.1 MB, free: 4.609 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001035/0.2706, allocations: 0.6513 MB / 444.7 MB, free: 3.957 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000831/0.2715, allocations: 1.141 MB / 445.8 MB, free: 2.812 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009928/0.2725, allocations: 1.351 MB / 447.2 MB, free: 1.453 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003104/0.2756, allocations: 4.096 MB / 451.3 MB, free: 13.34 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.2756, allocations: 0 / 451.3 MB, free: 13.34 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.2756, allocations: 0 / 451.3 MB, free: 13.34 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.252e-05/0.2757, allocations: 0 / 451.3 MB, free: 13.34 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.003492/0.2792, allocations: 2.961 MB / 454.3 MB, free: 10.32 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.2792, allocations: 8.031 kB / 454.3 MB, free: 10.31 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006324/0.2855, allocations: 1.775 MB / 456 MB, free: 8.527 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0021/0.2876, allocations: 1.154 MB / 457.2 MB, free: 7.328 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.7e-05/0.2877, allocations: 151.8 kB / 457.3 MB, free: 7.18 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003289/0.2881, allocations: 207.8 kB / 457.5 MB, free: 6.977 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01687/0.305, allocations: 8.596 MB / 466.1 MB, free: 13.78 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.583e-05/0.3051, allocations: 43.64 kB / 466.2 MB, free: 13.73 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002497/0.3053, allocations: 103.9 kB / 466.3 MB, free: 13.63 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002752/0.3081, allocations: 1.675 MB / 468 MB, free: 11.96 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0238/0.3319, allocations: 7.171 MB / 475.1 MB, free: 4.777 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04886/0.3808, allocations: 30.17 MB / 0.4935 GB, free: 5.723 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02658/0.4074, allocations: 5.047 MB / 0.4984 GB, free: 0.5 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1898/0.5973, allocations: 1.243 MB / 0.4996 GB, free: 100.4 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005581/0.6029, allocations: 3.731 MB / 0.5032 GB, free: 98.23 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.05e-05/0.603, allocations: 48.73 kB / 0.5033 GB, free: 98.19 MB / 378.7 MB Notification: Performance of pre-optimization done (n=111): time 4.258e-06/0.603, allocations: 1.594 kB / 0.5033 GB, free: 98.19 MB / 378.7 MB Notification: Performance of matching and sorting (n=111): time 0.04228/0.6453, allocations: 9.252 MB / 0.5123 GB, free: 95.29 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.596e-05/0.6454, allocations: 202.3 kB / 0.5125 GB, free: 95.05 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003227/0.6486, allocations: 3.035 MB / 0.5155 GB, free: 92.01 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001321/0.6487, allocations: 41.7 kB / 0.5155 GB, free: 91.96 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009412/0.6497, allocations: 2.428 MB / 0.5179 GB, free: 89.55 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003643/0.6501, allocations: 0.4928 MB / 0.5184 GB, free: 89.06 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009856/0.651, allocations: 1.083 MB / 0.5194 GB, free: 87.97 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.9e-05/0.6511, allocations: 309.1 kB / 0.5197 GB, free: 87.66 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001722/0.6529, allocations: 1.599 MB / 0.5213 GB, free: 86.06 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003015/0.6559, allocations: 5.171 MB / 0.5263 GB, free: 79.13 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004976/0.6609, allocations: 7.322 MB / 0.5335 GB, free: 70.04 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.39e-05/0.6609, allocations: 36 kB / 0.5335 GB, free: 70 MB / 378.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.007344/0.6683, allocations: 6.455 MB / 0.5398 GB, free: 63.55 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.849e-05/0.6684, allocations: 60 kB / 0.5399 GB, free: 63.49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-05/0.6684, allocations: 128 kB / 0.54 GB, free: 63.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001053/0.6686, allocations: 164 kB / 0.5402 GB, free: 63.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003903/0.6725, allocations: 1.455 MB / 0.5416 GB, free: 61.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001105/0.6726, allocations: 251 kB / 0.5418 GB, free: 61.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002774/0.6754, allocations: 0.7423 MB / 0.5425 GB, free: 60.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002739/0.6757, allocations: 347.9 kB / 0.5429 GB, free: 60.41 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001557/0.6772, allocations: 1.574 MB / 0.5444 GB, free: 58.82 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003194/0.6776, allocations: 252.7 kB / 0.5447 GB, free: 58.57 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00109/0.6786, allocations: 0.8291 MB / 0.5455 GB, free: 57.73 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.111e-05/0.6787, allocations: 15.44 kB / 0.5455 GB, free: 57.72 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.205e-06/0.6787, allocations: 3.984 kB / 0.5455 GB, free: 57.72 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.6787, allocations: 11.98 kB / 0.5455 GB, free: 57.71 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004814/0.6835, allocations: 3.392 MB / 0.5488 GB, free: 54.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.194e-06/0.6836, allocations: 4 kB / 0.5488 GB, free: 54.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002043/0.6856, allocations: 408.4 kB / 0.5492 GB, free: 53.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.588e-06/0.6856, allocations: 4 kB / 0.5492 GB, free: 53.87 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.255e-05/0.6857, allocations: 43.97 kB / 0.5492 GB, free: 53.83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.104e-05/0.6857, allocations: 11.92 kB / 0.5493 GB, free: 53.82 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.6857, allocations: 0 / 0.5493 GB, free: 53.82 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02549/0.7112, allocations: 16.27 MB / 0.5651 GB, free: 37.38 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000366/0.7116, allocations: 305.6 kB / 0.5654 GB, free: 37.06 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002378/0.7119, allocations: 31.34 kB / 0.5655 GB, free: 37.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008229/0.7127, allocations: 44.58 kB / 0.5655 GB, free: 36.99 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001117/0.7128, allocations: 55.86 kB / 0.5656 GB, free: 36.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.862e-05/0.7129, allocations: 35.98 kB / 0.5656 GB, free: 36.9 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002077/0.715, allocations: 1.845 MB / 0.5674 GB, free: 35.05 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.715, allocations: 0 / 0.5674 GB, free: 35.05 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003857/0.7189, allocations: 1.07 MB / 0.5684 GB, free: 33.99 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 (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.0003707/0.7193, allocations: 177.4 kB / 0.5686 GB, free: 33.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004498/0.7238, allocations: 3.589 MB / 0.5721 GB, free: 30.25 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.89e-06/0.7238, allocations: 1.062 kB / 0.5721 GB, free: 30.25 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007068/0.7245, allocations: 0.718 MB / 0.5728 GB, free: 29.54 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001659/0.7262, allocations: 254.7 kB / 0.5731 GB, free: 29.29 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01051/0.7367, allocations: 9.154 MB / 0.582 GB, free: 20.1 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001783/0.7385, allocations: 2.43 MB / 0.5844 GB, free: 17.64 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.003695/0.7422, allocations: 1.684 MB / 0.586 GB, free: 15.95 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005656/0.7428, allocations: 203.4 kB / 0.5862 GB, free: 15.75 MB / 378.7 MB Notification: Performance of SimCode: time 7.72e-07/0.7428, allocations: 0 / 0.5862 GB, free: 15.75 MB / 378.7 MB Notification: Performance of Templates: time 0.04637/0.7892, allocations: 29.39 MB / 0.6149 GB, free: 2.496 MB / 394.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches