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.0013/0.0013, allocations: 107.3 kB / 18.35 MB, free: 4.762 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.001379/0.001379, allocations: 192 kB / 19.29 MB, free: 3.832 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.384/1.384, allocations: 205.1 MB / 225.2 MB, free: 12.27 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.001197/0.001198, allocations: 55.92 kB / 282.1 MB, free: 2.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07783/0.07904, allocations: 46.62 MB / 328.7 MB, free: 3.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.008421/0.08749, allocations: 7.957 MB / 336.7 MB, free: 11.78 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00459/0.0921, allocations: 2.56 MB / 339.3 MB, free: 9.215 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005837/0.09271, allocations: 35.94 kB / 339.3 MB, free: 9.18 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002448/0.0952, allocations: 1.421 MB / 340.7 MB, free: 7.754 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002004/0.09722, allocations: 0.9878 MB / 341.7 MB, free: 6.762 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000614/0.09785, allocations: 263.5 kB / 342 MB, free: 6.504 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00239/0.1002, allocations: 2.185 MB / 344.1 MB, free: 4.312 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001549/0.1018, allocations: 1.552 MB / 345.7 MB, free: 2.742 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008748/0.1027, allocations: 0.8406 MB / 346.5 MB, free: 1.898 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001297/0.104, allocations: 1.191 MB / 347.7 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002551/0.1043, allocations: 160 kB / 347.9 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001135/0.1054, allocations: 0.6552 MB / 348.5 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009116/0.1063, allocations: 1.169 MB / 349.7 MB, free: 14.72 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001046/0.1074, allocations: 1.37 MB / 351.1 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003582/0.111, allocations: 4.308 MB / 355.4 MB, free: 9.016 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.111, allocations: 4 kB / 355.4 MB, free: 9.012 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.111, allocations: 0 / 355.4 MB, free: 9.012 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.494e-05/0.1111, allocations: 0 / 355.4 MB, free: 9.012 MB / 302.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.003884/0.115, allocations: 2.949 MB / 358.3 MB, free: 6 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.115, allocations: 16.03 kB / 358.3 MB, free: 5.984 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006186/0.1212, allocations: 1.771 MB / 360.1 MB, free: 4.207 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002291/0.1235, allocations: 1.173 MB / 361.3 MB, free: 2.988 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001022/0.1236, allocations: 143.8 kB / 361.4 MB, free: 2.848 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003488/0.124, allocations: 215.8 kB / 361.6 MB, free: 2.637 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01676/0.1408, allocations: 8.592 MB / 370.2 MB, free: 9.441 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000103/0.1409, allocations: 47.58 kB / 370.3 MB, free: 9.395 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002491/0.1412, allocations: 95.89 kB / 370.4 MB, free: 9.301 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002759/0.1439, allocations: 1.667 MB / 372 MB, free: 7.629 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01768/0.1616, allocations: 7.175 MB / 379.2 MB, free: 460 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1895/0.3512, allocations: 30.08 MB / 409.3 MB, free: 26.77 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02068/0.3719, allocations: 5.038 MB / 414.3 MB, free: 24.17 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001376/0.3733, allocations: 1.245 MB / 415.6 MB, free: 23.58 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004973/0.3783, allocations: 3.748 MB / 419.3 MB, free: 20.75 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.268e-05/0.3784, allocations: 46.48 kB / 419.4 MB, free: 20.7 MB / 318.1 MB Notification: Performance of pre-optimization done (n=111): time 3.216e-06/0.3784, allocations: 0 / 419.4 MB, free: 20.7 MB / 318.1 MB Notification: Performance of matching and sorting (n=111): time 0.04034/0.4187, allocations: 9.255 MB / 428.6 MB, free: 11.95 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.09e-05/0.4188, allocations: 199.9 kB / 428.8 MB, free: 11.71 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003716/0.4225, allocations: 3.043 MB / 431.9 MB, free: 8.648 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002465/0.4228, allocations: 37.7 kB / 431.9 MB, free: 8.605 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001391/0.4242, allocations: 2.419 MB / 434.3 MB, free: 6.191 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005418/0.4248, allocations: 0.4938 MB / 434.8 MB, free: 5.699 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00113/0.4259, allocations: 1.086 MB / 435.9 MB, free: 4.605 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.102e-05/0.4259, allocations: 306.2 kB / 436.2 MB, free: 4.305 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001696/0.4277, allocations: 1.603 MB / 437.8 MB, free: 2.695 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00471/0.4324, allocations: 5.165 MB / 443 MB, free: 11.73 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008342/0.4407, allocations: 7.341 MB / 450.3 MB, free: 2.602 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001069/0.4409, allocations: 36 kB / 450.3 MB, free: 2.566 MB / 334.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01236/0.4533, allocations: 6.427 MB / 456.8 MB, free: 12.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.943e-05/0.4534, allocations: 68 kB / 456.8 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001237/0.4535, allocations: 128 kB / 457 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001792/0.4537, allocations: 165.1 kB / 457.1 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00492/0.4586, allocations: 1.462 MB / 458.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001933/0.4588, allocations: 247 kB / 458.8 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003903/0.4628, allocations: 0.7421 MB / 459.6 MB, free: 9.328 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005218/0.4633, allocations: 344 kB / 459.9 MB, free: 8.992 MB / 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002164/0.4655, allocations: 1.579 MB / 461.5 MB, free: 7.406 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004542/0.4659, allocations: 260.7 kB / 461.7 MB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00127/0.4672, allocations: 0.8291 MB / 462.6 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-05/0.4672, allocations: 16 kB / 462.6 MB, free: 6.297 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.678e-06/0.4673, allocations: 0.5625 kB / 462.6 MB, free: 6.297 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.133e-05/0.4673, allocations: 7.984 kB / 462.6 MB, free: 6.289 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005787/0.4731, allocations: 3.388 MB / 466 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.047e-06/0.4731, allocations: 4 kB / 466 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002385/0.4755, allocations: 412.2 kB / 466.4 MB, free: 2.457 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.083e-05/0.4755, allocations: 4 kB / 466.4 MB, free: 2.453 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.811e-05/0.4756, allocations: 39.91 kB / 466.4 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.454e-06/0.4756, allocations: 4 kB / 466.4 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.4756, allocations: 0 / 466.4 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003298/0.479, allocations: 2.791 MB / 469.2 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005389/0.4795, allocations: 303.6 kB / 469.5 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002411/0.4798, allocations: 27.98 kB / 469.6 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008997/0.4807, allocations: 43.95 kB / 469.6 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000138/0.4808, allocations: 63.8 kB / 469.7 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001341/0.481, allocations: 37.94 kB / 469.7 MB, free: 15.11 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002645/0.4836, allocations: 1.841 MB / 471.5 MB, free: 13.27 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4836, allocations: 0 / 471.5 MB, free: 13.27 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003843/0.4875, allocations: 0.8249 MB / 472.4 MB, free: 12.45 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 (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.0003402/0.4878, allocations: 171 kB / 472.5 MB, free: 12.28 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004934/0.4928, allocations: 3.615 MB / 476.1 MB, free: 8.691 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.4928, allocations: 0 / 476.1 MB, free: 8.691 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008893/0.4937, allocations: 0.7156 MB / 476.9 MB, free: 7.977 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00143/0.4951, allocations: 264.5 kB / 477.1 MB, free: 7.73 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00975/0.5049, allocations: 7.063 MB / 484.2 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002282/0.5072, allocations: 2.391 MB / 486.6 MB, free: 14.22 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003572/0.5108, allocations: 1.633 MB / 488.2 MB, free: 12.58 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004401/0.5112, allocations: 183.4 kB / 488.4 MB, free: 12.4 MB / 382.1 MB Notification: Performance of SimCode: time 1.112e-06/0.5112, allocations: 0 / 488.4 MB, free: 12.4 MB / 382.1 MB Notification: Performance of Templates: time 0.0392/0.5504, allocations: 17.06 MB / 0.4936 GB, free: 11.35 MB / 398.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile (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 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches