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.00111/0.00111, allocations: 117.6 kB / 17.79 MB, free: 5.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001202/0.001202, allocations: 208.7 kB / 18.74 MB, free: 4.297 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00109/0.00109, allocations: 67.88 kB / 358.7 MB, free: 12.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2359/0.237, allocations: 50.55 MB / 409.3 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.008423/0.2455, allocations: 7.927 MB / 417.2 MB, free: 9.602 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004451/0.25, allocations: 2.567 MB / 419.8 MB, free: 7.027 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005352/0.2505, allocations: 35.94 kB / 419.8 MB, free: 6.992 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002521/0.253, allocations: 1.436 MB / 421.2 MB, free: 5.551 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001877/0.255, allocations: 1.011 MB / 422.2 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006007/0.2556, allocations: 271.4 kB / 422.5 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002185/0.2578, allocations: 2.154 MB / 424.7 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001561/0.2594, allocations: 1.548 MB / 426.2 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008128/0.2602, allocations: 0.8406 MB / 427 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001251/0.2615, allocations: 1.183 MB / 428.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002367/0.2617, allocations: 156 kB / 428.4 MB, free: 14.35 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00104/0.2627, allocations: 0.6709 MB / 429.1 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00088/0.2636, allocations: 1.145 MB / 430.2 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001058/0.2647, allocations: 1.359 MB / 431.6 MB, free: 11.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003566/0.2683, allocations: 4.267 MB / 435.8 MB, free: 6.879 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2683, allocations: 4 kB / 435.8 MB, free: 6.875 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2683, allocations: 0 / 435.8 MB, free: 6.875 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.041e-05/0.2684, allocations: 0 / 435.8 MB, free: 6.875 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.003797/0.2722, allocations: 2.926 MB / 438.8 MB, free: 3.887 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.2722, allocations: 16.02 kB / 438.8 MB, free: 3.871 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006267/0.2785, allocations: 1.775 MB / 440.5 MB, free: 2.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001841/0.2803, allocations: 1.165 MB / 441.7 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.423e-05/0.2805, allocations: 147.8 kB / 441.9 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003488/0.2808, allocations: 211.7 kB / 442.1 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01641/0.2972, allocations: 8.611 MB / 450.7 MB, free: 7.312 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.713e-05/0.2973, allocations: 39.59 kB / 450.7 MB, free: 7.273 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002462/0.2976, allocations: 103.9 kB / 450.8 MB, free: 7.172 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002583/0.3002, allocations: 1.667 MB / 452.5 MB, free: 5.508 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01711/0.3173, allocations: 7.182 MB / 459.7 MB, free: 14.32 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03671/0.354, allocations: 30.08 MB / 489.7 MB, free: 15.36 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02308/0.3772, allocations: 5.064 MB / 494.8 MB, free: 10.11 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001895/0.3791, allocations: 1.248 MB / 496.1 MB, free: 8.844 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005894/0.385, allocations: 3.832 MB / 499.9 MB, free: 4.844 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.784e-05/0.3851, allocations: 50.89 kB / 499.9 MB, free: 4.785 MB / 414.1 MB Notification: Performance of pre-optimization done (n=111): time 4.027e-06/0.3851, allocations: 0 / 499.9 MB, free: 4.785 MB / 414.1 MB Notification: Performance of matching and sorting (n=111): time 0.04671/0.4318, allocations: 9.274 MB / 0.4973 GB, free: 11.42 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/0.432, allocations: 199.8 kB / 0.4975 GB, free: 11.18 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0041/0.4361, allocations: 3.027 MB / 0.5004 GB, free: 8.137 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.915e-05/0.4362, allocations: 41.7 kB / 0.5005 GB, free: 8.09 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001432/0.4376, allocations: 2.425 MB / 0.5028 GB, free: 5.625 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003841/0.438, allocations: 498 kB / 0.5033 GB, free: 5.133 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001121/0.4392, allocations: 1.087 MB / 0.5044 GB, free: 4.035 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.86e-05/0.4393, allocations: 309.1 kB / 0.5047 GB, free: 3.73 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002079/0.4414, allocations: 1.603 MB / 0.5062 GB, free: 2.121 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004163/0.4455, allocations: 5.169 MB / 0.5113 GB, free: 11.15 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006586/0.4521, allocations: 7.334 MB / 0.5184 GB, free: 2.031 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.126e-05/0.4522, allocations: 36 kB / 0.5185 GB, free: 1.996 MB / 446.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.008565/0.4608, allocations: 6.454 MB / 0.5248 GB, free: 11.54 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.444e-05/0.4608, allocations: 60 kB / 0.5248 GB, free: 11.48 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001086/0.461, allocations: 128 kB / 0.5249 GB, free: 11.36 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001353/0.4611, allocations: 168 kB / 0.5251 GB, free: 11.19 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0045/0.4656, allocations: 1.458 MB / 0.5265 GB, free: 9.73 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000167/0.4658, allocations: 243.1 kB / 0.5268 GB, free: 9.492 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003148/0.4689, allocations: 0.7541 MB / 0.5275 GB, free: 8.73 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003957/0.4694, allocations: 340 kB / 0.5278 GB, free: 8.398 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.001953/0.4713, allocations: 1.575 MB / 0.5294 GB, free: 6.809 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003765/0.4717, allocations: 256.7 kB / 0.5296 GB, free: 6.555 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004736/0.4722, allocations: 311.3 kB / 0.5299 GB, free: 6.25 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.379e-05/0.4722, allocations: 19.94 kB / 0.5299 GB, free: 6.23 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/0.4722, allocations: 0 / 0.5299 GB, free: 6.23 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/0.4722, allocations: 7.984 kB / 0.5299 GB, free: 6.223 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005247/0.4775, allocations: 3.404 MB / 0.5333 GB, free: 2.758 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.253e-06/0.4775, allocations: 4 kB / 0.5333 GB, free: 2.754 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002276/0.4798, allocations: 403.5 kB / 0.5336 GB, free: 2.359 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.128e-05/0.4798, allocations: 4 kB / 0.5336 GB, free: 2.355 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001021/0.4799, allocations: 39.97 kB / 0.5337 GB, free: 2.316 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.753e-06/0.48, allocations: 8 kB / 0.5337 GB, free: 2.309 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.48, allocations: 4 kB / 0.5337 GB, free: 2.305 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2159/0.6959, allocations: 2.796 MB / 0.5364 GB, free: 123.8 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006032/0.6965, allocations: 302.4 kB / 0.5367 GB, free: 123.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002907/0.6968, allocations: 27.97 kB / 0.5367 GB, free: 123.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009173/0.6977, allocations: 41.62 kB / 0.5368 GB, free: 123.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001437/0.6979, allocations: 55.36 kB / 0.5368 GB, free: 123.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001013/0.698, allocations: 38.66 kB / 0.5369 GB, free: 123.7 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00272/0.7007, allocations: 1.844 MB / 0.5387 GB, free: 123.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.7007, allocations: 0 / 0.5387 GB, free: 123.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003342/0.7041, allocations: 0.8169 MB / 0.5395 GB, free: 123.1 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.0002758/0.7044, allocations: 164.7 kB / 0.5396 GB, free: 123 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004134/0.7085, allocations: 3.624 MB / 0.5432 GB, free: 121.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.7085, allocations: 0 / 0.5432 GB, free: 121.9 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000702/0.7092, allocations: 0.7256 MB / 0.5439 GB, free: 121.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001332/0.7106, allocations: 269.2 kB / 0.5441 GB, free: 121.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007603/0.7182, allocations: 7.05 MB / 0.551 GB, free: 118.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001653/0.7199, allocations: 2.383 MB / 0.5533 GB, free: 116.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002849/0.7227, allocations: 1.639 MB / 0.5549 GB, free: 115.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00038/0.7231, allocations: 187.1 kB / 0.5551 GB, free: 115.1 MB / 462.1 MB Notification: Performance of SimCode: time 1.653e-06/0.7231, allocations: 4 kB / 0.5551 GB, free: 115.1 MB / 462.1 MB Notification: Performance of Templates: time 0.03037/0.7535, allocations: 18.7 MB / 0.5734 GB, free: 97.2 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins/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