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/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_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/Complex trunk/package.mo): time 0.00189/0.00189, allocations: 196.1 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 225.4 MB / 240.1 MB, free: 15.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009111/0.0009115, allocations: 86.39 kB / 292.1 MB, free: 5.922 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.352e-05/3.371e-05, allocations: 4 kB / 350.6 MB, free: 2.523 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1186, allocations: 51.48 MB / 402 MB, free: 14.99 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3885/0.5072, allocations: 90.6 MB / 492.6 MB, free: 15.03 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000253/0.5075, allocations: 87.14 kB / 492.7 MB, free: 14.98 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1505/0.658, allocations: 53.57 MB / 0.5335 GB, free: 10.66 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.116e-06/0.6581, allocations: 0 / 0.5335 GB, free: 10.66 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001657/0.6583, allocations: 52 kB / 0.5335 GB, free: 10.61 MB / 410.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.008824/0.6671, allocations: 2.462 MB / 0.5359 GB, free: 8.09 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.076e-05/0.6672, allocations: 8.031 kB / 0.5359 GB, free: 8.082 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01038/0.6776, allocations: 1.958 MB / 0.5379 GB, free: 6.117 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005503/0.6831, allocations: 1.416 MB / 0.5392 GB, free: 4.656 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003522/0.6835, allocations: 233.6 kB / 0.5395 GB, free: 4.43 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001634/0.6852, allocations: 303.8 kB / 0.5398 GB, free: 4.133 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02378/0.709, allocations: 8.957 MB / 0.5485 GB, free: 10.23 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002526/0.7093, allocations: 59.47 kB / 0.5486 GB, free: 10.17 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001535/0.7108, allocations: 151.9 kB / 0.5487 GB, free: 10.02 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001674/0.7125, allocations: 0.8124 MB / 0.5495 GB, free: 9.203 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0194/0.732, allocations: 7.143 MB / 0.5565 GB, free: 2.055 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3371/1.069, allocations: 38.39 MB / 0.594 GB, free: 56.19 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02055/1.09, allocations: 5.353 MB / 0.5992 GB, free: 55.46 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001434/1.091, allocations: 0.9243 MB / 0.6001 GB, free: 55.4 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006391/1.098, allocations: 3.707 MB / 0.6037 GB, free: 53.61 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.533e-05/1.098, allocations: 50.09 kB / 0.6038 GB, free: 53.57 MB / 442.7 MB Notification: Performance of pre-optimization done (n=111): time 5.64e-06/1.098, allocations: 2.766 kB / 0.6038 GB, free: 53.57 MB / 442.7 MB Notification: Performance of matching and sorting (n=111): time 0.03981/1.137, allocations: 8.204 MB / 0.6118 GB, free: 53.38 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.673e-05/1.138, allocations: 193.5 kB / 0.612 GB, free: 53.16 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006863/1.144, allocations: 2.683 MB / 0.6146 GB, free: 52.85 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002099/1.145, allocations: 39.61 kB / 0.6146 GB, free: 52.82 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002115/1.147, allocations: 2.429 MB / 0.617 GB, free: 51.51 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008748/1.148, allocations: 0.492 MB / 0.6175 GB, free: 51.25 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006371/1.148, allocations: 111.7 kB / 0.6176 GB, free: 51.25 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006727/1.149, allocations: 0.5312 MB / 0.6181 GB, free: 50.94 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003092/1.152, allocations: 1.457 MB / 0.6195 GB, free: 50.92 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00486/1.157, allocations: 5.004 MB / 0.6244 GB, free: 46.29 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005082/1.162, allocations: 2.716 MB / 0.6271 GB, free: 46.16 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002674/1.162, allocations: 37.62 kB / 0.6271 GB, free: 46.16 MB / 442.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.0144/1.177, allocations: 6.146 MB / 0.6331 GB, free: 45.45 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002485/1.177, allocations: 63.86 kB / 0.6332 GB, free: 45.45 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004017/1.178, allocations: 134.3 kB / 0.6333 GB, free: 45.45 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004362/1.178, allocations: 185 kB / 0.6335 GB, free: 45.45 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006561/1.185, allocations: 1.518 MB / 0.6349 GB, free: 45.33 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004095/1.185, allocations: 244.3 kB / 0.6352 GB, free: 45.28 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005432/1.19, allocations: 0.7634 MB / 0.6359 GB, free: 44.88 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001085/1.192, allocations: 342.8 kB / 0.6363 GB, free: 44.88 MB / 442.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 () * 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.001663/1.193, allocations: 0.5259 MB / 0.6368 GB, free: 44.57 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007366/1.194, allocations: 248.5 kB / 0.637 GB, free: 44.44 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001943/1.196, allocations: 0.7507 MB / 0.6377 GB, free: 44.36 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.172e-05/1.196, allocations: 15.5 kB / 0.6377 GB, free: 44.36 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.62e-05/1.196, allocations: 3.375 kB / 0.6378 GB, free: 44.36 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.922e-05/1.196, allocations: 7.719 kB / 0.6378 GB, free: 44.36 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01007/1.206, allocations: 3.223 MB / 0.6409 GB, free: 43.97 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.745e-05/1.206, allocations: 3.594 kB / 0.6409 GB, free: 43.97 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002694/1.209, allocations: 474.6 kB / 0.6414 GB, free: 43.96 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.138e-05/1.209, allocations: 3.844 kB / 0.6414 GB, free: 43.96 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001692/1.209, allocations: 34.47 kB / 0.6414 GB, free: 43.96 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.095e-05/1.209, allocations: 9.234 kB / 0.6414 GB, free: 43.96 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.187e-06/1.209, allocations: 8.125 kB / 0.6414 GB, free: 43.95 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003351/1.213, allocations: 2.641 MB / 0.644 GB, free: 43.12 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008231/1.213, allocations: 305.8 kB / 0.6443 GB, free: 42.88 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006195/1.214, allocations: 41.97 kB / 0.6443 GB, free: 42.88 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001286/1.215, allocations: 49.97 kB / 0.6444 GB, free: 42.88 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000137/1.215, allocations: 52.7 kB / 0.6444 GB, free: 42.88 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.442e-05/1.216, allocations: 34.97 kB / 0.6445 GB, free: 42.88 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003166/1.219, allocations: 1.804 MB / 0.6462 GB, free: 42.71 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.71e-07/1.219, allocations: 0 / 0.6462 GB, free: 42.71 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004986/1.224, allocations: 0.8405 MB / 0.647 GB, free: 42.61 MB / 442.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 () * 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.000431/1.224, allocations: 181.6 kB / 0.6472 GB, free: 42.5 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005353/1.23, allocations: 3.364 MB / 0.6505 GB, free: 42.12 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/1.23, allocations: 4.062 kB / 0.6505 GB, free: 42.11 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007327/1.23, allocations: 0.6161 MB / 0.6511 GB, free: 42.09 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00152/1.232, allocations: 234.1 kB / 0.6513 GB, free: 42.08 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01158/1.243, allocations: 6.239 MB / 0.6574 GB, free: 40.07 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002945/1.246, allocations: 2.451 MB / 0.6598 GB, free: 39.32 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004252/1.251, allocations: 1.643 MB / 0.6614 GB, free: 39.19 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006774/1.251, allocations: 188.8 kB / 0.6616 GB, free: 39.18 MB / 442.7 MB Notification: Performance of SimCode: time 6.32e-07/1.251, allocations: 0 / 0.6616 GB, free: 39.18 MB / 442.7 MB Notification: Performance of Templates: time 0.03863/1.29, allocations: 20.45 MB / 0.6816 GB, free: 29.37 MB / 442.7 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches