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.0008448/0.0008448, allocations: 96.11 kB / 18 MB, free: 5.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00111/0.00111, allocations: 200.4 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.311/1.311, allocations: 227.7 MB / 247.5 MB, free: 9.672 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002633/0.0002633, allocations: 8 kB / 308.4 MB, free: 0.6094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0933/0.09359, allocations: 51.53 MB / 359.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.197/0.2906, allocations: 27.88 MB / 387.8 MB, free: 4.871 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0127/0.3034, allocations: 5.877 MB / 393.7 MB, free: 1.602 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005234/0.3086, allocations: 112.8 kB / 393.8 MB, free: 1.586 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009917/0.3096, allocations: 300.4 kB / 394.1 MB, free: 1.477 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002308/0.312, allocations: 0.9319 MB / 395 MB, free: 1.066 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005996/0.3126, allocations: 237.6 kB / 395.2 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003493/0.3161, allocations: 3.267 MB / 398.5 MB, free: 15.94 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002834/0.3189, allocations: 2.056 MB / 400.6 MB, free: 14.76 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009603/0.3199, allocations: 0.6578 MB / 401.2 MB, free: 14.41 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001415/0.3213, allocations: 1.212 MB / 402.4 MB, free: 13.75 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002003/0.3215, allocations: 85.5 kB / 402.5 MB, free: 13.75 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001152/0.3227, allocations: 0.6329 MB / 403.2 MB, free: 13.43 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008326/0.3235, allocations: 1.095 MB / 404.2 MB, free: 12.85 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001026/0.3246, allocations: 1.308 MB / 405.6 MB, free: 11.85 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002724/0.3273, allocations: 3.218 MB / 408.8 MB, free: 9.711 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.3273, allocations: 0 / 408.8 MB, free: 9.711 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.3273, allocations: 0 / 408.8 MB, free: 9.711 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.254e-05/0.3274, allocations: 0 / 408.8 MB, free: 9.711 MB / 318.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.003865/0.3313, allocations: 2.374 MB / 411.1 MB, free: 7.543 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.011e-05/0.3313, allocations: 8.031 kB / 411.2 MB, free: 7.535 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006889/0.3382, allocations: 1.826 MB / 413 MB, free: 5.703 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001682/0.3399, allocations: 1.15 MB / 414.1 MB, free: 4.508 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001056/0.3401, allocations: 159.8 kB / 414.3 MB, free: 4.352 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003777/0.3404, allocations: 207.8 kB / 414.5 MB, free: 4.148 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01737/0.3578, allocations: 8.635 MB / 423.1 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.081e-05/0.3579, allocations: 39.75 kB / 423.2 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002537/0.3582, allocations: 99.88 kB / 423.3 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002755/0.3609, allocations: 1.671 MB / 424.9 MB, free: 9.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01697/0.3779, allocations: 7.21 MB / 432.1 MB, free: 1.879 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03319/0.4112, allocations: 30.2 MB / 462.3 MB, free: 2.785 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02326/0.4344, allocations: 5.122 MB / 467.5 MB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001712/0.4362, allocations: 1.244 MB / 468.7 MB, free: 12.22 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005688/0.4419, allocations: 3.829 MB / 472.5 MB, free: 8.227 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.391e-05/0.442, allocations: 50.83 kB / 472.6 MB, free: 8.168 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 4.047e-06/0.442, allocations: 0 / 472.6 MB, free: 8.168 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.04794/0.4899, allocations: 9.419 MB / 482 MB, free: 14.66 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001424/0.4901, allocations: 199.8 kB / 482.2 MB, free: 14.42 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005325/0.4954, allocations: 3.034 MB / 485.2 MB, free: 11.37 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001898/0.4957, allocations: 45.7 kB / 485.3 MB, free: 11.32 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001959/0.4976, allocations: 2.41 MB / 487.7 MB, free: 8.867 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007309/0.4984, allocations: 0.5018 MB / 488.2 MB, free: 8.359 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007586/0.4991, allocations: 465.8 kB / 488.6 MB, free: 7.898 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001931/0.4993, allocations: 301.1 kB / 488.9 MB, free: 7.602 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002782/0.5021, allocations: 1.607 MB / 490.6 MB, free: 5.988 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005387/0.5075, allocations: 5.177 MB / 495.7 MB, free: 15.01 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008369/0.5159, allocations: 7.334 MB / 0.4913 GB, free: 5.895 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000111/0.5161, allocations: 40.75 kB / 0.4913 GB, free: 5.855 MB / 414.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01226/0.5283, allocations: 6.449 MB / 0.4976 GB, free: 15.4 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001365/0.5285, allocations: 60 kB / 0.4977 GB, free: 15.34 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001868/0.5287, allocations: 131.9 kB / 0.4978 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002141/0.5289, allocations: 168 kB / 0.4979 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005057/0.534, allocations: 1.454 MB / 0.4994 GB, free: 13.59 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002103/0.5342, allocations: 247 kB / 0.4996 GB, free: 13.35 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00396/0.5382, allocations: 0.754 MB / 0.5003 GB, free: 12.59 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000708/0.5389, allocations: 340 kB / 0.5007 GB, free: 12.26 MB / 430.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.002846/0.5418, allocations: 1.58 MB / 0.5022 GB, free: 10.67 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005074/0.5423, allocations: 248.8 kB / 0.5024 GB, free: 10.42 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007342/0.543, allocations: 311.3 kB / 0.5027 GB, free: 10.12 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-05/0.5431, allocations: 16 kB / 0.5028 GB, free: 10.1 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/0.5431, allocations: 0 / 0.5028 GB, free: 10.1 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.81e-05/0.5431, allocations: 19.91 kB / 0.5028 GB, free: 10.08 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007191/0.5503, allocations: 3.399 MB / 0.5061 GB, free: 6.621 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.797e-06/0.5504, allocations: 0 / 0.5061 GB, free: 6.621 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002309/0.5527, allocations: 415.5 kB / 0.5065 GB, free: 6.215 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.926e-05/0.5527, allocations: 7.938 kB / 0.5065 GB, free: 6.207 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00011/0.5528, allocations: 35.97 kB / 0.5065 GB, free: 6.172 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.997e-06/0.5528, allocations: 4 kB / 0.5065 GB, free: 6.168 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.5528, allocations: 0 / 0.5065 GB, free: 6.168 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003511/0.5564, allocations: 2.803 MB / 0.5093 GB, free: 3.344 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006618/0.557, allocations: 313.5 kB / 0.5096 GB, free: 3.016 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004429/0.5575, allocations: 31.98 kB / 0.5096 GB, free: 2.984 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001009/0.5585, allocations: 47.95 kB / 0.5097 GB, free: 2.938 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/0.5586, allocations: 59.86 kB / 0.5097 GB, free: 2.879 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.01e-05/0.5587, allocations: 31.98 kB / 0.5097 GB, free: 2.848 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003166/0.5619, allocations: 1.84 MB / 0.5115 GB, free: 1.004 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5619, allocations: 0 / 0.5115 GB, free: 1.004 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004091/0.566, allocations: 0.8143 MB / 0.5123 GB, free: 192 kB / 430.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.0004277/0.5665, allocations: 166.1 kB / 0.5125 GB, free: 16 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005731/0.5722, allocations: 3.613 MB / 0.516 GB, free: 12.43 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.5722, allocations: 0 / 0.516 GB, free: 12.43 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009858/0.5732, allocations: 0.7336 MB / 0.5167 GB, free: 11.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002181/0.5754, allocations: 256 kB / 0.517 GB, free: 11.45 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01425/0.5897, allocations: 9.108 MB / 0.5259 GB, free: 2.281 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2154/0.8051, allocations: 2.387 MB / 0.5282 GB, free: 121.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009912/0.8062, allocations: 232.1 kB / 0.5284 GB, free: 121.9 MB / 446.1 MB Notification: Performance of SimCode: time 1.152e-06/0.8062, allocations: 2.156 kB / 0.5284 GB, free: 121.9 MB / 446.1 MB Notification: Performance of Templates: time 0.05943/0.8656, allocations: 39.9 MB / 0.5674 GB, free: 101 MB / 446.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