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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001026/0.001026, allocations: 187 kB / 17.92 MB, free: 3.852 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.207/1.207, allocations: 205.1 MB / 223.7 MB, free: 8.48 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008699/0.0008698, allocations: 97.81 kB / 271.2 MB, free: 8.441 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000773/0.0007731, allocations: 43.94 kB / 327.2 MB, free: 332 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1923/0.1931, allocations: 46.61 MB / 373.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.01798/0.2111, allocations: 28.95 MB / 402.8 MB, free: 20.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0097/0.2209, allocations: 5.973 MB / 408.7 MB, free: 14.49 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00396/0.2249, allocations: 115.8 kB / 408.9 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002183/0.2271, allocations: 1.402 MB / 410.3 MB, free: 12.97 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001829/0.229, allocations: 0.9301 MB / 411.2 MB, free: 12.04 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005504/0.2295, allocations: 243.6 kB / 411.4 MB, free: 11.8 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002458/0.232, allocations: 3.315 MB / 414.7 MB, free: 8.473 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00143/0.2335, allocations: 1.532 MB / 416.3 MB, free: 6.926 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007957/0.2343, allocations: 0.7353 MB / 417 MB, free: 6.188 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001339/0.2356, allocations: 1.3 MB / 418.3 MB, free: 4.883 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003273/0.236, allocations: 116 kB / 418.4 MB, free: 4.77 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009952/0.237, allocations: 0.6396 MB / 419.1 MB, free: 4.129 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000649/0.2376, allocations: 1.149 MB / 420.2 MB, free: 2.977 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007249/0.2384, allocations: 1.347 MB / 421.6 MB, free: 1.621 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00279/0.2412, allocations: 4.084 MB / 425.6 MB, free: 13.52 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.2412, allocations: 3.938 kB / 425.6 MB, free: 13.52 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2412, allocations: 0 / 425.6 MB, free: 13.52 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.739e-05/0.2412, allocations: 0 / 425.6 MB, free: 13.52 MB / 314.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.003461/0.2447, allocations: 2.953 MB / 428.6 MB, free: 10.5 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.2448, allocations: 8.031 kB / 428.6 MB, free: 10.5 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00591/0.2507, allocations: 1.775 MB / 430.4 MB, free: 8.715 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001974/0.2527, allocations: 1.166 MB / 431.5 MB, free: 7.504 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.292e-05/0.2528, allocations: 155.8 kB / 431.7 MB, free: 7.352 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000296/0.2531, allocations: 203.8 kB / 431.9 MB, free: 7.152 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01476/0.2678, allocations: 8.596 MB / 440.5 MB, free: 13.95 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.924e-05/0.2679, allocations: 39.66 kB / 440.5 MB, free: 13.91 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002295/0.2682, allocations: 103.9 kB / 440.6 MB, free: 13.81 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002451/0.2706, allocations: 1.663 MB / 442.3 MB, free: 12.14 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01503/0.2857, allocations: 7.177 MB / 449.5 MB, free: 4.965 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02959/0.3153, allocations: 30.2 MB / 479.7 MB, free: 5.879 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02055/0.3359, allocations: 5.042 MB / 484.7 MB, free: 0.6602 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001726/0.3376, allocations: 1.236 MB / 486 MB, free: 15.4 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005669/0.3433, allocations: 3.75 MB / 489.7 MB, free: 11.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.017e-05/0.3434, allocations: 42.83 kB / 489.7 MB, free: 11.45 MB / 378.7 MB Notification: Performance of pre-optimization done (n=111): time 3.016e-06/0.3434, allocations: 0 / 489.7 MB, free: 11.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=111): time 0.04356/0.3869, allocations: 9.263 MB / 499 MB, free: 2.098 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.903e-05/0.3871, allocations: 195.8 kB / 499.2 MB, free: 1.863 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003475/0.3906, allocations: 3.035 MB / 0.4905 GB, free: 14.81 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001189/0.3907, allocations: 41.64 kB / 0.4905 GB, free: 14.76 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00128/0.392, allocations: 2.422 MB / 0.4929 GB, free: 12.3 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003929/0.3924, allocations: 0.4979 MB / 0.4934 GB, free: 11.8 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001071/0.3935, allocations: 1.083 MB / 0.4944 GB, free: 10.7 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.755e-05/0.3936, allocations: 309.1 kB / 0.4947 GB, free: 10.4 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001856/0.3954, allocations: 1.603 MB / 0.4963 GB, free: 8.789 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003872/0.3993, allocations: 5.169 MB / 0.5013 GB, free: 1.816 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1568/0.5561, allocations: 7.316 MB / 0.5085 GB, free: 116.8 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.733e-05/0.5562, allocations: 36.83 kB / 0.5085 GB, free: 116.8 MB / 394.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.008479/0.5647, allocations: 6.44 MB / 0.5148 GB, free: 114.5 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.58e-05/0.5648, allocations: 58.78 kB / 0.5148 GB, free: 114.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001173/0.5649, allocations: 131.1 kB / 0.515 GB, free: 114.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001202/0.565, allocations: 169.6 kB / 0.5151 GB, free: 114.5 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003781/0.5688, allocations: 1.458 MB / 0.5166 GB, free: 114.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001122/0.5689, allocations: 257.5 kB / 0.5168 GB, free: 114.3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002621/0.5716, allocations: 0.7391 MB / 0.5175 GB, free: 114 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00027/0.5718, allocations: 345.5 kB / 0.5179 GB, free: 114 MB / 394.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.001432/0.5733, allocations: 1.574 MB / 0.5194 GB, free: 113.2 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002921/0.5736, allocations: 253.6 kB / 0.5196 GB, free: 113.1 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009965/0.5746, allocations: 0.8254 MB / 0.5204 GB, free: 112.8 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.795e-05/0.5746, allocations: 13.22 kB / 0.5205 GB, free: 112.8 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.5746, allocations: 3.969 kB / 0.5205 GB, free: 112.8 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.897e-06/0.5746, allocations: 4.828 kB / 0.5205 GB, free: 112.8 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004326/0.579, allocations: 3.395 MB / 0.5238 GB, free: 110.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.912e-06/0.579, allocations: 3.062 kB / 0.5238 GB, free: 110.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001972/0.581, allocations: 409.3 kB / 0.5242 GB, free: 110.3 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.514e-06/0.581, allocations: 7.938 kB / 0.5242 GB, free: 110.3 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.398e-05/0.5811, allocations: 37.97 kB / 0.5242 GB, free: 110.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.04e-06/0.5811, allocations: 5.094 kB / 0.5242 GB, free: 110.3 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.5811, allocations: 4 kB / 0.5242 GB, free: 110.3 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02295/0.604, allocations: 16.27 MB / 0.5401 GB, free: 94.09 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002926/0.6044, allocations: 297.7 kB / 0.5404 GB, free: 93.78 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002155/0.6046, allocations: 31.98 kB / 0.5404 GB, free: 93.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007628/0.6054, allocations: 35.95 kB / 0.5405 GB, free: 93.71 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00011/0.6055, allocations: 63.8 kB / 0.5405 GB, free: 93.65 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.25e-05/0.6056, allocations: 35.64 kB / 0.5406 GB, free: 93.62 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001767/0.6073, allocations: 1.841 MB / 0.5424 GB, free: 91.77 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6073, allocations: 8.656 kB / 0.5424 GB, free: 91.77 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00335/0.6107, allocations: 1.072 MB / 0.5434 GB, free: 90.7 MB / 394.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.0002759/0.611, allocations: 171.1 kB / 0.5436 GB, free: 90.53 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003807/0.6148, allocations: 3.596 MB / 0.5471 GB, free: 86.96 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.6148, allocations: 0 / 0.5471 GB, free: 86.96 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006127/0.6154, allocations: 0.7174 MB / 0.5478 GB, free: 86.25 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001326/0.6168, allocations: 256.5 kB / 0.548 GB, free: 86 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009219/0.626, allocations: 9.149 MB / 0.557 GB, free: 76.82 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001974/0.628, allocations: 2.424 MB / 0.5593 GB, free: 74.37 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.003475/0.6315, allocations: 1.688 MB / 0.561 GB, free: 72.67 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005869/0.6321, allocations: 215.3 kB / 0.5612 GB, free: 72.46 MB / 394.7 MB Notification: Performance of SimCode: time 4.51e-07/0.6321, allocations: 0 / 0.5612 GB, free: 72.46 MB / 394.7 MB Notification: Performance of Templates: time 0.03614/0.6682, allocations: 29.38 MB / 0.5899 GB, free: 43.14 MB / 394.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches