Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009889/0.000989, allocations: 95.97 kB / 16.93 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001046/0.001046, allocations: 180.3 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.346/1.346, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000422/0.0004221, allocations: 11.98 kB / 280.7 MB, free: 3.746 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08459/0.08503, allocations: 47.59 MB / 328.3 MB, free: 4.09 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.02293/0.108, allocations: 24.75 MB / 353.1 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0125/0.1205, allocations: 5.921 MB / 359 MB, free: 5.328 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003692/0.1243, allocations: 111.8 kB / 359.1 MB, free: 5.219 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003223/0.1275, allocations: 1.209 MB / 360.3 MB, free: 4.004 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009141/0.1367, allocations: 3.506 MB / 363.8 MB, free: 500 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001127/0.1378, allocations: 187.6 kB / 364 MB, free: 312 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002405/0.1402, allocations: 1.283 MB / 365.3 MB, free: 15.02 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002938/0.1432, allocations: 1.876 MB / 367.2 MB, free: 13.1 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009897/0.1442, allocations: 0.6033 MB / 367.8 MB, free: 12.5 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001203/0.1454, allocations: 0.8331 MB / 368.6 MB, free: 11.66 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003322/0.1458, allocations: 88 kB / 368.7 MB, free: 11.57 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001073/0.1468, allocations: 0.5188 MB / 369.2 MB, free: 11.05 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009559/0.1478, allocations: 1.009 MB / 370.2 MB, free: 10.04 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006244/0.1484, allocations: 0.5585 MB / 370.8 MB, free: 9.477 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003024/0.1515, allocations: 3.246 MB / 374 MB, free: 6.223 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.1515, allocations: 0 / 374 MB, free: 6.223 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.1515, allocations: 0 / 374 MB, free: 6.223 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001528/0.1517, allocations: 0 / 374 MB, free: 6.223 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.004364/0.156, allocations: 2.438 MB / 376.5 MB, free: 3.723 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.1561, allocations: 8.031 kB / 376.5 MB, free: 3.715 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007923/0.164, allocations: 2.114 MB / 378.6 MB, free: 1.594 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002904/0.1669, allocations: 1.145 MB / 379.7 MB, free: 412 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000203/0.1672, allocations: 155.8 kB / 379.9 MB, free: 256 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007794/0.168, allocations: 203.8 kB / 380.1 MB, free: 52 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1884/0.3563, allocations: 8.645 MB / 388.7 MB, free: 49.76 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001371/0.3565, allocations: 45.69 kB / 388.8 MB, free: 49.74 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004113/0.357, allocations: 103.2 kB / 388.9 MB, free: 49.7 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004159/0.3611, allocations: 1.668 MB / 390.5 MB, free: 49.42 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02166/0.3828, allocations: 7.224 MB / 397.8 MB, free: 45.79 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03184/0.4147, allocations: 30.22 MB / 428 MB, free: 14.93 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02096/0.4357, allocations: 5.118 MB / 433.1 MB, free: 9.633 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004956/0.4407, allocations: 3.752 MB / 436.8 MB, free: 5.75 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.931e-05/0.4408, allocations: 58.75 kB / 436.9 MB, free: 5.684 MB / 318.1 MB Notification: Performance of pre-optimization done (n=111): time 3.547e-06/0.4408, allocations: 0 / 436.9 MB, free: 5.684 MB / 318.1 MB Notification: Performance of matching and sorting (n=111): time 0.04428/0.4851, allocations: 9.65 MB / 446.6 MB, free: 11.89 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001094/0.4852, allocations: 195.9 kB / 446.7 MB, free: 11.66 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004208/0.4895, allocations: 3.019 MB / 449.8 MB, free: 8.621 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001762/0.4897, allocations: 42.25 kB / 449.8 MB, free: 8.574 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001627/0.4913, allocations: 2.42 MB / 452.2 MB, free: 6.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005139/0.4918, allocations: 0.4947 MB / 452.7 MB, free: 5.668 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001978/0.492, allocations: 108.7 kB / 452.8 MB, free: 5.562 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0003486/0.4924, allocations: 0.5294 MB / 453.4 MB, free: 5.027 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002284/0.4947, allocations: 1.584 MB / 454.9 MB, free: 3.438 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004475/0.4992, allocations: 5.126 MB / 460.1 MB, free: 12.51 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003604/0.5028, allocations: 2.799 MB / 462.9 MB, free: 9.707 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.524e-05/0.5029, allocations: 36 kB / 462.9 MB, free: 9.672 MB / 350.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.009267/0.5121, allocations: 6.401 MB / 469.3 MB, free: 3.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.11e-05/0.5122, allocations: 60 kB / 469.4 MB, free: 3.211 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001319/0.5124, allocations: 128.1 kB / 469.5 MB, free: 3.086 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001647/0.5125, allocations: 195.9 kB / 469.7 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004705/0.5173, allocations: 1.454 MB / 471.1 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001798/0.5175, allocations: 247 kB / 471.4 MB, free: 1.195 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003196/0.5207, allocations: 0.7465 MB / 472.1 MB, free: 452 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003823/0.5211, allocations: 348 kB / 472.5 MB, free: 108 kB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002058/0.5231, allocations: 1.575 MB / 474 MB, free: 14.52 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003689/0.5235, allocations: 248.7 kB / 474.3 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001219/0.5247, allocations: 0.8327 MB / 475.1 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.43e-05/0.5248, allocations: 19.95 kB / 475.1 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.317e-06/0.5248, allocations: 4 kB / 475.1 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.759e-05/0.5248, allocations: 3.984 kB / 475.1 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005631/0.5304, allocations: 3.389 MB / 478.5 MB, free: 9.973 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.995e-06/0.5305, allocations: 4 kB / 478.5 MB, free: 9.969 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002258/0.5327, allocations: 407.5 kB / 478.9 MB, free: 9.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.247e-06/0.5328, allocations: 4 kB / 478.9 MB, free: 9.566 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.489e-05/0.5329, allocations: 39.97 kB / 479 MB, free: 9.527 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.612e-06/0.5329, allocations: 4 kB / 479 MB, free: 9.523 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.5329, allocations: 3.938 kB / 479 MB, free: 9.52 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003058/0.5359, allocations: 2.881 MB / 481.9 MB, free: 6.57 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005835/0.5365, allocations: 305.6 kB / 482.2 MB, free: 6.25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000248/0.5368, allocations: 36.8 kB / 482.2 MB, free: 6.215 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008525/0.5377, allocations: 35.97 kB / 482.2 MB, free: 6.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001266/0.5378, allocations: 60.77 kB / 482.3 MB, free: 6.121 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.274e-05/0.5379, allocations: 31.98 kB / 482.3 MB, free: 6.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00242/0.5403, allocations: 1.825 MB / 484.1 MB, free: 4.262 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.5403, allocations: 4 kB / 484.2 MB, free: 4.258 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003435/0.5438, allocations: 0.8287 MB / 485 MB, free: 3.434 MB / 366.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003054/0.5441, allocations: 165.7 kB / 485.1 MB, free: 3.27 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004714/0.5488, allocations: 3.582 MB / 488.7 MB, free: 15.72 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.146e-05/0.5488, allocations: 4.938 kB / 488.7 MB, free: 15.71 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008334/0.5497, allocations: 0.7148 MB / 489.4 MB, free: 15 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001023/0.5507, allocations: 234.9 kB / 489.7 MB, free: 14.77 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01131/0.562, allocations: 8.465 MB / 498.1 MB, free: 6.266 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002438/0.5645, allocations: 2.445 MB / 0.4888 GB, free: 3.789 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.004058/0.5686, allocations: 1.643 MB / 0.4905 GB, free: 2.141 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004523/0.569, allocations: 187.4 kB / 0.4906 GB, free: 1.957 MB / 382.1 MB Notification: Performance of SimCode: time 1.953e-06/0.569, allocations: 0 / 0.4906 GB, free: 1.957 MB / 382.1 MB Notification: Performance of Templates: time 0.03785/0.6069, allocations: 20.11 MB / 0.5103 GB, free: 13.89 MB / 414.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches