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.001866/0.001866, allocations: 207.3 kB / 17.99 MB, free: 3.773 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.296/1.296, allocations: 226.7 MB / 245.5 MB, free: 6.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00102/0.00102, allocations: 101.4 kB / 296.7 MB, free: 6.469 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009187/0.0009188, allocations: 51.92 kB / 356.6 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1907/0.1917, allocations: 50.45 MB / 407.1 MB, free: 27.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.0206/0.2123, allocations: 28.97 MB / 436 MB, free: 14.74 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01105/0.2234, allocations: 6.007 MB / 442 MB, free: 8.715 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003865/0.2273, allocations: 111.8 kB / 442.1 MB, free: 8.605 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002645/0.23, allocations: 1.414 MB / 443.6 MB, free: 7.188 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001941/0.2319, allocations: 0.9379 MB / 444.5 MB, free: 6.246 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005939/0.2325, allocations: 243.6 kB / 444.7 MB, free: 6.008 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0031/0.2357, allocations: 3.312 MB / 448 MB, free: 2.688 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001593/0.2373, allocations: 1.532 MB / 449.6 MB, free: 1.133 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007452/0.238, allocations: 0.7353 MB / 450.3 MB, free: 404 kB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001308/0.2393, allocations: 1.288 MB / 451.6 MB, free: 15.1 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002189/0.2396, allocations: 116 kB / 451.7 MB, free: 14.99 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001106/0.2407, allocations: 0.659 MB / 452.4 MB, free: 14.33 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008262/0.2415, allocations: 1.137 MB / 453.5 MB, free: 13.19 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001004/0.2425, allocations: 1.351 MB / 454.9 MB, free: 11.82 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003371/0.2459, allocations: 4.104 MB / 459 MB, free: 7.707 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2459, allocations: 4 kB / 459 MB, free: 7.703 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.52e-07/0.246, allocations: 0 / 459 MB, free: 7.703 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.23e-05/0.246, allocations: 0 / 459 MB, free: 7.703 MB / 330.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.00405/0.2501, allocations: 2.949 MB / 461.9 MB, free: 4.691 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.2501, allocations: 15.97 kB / 461.9 MB, free: 4.676 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006541/0.2567, allocations: 1.767 MB / 463.7 MB, free: 2.902 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002286/0.259, allocations: 1.158 MB / 464.9 MB, free: 1.699 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.054e-05/0.2591, allocations: 147.8 kB / 465 MB, free: 1.555 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003181/0.2594, allocations: 215.8 kB / 465.2 MB, free: 1.344 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01657/0.276, allocations: 8.592 MB / 473.8 MB, free: 8.148 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.761e-05/0.2761, allocations: 35.75 kB / 473.8 MB, free: 8.113 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002408/0.2764, allocations: 103.9 kB / 473.9 MB, free: 8.012 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0027/0.2791, allocations: 1.667 MB / 475.6 MB, free: 6.344 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01658/0.2957, allocations: 7.167 MB / 482.8 MB, free: 15.17 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0322/0.3279, allocations: 30.19 MB / 0.5009 GB, free: 104 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1877/0.5156, allocations: 5.038 MB / 0.5059 GB, free: 93.86 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001672/0.5173, allocations: 1.249 MB / 0.5071 GB, free: 93.44 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004239/0.5216, allocations: 3.729 MB / 0.5107 GB, free: 91.27 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.886e-05/0.5216, allocations: 49.55 kB / 0.5108 GB, free: 91.21 MB / 378.7 MB Notification: Performance of pre-optimization done (n=111): time 2.915e-06/0.5216, allocations: 3.219 kB / 0.5108 GB, free: 91.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=111): time 0.04331/0.565, allocations: 9.247 MB / 0.5198 GB, free: 85.19 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.222e-05/0.5651, allocations: 202 kB / 0.52 GB, free: 84.95 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003039/0.5681, allocations: 3.043 MB / 0.523 GB, free: 81.9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001446/0.5683, allocations: 41.7 kB / 0.523 GB, free: 81.85 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008967/0.5692, allocations: 2.419 MB / 0.5254 GB, free: 79.44 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003659/0.5695, allocations: 0.4925 MB / 0.5259 GB, free: 78.95 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009963/0.5705, allocations: 1.087 MB / 0.5269 GB, free: 77.85 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.796e-05/0.5706, allocations: 305.1 kB / 0.5272 GB, free: 77.55 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001665/0.5723, allocations: 1.596 MB / 0.5288 GB, free: 75.95 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002703/0.575, allocations: 5.169 MB / 0.5338 GB, free: 68.98 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005281/0.5803, allocations: 7.343 MB / 0.541 GB, free: 59.87 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.717e-05/0.5804, allocations: 36 kB / 0.541 GB, free: 59.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.007779/0.5882, allocations: 6.433 MB / 0.5473 GB, free: 53.4 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.964e-05/0.5883, allocations: 60 kB / 0.5474 GB, free: 53.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001007/0.5884, allocations: 128.1 kB / 0.5475 GB, free: 53.22 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001297/0.5885, allocations: 168 kB / 0.5476 GB, free: 53.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004221/0.5928, allocations: 1.458 MB / 0.5491 GB, free: 51.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001237/0.5929, allocations: 251 kB / 0.5493 GB, free: 51.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003049/0.596, allocations: 0.7455 MB / 0.55 GB, free: 50.6 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003072/0.5963, allocations: 344 kB / 0.5504 GB, free: 50.26 MB / 378.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.001522/0.5978, allocations: 1.583 MB / 0.5519 GB, free: 48.67 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002989/0.5981, allocations: 244.8 kB / 0.5521 GB, free: 48.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001033/0.5992, allocations: 0.833 MB / 0.553 GB, free: 47.58 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.848e-05/0.5992, allocations: 12 kB / 0.553 GB, free: 47.57 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.842e-06/0.5992, allocations: 0 / 0.553 GB, free: 47.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.046e-06/0.5992, allocations: 7.984 kB / 0.553 GB, free: 47.56 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0044/0.6036, allocations: 3.399 MB / 0.5563 GB, free: 44.13 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.713e-06/0.6036, allocations: 4 kB / 0.5563 GB, free: 44.13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002098/0.6057, allocations: 407.5 kB / 0.5567 GB, free: 43.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.946e-06/0.6058, allocations: 4 kB / 0.5567 GB, free: 43.73 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.745e-05/0.6058, allocations: 35.97 kB / 0.5567 GB, free: 43.69 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.043e-06/0.6059, allocations: 6.812 kB / 0.5567 GB, free: 43.69 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.6059, allocations: 3.938 kB / 0.5567 GB, free: 43.68 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02491/0.6308, allocations: 16.28 MB / 0.5726 GB, free: 27.23 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003203/0.6312, allocations: 313.5 kB / 0.5729 GB, free: 26.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002036/0.6314, allocations: 27.98 kB / 0.573 GB, free: 26.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008105/0.6322, allocations: 35.97 kB / 0.573 GB, free: 26.84 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001158/0.6323, allocations: 59.91 kB / 0.573 GB, free: 26.78 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.746e-05/0.6324, allocations: 39.92 kB / 0.5731 GB, free: 26.74 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002016/0.6344, allocations: 1.841 MB / 0.5749 GB, free: 24.9 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.6344, allocations: 0 / 0.5749 GB, free: 24.9 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003985/0.6384, allocations: 1.059 MB / 0.5759 GB, free: 23.84 MB / 378.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.00033/0.6387, allocations: 180.8 kB / 0.5761 GB, free: 23.66 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004275/0.643, allocations: 3.594 MB / 0.5796 GB, free: 20.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.6431, allocations: 4 kB / 0.5796 GB, free: 20.09 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006756/0.6437, allocations: 0.7167 MB / 0.5803 GB, free: 19.38 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001441/0.6452, allocations: 247.8 kB / 0.5805 GB, free: 19.14 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009473/0.6547, allocations: 9.151 MB / 0.5895 GB, free: 9.953 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001731/0.6564, allocations: 2.422 MB / 0.5918 GB, free: 7.504 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.003782/0.6602, allocations: 1.687 MB / 0.5935 GB, free: 5.812 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006214/0.6609, allocations: 215.4 kB / 0.5937 GB, free: 5.602 MB / 378.7 MB Notification: Performance of SimCode: time 6.61e-07/0.6609, allocations: 0 / 0.5937 GB, free: 5.602 MB / 378.7 MB Notification: Performance of Templates: time 0.04643/0.7073, allocations: 29.4 MB / 0.6224 GB, free: 8.328 MB / 410.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@2/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