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.001401/0.001401, allocations: 175.7 kB / 17.4 MB, free: 4.418 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.42/1.42, allocations: 223.3 MB / 241.4 MB, free: 11.7 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.0008116/0.0008116, allocations: 105.6 kB / 292.6 MB, free: 10.77 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003301/0.0003301, allocations: 19.94 kB / 352.4 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2508/0.2511, allocations: 50.39 MB / 402.8 MB, free: 32.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1049/0.3561, allocations: 89.95 MB / 492.7 MB, free: 6.375 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002588/0.3564, allocations: 91.94 kB / 492.8 MB, free: 6.285 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.361/0.7175, allocations: 53.07 MB / 0.5331 GB, free: 81.4 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.637e-06/0.7175, allocations: 3.938 kB / 0.5331 GB, free: 81.4 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.346e-05/0.7176, allocations: 56 kB / 0.5331 GB, free: 81.34 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.005239/0.7228, allocations: 2.498 MB / 0.5356 GB, free: 78.78 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.7229, allocations: 8.031 kB / 0.5356 GB, free: 78.77 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0073/0.7302, allocations: 1.962 MB / 0.5375 GB, free: 76.8 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002548/0.7328, allocations: 1.431 MB / 0.5389 GB, free: 75.32 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001423/0.7329, allocations: 230.3 kB / 0.5391 GB, free: 75.1 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007755/0.7337, allocations: 308.2 kB / 0.5394 GB, free: 74.8 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01613/0.7498, allocations: 8.973 MB / 0.5482 GB, free: 64.88 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001331/0.75, allocations: 59.66 kB / 0.5482 GB, free: 64.82 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006116/0.7506, allocations: 155.9 kB / 0.5484 GB, free: 64.67 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001005/0.7516, allocations: 0.8085 MB / 0.5492 GB, free: 63.86 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01377/0.7654, allocations: 7.169 MB / 0.5562 GB, free: 56.68 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03052/0.796, allocations: 38.37 MB / 0.5936 GB, free: 17.03 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0177/0.8137, allocations: 5.351 MB / 0.5989 GB, free: 11.5 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0013/0.8151, allocations: 0.9553 MB / 0.5998 GB, free: 10.53 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004939/0.82, allocations: 3.68 MB / 0.6034 GB, free: 6.695 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.519e-05/0.8201, allocations: 47.02 kB / 0.6034 GB, free: 6.641 MB / 378.7 MB Notification: Performance of pre-optimization done (n=111): time 3.377e-06/0.8201, allocations: 0 / 0.6034 GB, free: 6.641 MB / 378.7 MB Notification: Performance of matching and sorting (n=111): time 0.03677/0.8569, allocations: 9.757 MB / 0.613 GB, free: 12.79 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000119/0.857, allocations: 199.9 kB / 0.6131 GB, free: 12.55 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005936/0.863, allocations: 3.023 MB / 0.6161 GB, free: 9.512 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000177/0.8632, allocations: 41.7 kB / 0.6161 GB, free: 9.465 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001908/0.8651, allocations: 2.422 MB / 0.6185 GB, free: 7.004 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006553/0.8658, allocations: 498 kB / 0.619 GB, free: 6.512 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000312/0.8661, allocations: 108 kB / 0.6191 GB, free: 6.406 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0004144/0.8665, allocations: 0.5333 MB / 0.6196 GB, free: 5.867 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002438/0.869, allocations: 1.498 MB / 0.6211 GB, free: 4.363 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00512/0.8741, allocations: 5.056 MB / 0.626 GB, free: 13.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007527/0.8816, allocations: 7.142 MB / 0.633 GB, free: 4.582 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.245e-05/0.8818, allocations: 36 kB / 0.633 GB, free: 4.547 MB / 410.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01035/0.8921, allocations: 6.222 MB / 0.6391 GB, free: 14.32 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.808e-05/0.8922, allocations: 64.03 kB / 0.6391 GB, free: 14.26 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001841/0.8924, allocations: 132 kB / 0.6393 GB, free: 14.13 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001775/0.8926, allocations: 168 kB / 0.6394 GB, free: 13.96 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004822/0.8974, allocations: 1.517 MB / 0.6409 GB, free: 12.45 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002149/0.8977, allocations: 247 kB / 0.6412 GB, free: 12.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003294/0.901, allocations: 0.7577 MB / 0.6419 GB, free: 11.44 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004883/0.9015, allocations: 340 kB / 0.6422 GB, free: 11.11 MB / 426.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.002273/0.9037, allocations: 1.579 MB / 0.6438 GB, free: 9.512 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004264/0.9042, allocations: 248.7 kB / 0.644 GB, free: 9.266 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001226/0.9054, allocations: 0.7549 MB / 0.6447 GB, free: 8.504 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.225e-05/0.9055, allocations: 16 kB / 0.6447 GB, free: 8.488 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.9055, allocations: 0 / 0.6447 GB, free: 8.488 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.883e-05/0.9055, allocations: 7.984 kB / 0.6448 GB, free: 8.48 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005624/0.9111, allocations: 3.231 MB / 0.6479 GB, free: 5.188 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.9111, allocations: 0 / 0.6479 GB, free: 5.188 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002444/0.9136, allocations: 471.4 kB / 0.6484 GB, free: 4.727 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.177e-05/0.9136, allocations: 4 kB / 0.6484 GB, free: 4.723 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.047e-05/0.9137, allocations: 39.97 kB / 0.6484 GB, free: 4.684 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.232e-06/0.9137, allocations: 8 kB / 0.6484 GB, free: 4.676 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.761e-06/0.9137, allocations: 7.938 kB / 0.6484 GB, free: 4.668 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00289/0.9166, allocations: 2.546 MB / 0.6509 GB, free: 2.094 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005289/0.9172, allocations: 321.5 kB / 0.6512 GB, free: 1.758 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003054/0.9175, allocations: 27.98 kB / 0.6512 GB, free: 1.73 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009254/0.9184, allocations: 55.92 kB / 0.6513 GB, free: 1.676 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001312/0.9186, allocations: 59.84 kB / 0.6513 GB, free: 1.617 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.798e-05/0.9187, allocations: 35.98 kB / 0.6514 GB, free: 1.582 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002702/0.9214, allocations: 1.829 MB / 0.6532 GB, free: 15.75 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.9214, allocations: 0 / 0.6532 GB, free: 15.75 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003602/0.925, allocations: 0.8416 MB / 0.654 GB, free: 14.91 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 () * 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.0003677/0.9254, allocations: 183.6 kB / 0.6542 GB, free: 14.72 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004949/0.9303, allocations: 3.406 MB / 0.6575 GB, free: 11.34 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.9303, allocations: 0 / 0.6575 GB, free: 11.34 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008094/0.9311, allocations: 0.6297 MB / 0.6581 GB, free: 10.71 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00195/0.9331, allocations: 254.6 kB / 0.6583 GB, free: 10.47 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01387/0.947, allocations: 8.504 MB / 0.6667 GB, free: 1.914 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1673/1.114, allocations: 2.384 MB / 0.669 GB, free: 130.6 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.004433/1.119, allocations: 1.648 MB / 0.6706 GB, free: 130.6 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004758/1.119, allocations: 184.2 kB / 0.6708 GB, free: 130.5 MB / 442.7 MB Notification: Performance of SimCode: time 6.61e-07/1.119, allocations: 0.5938 kB / 0.6708 GB, free: 130.5 MB / 442.7 MB Notification: Performance of Templates: time 0.03625/1.156, allocations: 20.46 MB / 0.6907 GB, free: 129.8 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/jenkins1/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