Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001116/0.001115, allocations: 114.8 kB / 18.42 MB, free: 4.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001116/0.001116, allocations: 212.5 kB / 19.37 MB, free: 3.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.398/1.398, allocations: 227.4 MB / 247.5 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001139/0.001139, allocations: 59.19 kB / 308.4 MB, free: 15.92 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1073, allocations: 50.53 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.009236/0.1166, allocations: 7.935 MB / 366.8 MB, free: 5.391 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004917/0.1215, allocations: 2.567 MB / 369.4 MB, free: 2.816 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007268/0.1223, allocations: 39.88 kB / 369.5 MB, free: 2.777 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002651/0.1249, allocations: 1.44 MB / 370.9 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002095/0.1271, allocations: 0.9801 MB / 371.9 MB, free: 356 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006507/0.1277, allocations: 271.4 kB / 372.1 MB, free: 84 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2139/0.3416, allocations: 2.142 MB / 374.3 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003421/0.3451, allocations: 1.551 MB / 375.8 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002298/0.3474, allocations: 0.8296 MB / 376.7 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002724/0.3502, allocations: 1.183 MB / 377.8 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006411/0.3509, allocations: 164.3 kB / 378 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001869/0.3527, allocations: 0.6645 MB / 378.7 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001421/0.3542, allocations: 1.146 MB / 379.8 MB, free: 9.508 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001769/0.3559, allocations: 1.36 MB / 381.2 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006037/0.362, allocations: 4.269 MB / 385.4 MB, free: 7.449 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.044e-06/0.362, allocations: 0 / 385.4 MB, free: 7.449 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.457e-06/0.362, allocations: 1.062 kB / 385.4 MB, free: 7.449 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001168/0.3622, allocations: 0 / 385.4 MB, free: 7.449 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.006849/0.369, allocations: 2.931 MB / 388.4 MB, free: 5.699 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.3691, allocations: 9.219 kB / 388.4 MB, free: 5.699 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00736/0.3764, allocations: 1.778 MB / 390.2 MB, free: 4.992 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004561/0.381, allocations: 1.16 MB / 391.3 MB, free: 4.281 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000328/0.3814, allocations: 148.8 kB / 391.5 MB, free: 4.242 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001491/0.3829, allocations: 213.8 kB / 391.7 MB, free: 4.191 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02239/0.4053, allocations: 8.608 MB / 400.3 MB, free: 14.9 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001152/0.4055, allocations: 46.28 kB / 400.3 MB, free: 14.87 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003306/0.4058, allocations: 98.86 kB / 400.4 MB, free: 14.8 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003022/0.4089, allocations: 1.666 MB / 402.1 MB, free: 13.16 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01881/0.4277, allocations: 7.187 MB / 409.3 MB, free: 6.043 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04093/0.4687, allocations: 30.08 MB / 439.4 MB, free: 7.219 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0224/0.4911, allocations: 5.061 MB / 444.4 MB, free: 1.984 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002013/0.4932, allocations: 1.247 MB / 445.7 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006774/0.5, allocations: 3.828 MB / 449.5 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.867e-05/0.5001, allocations: 54.75 kB / 449.6 MB, free: 12.68 MB / 366.1 MB Notification: Performance of pre-optimization done (n=111): time 3.757e-06/0.5001, allocations: 0 / 449.6 MB, free: 12.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=111): time 0.04467/0.5447, allocations: 9.278 MB / 458.8 MB, free: 3.32 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001147/0.5449, allocations: 191.9 kB / 459 MB, free: 3.09 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005472/0.5504, allocations: 3.035 MB / 462.1 MB, free: 36 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002601/0.5507, allocations: 42.12 kB / 462.1 MB, free: 15.99 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001835/0.5525, allocations: 2.42 MB / 464.5 MB, free: 13.57 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006944/0.5532, allocations: 0.4948 MB / 465 MB, free: 13.09 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00161/0.5548, allocations: 1.081 MB / 466.1 MB, free: 12 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.555, allocations: 305.1 kB / 466.4 MB, free: 11.7 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002695/0.5577, allocations: 1.611 MB / 468 MB, free: 10.08 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005891/0.5636, allocations: 5.175 MB / 473.2 MB, free: 3.109 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009319/0.573, allocations: 7.34 MB / 480.5 MB, free: 9.996 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001039/0.5731, allocations: 36 kB / 480.5 MB, free: 9.961 MB / 398.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01171/0.5848, allocations: 6.442 MB / 487 MB, free: 3.52 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.975e-05/0.585, allocations: 64.25 kB / 487.1 MB, free: 3.457 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001312/0.5851, allocations: 128 kB / 487.2 MB, free: 3.332 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001688/0.5853, allocations: 164 kB / 487.3 MB, free: 3.172 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004688/0.59, allocations: 1.458 MB / 488.8 MB, free: 1.711 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002123/0.5902, allocations: 252 kB / 489 MB, free: 1.465 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00447/0.5947, allocations: 0.746 MB / 489.8 MB, free: 0.7109 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005307/0.5952, allocations: 347.3 kB / 490.1 MB, free: 384 kB / 398.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.002897/0.5981, allocations: 1.58 MB / 491.7 MB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005194/0.5987, allocations: 248.7 kB / 491.9 MB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005354/0.5992, allocations: 319.2 kB / 492.3 MB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.28e-05/0.5992, allocations: 15.94 kB / 492.3 MB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.1e-05/0.5993, allocations: 0 / 492.3 MB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.384e-05/0.5993, allocations: 11.92 kB / 492.3 MB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006288/0.6056, allocations: 3.39 MB / 495.7 MB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.268e-06/0.6056, allocations: 0 / 495.7 MB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002308/0.6079, allocations: 419.4 kB / 496.1 MB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.727e-05/0.608, allocations: 7.938 kB / 496.1 MB, free: 10.35 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001165/0.6081, allocations: 37.92 kB / 496.1 MB, free: 10.31 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.929e-06/0.6081, allocations: 4 kB / 496.1 MB, free: 10.31 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.6081, allocations: 4 kB / 496.1 MB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003312/0.6114, allocations: 2.785 MB / 498.9 MB, free: 7.5 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007328/0.6122, allocations: 305.5 kB / 499.2 MB, free: 7.18 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002705/0.6125, allocations: 35.92 kB / 499.3 MB, free: 7.145 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008964/0.6134, allocations: 46.53 kB / 499.3 MB, free: 7.102 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001261/0.6135, allocations: 51.92 kB / 499.4 MB, free: 7.051 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.08e-05/0.6136, allocations: 35.98 kB / 499.4 MB, free: 7.016 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003249/0.6169, allocations: 1.836 MB / 0.4895 GB, free: 5.176 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6169, allocations: 3.938 kB / 0.4895 GB, free: 5.172 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.004777/0.6217, allocations: 0.8143 MB / 0.4903 GB, free: 4.355 MB / 414.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.0004534/0.6221, allocations: 166.4 kB / 0.4904 GB, free: 4.184 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006342/0.6285, allocations: 3.617 MB / 0.494 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.265e-06/0.6285, allocations: 1 kB / 0.494 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001173/0.6297, allocations: 0.7265 MB / 0.4947 GB, free: 15.87 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001939/0.6317, allocations: 267.9 kB / 0.4949 GB, free: 15.62 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0124/0.6441, allocations: 7.064 MB / 0.5018 GB, free: 8.516 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002613/0.6467, allocations: 2.387 MB / 0.5042 GB, free: 6.102 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003781/0.6505, allocations: 1.637 MB / 0.5058 GB, free: 4.457 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004613/0.651, allocations: 187.4 kB / 0.5059 GB, free: 4.277 MB / 430.1 MB Notification: Performance of SimCode: time 1.022e-06/0.651, allocations: 0 / 0.5059 GB, free: 4.277 MB / 430.1 MB Notification: Performance of Templates: time 0.04091/0.6919, allocations: 16.94 MB / 0.5225 GB, free: 3.535 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches