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.001225/0.001225, allocations: 180.5 kB / 16.38 MB, free: 5.762 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.33/1.33, allocations: 223.2 MB / 240.3 MB, free: 10.14 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.0009606/0.0009605, allocations: 97.78 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002429/0.0002429, allocations: 11.94 kB / 351.1 MB, free: 15.1 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2422/0.2424, allocations: 50.41 MB / 401.5 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1147/0.3572, allocations: 89.85 MB / 491.4 MB, free: 6.574 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000272/0.3576, allocations: 99.62 kB / 491.4 MB, free: 6.48 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3861/0.7436, allocations: 53.49 MB / 0.5322 GB, free: 81.3 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.7437, allocations: 0 / 0.5322 GB, free: 81.3 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.069e-05/0.7438, allocations: 59.94 kB / 0.5322 GB, free: 81.24 MB / 378.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.003576/0.7473, allocations: 2.54 MB / 0.5347 GB, free: 78.63 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.7474, allocations: 8.031 kB / 0.5347 GB, free: 78.62 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007186/0.7546, allocations: 1.958 MB / 0.5366 GB, free: 76.66 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004284/0.7589, allocations: 1.419 MB / 0.538 GB, free: 75.2 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002197/0.7591, allocations: 230 kB / 0.5382 GB, free: 74.97 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001139/0.7603, allocations: 307.8 kB / 0.5385 GB, free: 74.67 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02099/0.7813, allocations: 9.016 MB / 0.5473 GB, free: 64.71 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002716/0.7816, allocations: 59.45 kB / 0.5474 GB, free: 64.65 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00133/0.783, allocations: 155.9 kB / 0.5475 GB, free: 64.5 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001365/0.7844, allocations: 0.8047 MB / 0.5483 GB, free: 63.69 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01742/0.8018, allocations: 7.243 MB / 0.5554 GB, free: 56.43 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0375/0.8394, allocations: 38.4 MB / 0.5929 GB, free: 16.76 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02083/0.8602, allocations: 5.359 MB / 0.5981 GB, free: 11.22 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00505/0.8653, allocations: 3.708 MB / 0.6017 GB, free: 7.363 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.585e-05/0.8654, allocations: 46.92 kB / 0.6018 GB, free: 7.309 MB / 378.7 MB Notification: Performance of pre-optimization done (n=111): time 3.988e-06/0.8654, allocations: 3.984 kB / 0.6018 GB, free: 7.305 MB / 378.7 MB Notification: Performance of matching and sorting (n=111): time 0.04019/0.9056, allocations: 10.01 MB / 0.6116 GB, free: 13.15 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.852e-05/0.9057, allocations: 195.9 kB / 0.6117 GB, free: 12.92 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004422/0.9102, allocations: 2.717 MB / 0.6144 GB, free: 10.19 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001672/0.9103, allocations: 45.64 kB / 0.6144 GB, free: 10.14 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001932/0.9123, allocations: 2.422 MB / 0.6168 GB, free: 7.676 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006521/0.9129, allocations: 0.4902 MB / 0.6173 GB, free: 7.18 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000211/0.9132, allocations: 108 kB / 0.6174 GB, free: 7.074 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003734/0.9135, allocations: 0.5294 MB / 0.6179 GB, free: 6.539 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002284/0.9158, allocations: 1.498 MB / 0.6194 GB, free: 5.035 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004605/0.9204, allocations: 5.04 MB / 0.6243 GB, free: 14.19 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003853/0.9243, allocations: 2.711 MB / 0.6269 GB, free: 11.48 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.143e-05/0.9244, allocations: 39.95 kB / 0.627 GB, free: 11.44 MB / 410.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01042/0.9348, allocations: 6.223 MB / 0.6331 GB, free: 5.215 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.71e-05/0.9349, allocations: 62.19 kB / 0.6331 GB, free: 5.156 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001234/0.9351, allocations: 124 kB / 0.6332 GB, free: 5.035 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001557/0.9352, allocations: 184 kB / 0.6334 GB, free: 4.855 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004832/0.9401, allocations: 1.521 MB / 0.6349 GB, free: 3.332 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001766/0.9403, allocations: 251 kB / 0.6351 GB, free: 3.086 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003234/0.9435, allocations: 0.758 MB / 0.6359 GB, free: 2.32 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004235/0.9439, allocations: 348.3 kB / 0.6362 GB, free: 1.98 MB / 410.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.002215/0.9462, allocations: 1.571 MB / 0.6377 GB, free: 408 kB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004233/0.9466, allocations: 252.8 kB / 0.638 GB, free: 152 kB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001224/0.9478, allocations: 0.7471 MB / 0.6387 GB, free: 15.39 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-05/0.9479, allocations: 19.94 kB / 0.6387 GB, free: 15.38 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.025e-05/0.9479, allocations: 4 kB / 0.6387 GB, free: 15.37 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.9479, allocations: 3.984 kB / 0.6387 GB, free: 15.37 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005721/0.9536, allocations: 3.231 MB / 0.6419 GB, free: 12.07 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.356e-06/0.9537, allocations: 4 kB / 0.6419 GB, free: 12.07 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002484/0.9562, allocations: 475.4 kB / 0.6424 GB, free: 11.61 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.041e-05/0.9562, allocations: 7.984 kB / 0.6424 GB, free: 11.6 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.813e-05/0.9563, allocations: 35.97 kB / 0.6424 GB, free: 11.56 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.981e-06/0.9563, allocations: 4 kB / 0.6424 GB, free: 11.56 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.9563, allocations: 4 kB / 0.6424 GB, free: 11.55 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002924/0.9592, allocations: 2.662 MB / 0.645 GB, free: 8.824 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006387/0.9599, allocations: 305.6 kB / 0.6453 GB, free: 8.504 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002262/0.9601, allocations: 27.98 kB / 0.6453 GB, free: 8.477 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008637/0.961, allocations: 55.94 kB / 0.6454 GB, free: 8.422 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.9611, allocations: 55.91 kB / 0.6454 GB, free: 8.367 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.08e-05/0.9612, allocations: 43.95 kB / 0.6455 GB, free: 8.324 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002574/0.9638, allocations: 1.833 MB / 0.6473 GB, free: 6.488 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.9638, allocations: 0 / 0.6473 GB, free: 6.488 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00395/0.9677, allocations: 0.8415 MB / 0.6481 GB, free: 5.645 MB / 426.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.0003831/0.9681, allocations: 173.1 kB / 0.6482 GB, free: 5.465 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004917/0.9731, allocations: 3.409 MB / 0.6516 GB, free: 2.086 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.9731, allocations: 1.625 kB / 0.6516 GB, free: 2.086 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008027/0.9739, allocations: 0.6329 MB / 0.6522 GB, free: 1.453 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001033/0.9749, allocations: 240.7 kB / 0.6524 GB, free: 1.219 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01205/0.987, allocations: 8.469 MB / 0.6607 GB, free: 8.699 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002488/0.9895, allocations: 2.445 MB / 0.6631 GB, free: 6.23 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004239/0.9938, allocations: 1.641 MB / 0.6647 GB, free: 4.582 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005212/0.9943, allocations: 191.3 kB / 0.6649 GB, free: 4.395 MB / 442.7 MB Notification: Performance of SimCode: time 8.52e-07/0.9943, allocations: 0 / 0.6649 GB, free: 4.395 MB / 442.7 MB Notification: Performance of Templates: time 0.2179/1.212, allocations: 20.43 MB / 0.6848 GB, free: 128.4 MB / 442.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/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