Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001576/0.001576, allocations: 118.1 kB / 17.83 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001601/0.001601, allocations: 209.1 kB / 18.79 MB, free: 4.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.441/1.441, allocations: 230.4 MB / 250 MB, free: 9.043 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001906/0.001906, allocations: 71.83 kB / 367.4 MB, free: 7.043 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2543/0.2562, allocations: 53.31 MB / 420.7 MB, free: 8.348 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.009892/0.2661, allocations: 7.972 MB / 428.6 MB, free: 352 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005109/0.2712, allocations: 2.577 MB / 431.2 MB, free: 13.76 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007456/0.2719, allocations: 39.94 kB / 431.3 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002831/0.2748, allocations: 1.452 MB / 432.7 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002105/0.2769, allocations: 1.011 MB / 433.7 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006071/0.2775, allocations: 267.5 kB / 434 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002629/0.2801, allocations: 2.15 MB / 436.1 MB, free: 8.832 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001592/0.2817, allocations: 1.341 MB / 437.5 MB, free: 7.457 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009512/0.2827, allocations: 0.8289 MB / 438.3 MB, free: 6.625 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001634/0.2843, allocations: 1.304 MB / 439.6 MB, free: 5.316 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002981/0.2846, allocations: 160 kB / 439.8 MB, free: 5.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001245/0.2858, allocations: 0.6903 MB / 440.4 MB, free: 4.469 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001174/0.287, allocations: 1.18 MB / 441.6 MB, free: 3.285 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001311/0.2883, allocations: 1.359 MB / 443 MB, free: 1.918 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005004/0.2933, allocations: 4.29 MB / 447.3 MB, free: 13.61 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.2933, allocations: 4 kB / 447.3 MB, free: 13.61 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2933, allocations: 0 / 447.3 MB, free: 13.61 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.302e-05/0.2934, allocations: 0 / 447.3 MB, free: 13.61 MB / 366.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.00436/0.2978, allocations: 3.002 MB / 450.3 MB, free: 10.54 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.2978, allocations: 16.03 kB / 450.3 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006674/0.3045, allocations: 1.797 MB / 452.1 MB, free: 8.723 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002075/0.3066, allocations: 1.162 MB / 453.3 MB, free: 7.52 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000126/0.3067, allocations: 147.8 kB / 453.4 MB, free: 7.375 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000394/0.3071, allocations: 211.8 kB / 453.6 MB, free: 7.168 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01991/0.327, allocations: 8.615 MB / 462.2 MB, free: 13.95 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.05e-05/0.3271, allocations: 35.7 kB / 462.3 MB, free: 13.91 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002737/0.3273, allocations: 99.88 kB / 462.4 MB, free: 13.81 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002954/0.3303, allocations: 1.671 MB / 464 MB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01858/0.3489, allocations: 7.182 MB / 471.2 MB, free: 4.961 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03677/0.3857, allocations: 30.14 MB / 0.4896 GB, free: 5.938 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02333/0.409, allocations: 5 MB / 0.4945 GB, free: 0.7617 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001898/0.4109, allocations: 1.197 MB / 0.4956 GB, free: 15.54 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006448/0.4173, allocations: 3.834 MB / 0.4994 GB, free: 11.54 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.32e-05/0.4174, allocations: 54.83 kB / 0.4994 GB, free: 11.48 MB / 430.1 MB Notification: Performance of pre-optimization done (n=111): time 3.888e-06/0.4174, allocations: 0 / 0.4994 GB, free: 11.48 MB / 430.1 MB Notification: Performance of matching and sorting (n=111): time 0.04885/0.4662, allocations: 9.288 MB / 0.5085 GB, free: 2.105 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001346/0.4664, allocations: 199.8 kB / 0.5087 GB, free: 1.867 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005684/0.4721, allocations: 3.039 MB / 0.5117 GB, free: 14.81 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001917/0.4723, allocations: 41.7 kB / 0.5117 GB, free: 14.76 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002191/0.4744, allocations: 2.535 MB / 0.5142 GB, free: 12.2 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007908/0.4752, allocations: 0.508 MB / 0.5147 GB, free: 11.69 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001774/0.477, allocations: 1.096 MB / 0.5158 GB, free: 10.58 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.4771, allocations: 305.1 kB / 0.516 GB, free: 10.28 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00245/0.4796, allocations: 1.607 MB / 0.5176 GB, free: 8.668 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005434/0.485, allocations: 5.17 MB / 0.5227 GB, free: 1.695 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009042/0.4941, allocations: 7.334 MB / 0.5298 GB, free: 8.578 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.673e-05/0.4942, allocations: 36 kB / 0.5299 GB, free: 8.543 MB / 462.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01169/0.5059, allocations: 6.461 MB / 0.5362 GB, free: 2.082 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001043/0.506, allocations: 60 kB / 0.5362 GB, free: 2.023 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001761/0.5061, allocations: 132 kB / 0.5364 GB, free: 1.895 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001927/0.5063, allocations: 168 kB / 0.5365 GB, free: 1.73 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005232/0.5116, allocations: 1.462 MB / 0.5379 GB, free: 272 kB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002414/0.5118, allocations: 243 kB / 0.5382 GB, free: 28 kB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.201/0.7128, allocations: 0.7643 MB / 0.5389 GB, free: 113.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001096/0.7139, allocations: 342 kB / 0.5392 GB, free: 113.4 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.002871/0.7167, allocations: 1.573 MB / 0.5408 GB, free: 113.2 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000685/0.7174, allocations: 259.8 kB / 0.541 GB, free: 113.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004926/0.7179, allocations: 317.6 kB / 0.5413 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.175e-05/0.7179, allocations: 15.34 kB / 0.5413 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.467e-06/0.7179, allocations: 6.938 kB / 0.5414 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.008e-05/0.7179, allocations: 6.047 kB / 0.5414 GB, free: 113 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005021/0.723, allocations: 3.4 MB / 0.5447 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.131e-06/0.723, allocations: 1.375 kB / 0.5447 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002261/0.7252, allocations: 411.8 kB / 0.5451 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.484e-06/0.7252, allocations: 3.812 kB / 0.5451 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.786e-05/0.7253, allocations: 41.47 kB / 0.5451 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.701e-06/0.7253, allocations: 7 kB / 0.5451 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.7253, allocations: 0.9844 kB / 0.5451 GB, free: 111.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002594/0.7279, allocations: 2.82 MB / 0.5479 GB, free: 110.5 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004084/0.7283, allocations: 311.2 kB / 0.5482 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002357/0.7286, allocations: 30.05 kB / 0.5482 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008292/0.7294, allocations: 47.91 kB / 0.5482 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001253/0.7295, allocations: 58.02 kB / 0.5483 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.111e-05/0.7296, allocations: 39.08 kB / 0.5483 GB, free: 110.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002083/0.7317, allocations: 1.836 MB / 0.5501 GB, free: 109.5 MB / 462.1 MB Notification: Performance of sort global known variables: time 7e-08/0.7317, allocations: 2.469 kB / 0.5501 GB, free: 109.5 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004013/0.7357, allocations: 0.8266 MB / 0.5509 GB, free: 109.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.000295/0.736, allocations: 159.8 kB / 0.5511 GB, free: 109.3 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004393/0.7404, allocations: 3.484 MB / 0.5545 GB, free: 108.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/0.7404, allocations: 2 kB / 0.5545 GB, free: 108.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006586/0.741, allocations: 0.6817 MB / 0.5552 GB, free: 108.1 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001432/0.7425, allocations: 271.4 kB / 0.5554 GB, free: 107.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008508/0.751, allocations: 7.159 MB / 0.5624 GB, free: 101.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001604/0.7526, allocations: 2.39 MB / 0.5648 GB, free: 99.53 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00288/0.7555, allocations: 1.634 MB / 0.5663 GB, free: 98.21 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003475/0.7558, allocations: 191.3 kB / 0.5665 GB, free: 98.02 MB / 462.1 MB Notification: Performance of SimCode: time 8.22e-07/0.7558, allocations: 0 / 0.5665 GB, free: 98.02 MB / 462.1 MB Notification: Performance of Templates: time 0.03278/0.7886, allocations: 19.06 MB / 0.5851 GB, free: 79.16 MB / 462.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches