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.002258/0.002258, allocations: 109.7 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002088/0.002088, allocations: 214.8 kB / 19.41 MB, free: 3.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 3.053/3.053, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002492/0.002492, allocations: 63.91 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5403/0.5428, allocations: 50.55 MB / 409.9 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.01558/0.5585, allocations: 7.934 MB / 417.9 MB, free: 9.625 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008492/0.5671, allocations: 2.563 MB / 420.4 MB, free: 7.055 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002135/0.5693, allocations: 31.94 kB / 420.5 MB, free: 7.023 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004275/0.5736, allocations: 1.44 MB / 421.9 MB, free: 5.578 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01308/0.5867, allocations: 0.9762 MB / 422.9 MB, free: 4.598 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001489/0.5883, allocations: 263.4 kB / 423.1 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005676/0.594, allocations: 2.161 MB / 425.3 MB, free: 2.176 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003972/0.598, allocations: 1.556 MB / 426.9 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002609/0.6007, allocations: 0.8328 MB / 427.7 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003301/0.604, allocations: 1.183 MB / 428.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001064/0.6051, allocations: 164 kB / 429 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003162/0.6083, allocations: 0.6669 MB / 429.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002403/0.6108, allocations: 1.149 MB / 430.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003734/0.6145, allocations: 1.359 MB / 432.2 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01012/0.6247, allocations: 4.267 MB / 436.5 MB, free: 6.938 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.223e-05/0.6248, allocations: 0 / 436.5 MB, free: 6.938 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.499e-06/0.6248, allocations: 0 / 436.5 MB, free: 6.938 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002579/0.6251, allocations: 0 / 436.5 MB, free: 6.938 MB / 350.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.01072/0.6358, allocations: 2.93 MB / 439.4 MB, free: 3.945 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.309e-05/0.6359, allocations: 12.03 kB / 439.4 MB, free: 3.934 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01134/0.6473, allocations: 1.775 MB / 441.2 MB, free: 2.152 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004475/0.6518, allocations: 1.158 MB / 442.3 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000252/0.6521, allocations: 151.8 kB / 442.5 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001137/0.6532, allocations: 199.8 kB / 442.7 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03562/0.6889, allocations: 8.619 MB / 451.3 MB, free: 7.383 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000366/0.6893, allocations: 43.59 kB / 451.4 MB, free: 7.34 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001435/0.6908, allocations: 103.8 kB / 451.5 MB, free: 7.238 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.009052/0.6999, allocations: 1.671 MB / 453.1 MB, free: 5.57 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02911/0.7291, allocations: 7.179 MB / 460.3 MB, free: 14.39 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05781/0.787, allocations: 30.09 MB / 490.4 MB, free: 15.41 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03417/0.8213, allocations: 5.056 MB / 495.4 MB, free: 10.18 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00274/0.8241, allocations: 1.256 MB / 496.7 MB, free: 8.898 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009958/0.8341, allocations: 3.827 MB / 0.4888 GB, free: 4.906 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.26e-05/0.8343, allocations: 42.89 kB / 0.4888 GB, free: 4.855 MB / 414.1 MB Notification: Performance of pre-optimization done (n=111): time 8.647e-06/0.8343, allocations: 4 kB / 0.4888 GB, free: 4.852 MB / 414.1 MB Notification: Performance of matching and sorting (n=111): time 0.0725/0.9068, allocations: 9.277 MB / 0.4979 GB, free: 11.49 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001827/0.9071, allocations: 199.8 kB / 0.4981 GB, free: 11.25 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00719/0.9143, allocations: 3.034 MB / 0.5011 GB, free: 8.195 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003174/0.9147, allocations: 37.7 kB / 0.5011 GB, free: 8.152 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002903/0.9176, allocations: 2.422 MB / 0.5035 GB, free: 5.691 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001103/0.9187, allocations: 0.4903 MB / 0.5039 GB, free: 5.195 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002279/0.921, allocations: 1.087 MB / 0.505 GB, free: 4.098 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.9211, allocations: 301.1 kB / 0.5053 GB, free: 3.801 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003937/0.9251, allocations: 1.607 MB / 0.5069 GB, free: 2.188 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008758/0.9339, allocations: 5.173 MB / 0.5119 GB, free: 11.21 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01461/0.9486, allocations: 7.336 MB / 0.5191 GB, free: 2.094 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001924/0.9488, allocations: 36 kB / 0.5191 GB, free: 2.059 MB / 446.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.02238/0.9712, allocations: 6.445 MB / 0.5254 GB, free: 11.61 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001372/0.9715, allocations: 60.19 kB / 0.5255 GB, free: 11.55 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002578/0.9717, allocations: 132 kB / 0.5256 GB, free: 11.42 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002343/0.972, allocations: 164 kB / 0.5257 GB, free: 11.26 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008757/0.9807, allocations: 1.458 MB / 0.5272 GB, free: 9.797 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003921/0.9812, allocations: 251 kB / 0.5274 GB, free: 9.551 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00796/0.9892, allocations: 0.7459 MB / 0.5281 GB, free: 8.801 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001496/0.9907, allocations: 344 kB / 0.5285 GB, free: 8.465 MB / 462.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.004648/0.9954, allocations: 1.586 MB / 0.53 GB, free: 6.863 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008943/0.9963, allocations: 248.7 kB / 0.5302 GB, free: 6.617 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008111/0.9971, allocations: 315.3 kB / 0.5305 GB, free: 6.309 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.116e-05/0.9972, allocations: 12 kB / 0.5306 GB, free: 6.297 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.286e-05/0.9972, allocations: 11.94 kB / 0.5306 GB, free: 6.285 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.627e-05/0.9972, allocations: 3.984 kB / 0.5306 GB, free: 6.281 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01036/1.008, allocations: 3.396 MB / 0.5339 GB, free: 2.824 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-05/1.008, allocations: 3.938 kB / 0.5339 GB, free: 2.82 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003446/1.011, allocations: 411.5 kB / 0.5343 GB, free: 2.418 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-05/1.011, allocations: 4 kB / 0.5343 GB, free: 2.414 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000171/1.011, allocations: 31.97 kB / 0.5343 GB, free: 2.383 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-05/1.011, allocations: 8 kB / 0.5343 GB, free: 2.375 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.24e-06/1.011, allocations: 0 / 0.5343 GB, free: 2.375 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5506/1.562, allocations: 2.794 MB / 0.5371 GB, free: 124 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001723/1.564, allocations: 306.1 kB / 0.5373 GB, free: 123.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001068/1.565, allocations: 30.11 kB / 0.5374 GB, free: 123.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001899/1.567, allocations: 43.12 kB / 0.5374 GB, free: 123.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000289/1.567, allocations: 61.75 kB / 0.5375 GB, free: 123.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001815/1.567, allocations: 34.08 kB / 0.5375 GB, free: 123.9 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.006369/1.574, allocations: 1.84 MB / 0.5393 GB, free: 123.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.825e-06/1.574, allocations: 0 / 0.5393 GB, free: 123.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.008387/1.582, allocations: 0.8132 MB / 0.5401 GB, free: 123.4 MB / 462.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.0007215/1.583, allocations: 168.5 kB / 0.5403 GB, free: 123.3 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01197/1.595, allocations: 3.626 MB / 0.5438 GB, free: 122.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.223e-05/1.595, allocations: 0 / 0.5438 GB, free: 122.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001546/1.597, allocations: 0.7262 MB / 0.5445 GB, free: 122 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004807/1.602, allocations: 268.4 kB / 0.5448 GB, free: 121.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02007/1.622, allocations: 7.385 MB / 0.552 GB, free: 118.1 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004037/1.626, allocations: 2.385 MB / 0.5543 GB, free: 116.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001196/1.627, allocations: 238.1 kB / 0.5545 GB, free: 116 MB / 462.1 MB Notification: Performance of SimCode: time 2.204e-06/1.627, allocations: 3.938 kB / 0.5545 GB, free: 116 MB / 462.1 MB Notification: Performance of Templates: time 0.0945/1.722, allocations: 41.4 MB / 0.595 GB, free: 75.77 MB / 462.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 -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