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.001444/0.001444, allocations: 106.2 kB / 18.24 MB, free: 4.766 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.001649/0.001649, allocations: 195.3 kB / 19.18 MB, free: 3.836 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.399/1.399, allocations: 205.1 MB / 225 MB, free: 12.32 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.001412/0.001412, allocations: 55.86 kB / 281.3 MB, free: 3.184 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09014/0.09157, allocations: 46.64 MB / 328 MB, free: 4.477 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.009603/0.1012, allocations: 7.955 MB / 335.9 MB, free: 12.47 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005363/0.1066, allocations: 2.552 MB / 338.5 MB, free: 9.91 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001256/0.1079, allocations: 35.94 kB / 338.5 MB, free: 9.875 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003144/0.1111, allocations: 1.425 MB / 339.9 MB, free: 8.445 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002745/0.1139, allocations: 0.98 MB / 340.9 MB, free: 7.461 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008926/0.1148, allocations: 267.4 kB / 341.2 MB, free: 7.199 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003239/0.1181, allocations: 2.181 MB / 343.3 MB, free: 5.012 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002259/0.1204, allocations: 1.564 MB / 344.9 MB, free: 3.43 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001599/0.122, allocations: 0.8406 MB / 345.8 MB, free: 2.586 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001965/0.124, allocations: 1.187 MB / 346.9 MB, free: 1.395 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006295/0.1246, allocations: 160 kB / 347.1 MB, free: 1.238 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001756/0.1264, allocations: 0.6513 MB / 347.7 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001443/0.1279, allocations: 1.177 MB / 348.9 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00218/0.13, allocations: 1.366 MB / 350.3 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004741/0.1348, allocations: 4.119 MB / 354.4 MB, free: 9.898 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.1348, allocations: 0 / 354.4 MB, free: 9.898 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.1349, allocations: 0 / 354.4 MB, free: 9.898 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.608e-05/0.135, allocations: 0 / 354.4 MB, free: 9.898 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.00527/0.1402, allocations: 2.957 MB / 357.4 MB, free: 6.879 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.826e-05/0.1403, allocations: 12.03 kB / 357.4 MB, free: 6.867 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007162/0.1475, allocations: 1.775 MB / 359.2 MB, free: 5.086 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002775/0.1503, allocations: 1.162 MB / 360.3 MB, free: 3.879 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001399/0.1505, allocations: 143.8 kB / 360.5 MB, free: 3.738 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005629/0.151, allocations: 207.8 kB / 360.7 MB, free: 3.535 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01916/0.1702, allocations: 8.596 MB / 369.3 MB, free: 10.34 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000101/0.1703, allocations: 39.66 kB / 369.3 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002959/0.1707, allocations: 103.9 kB / 369.4 MB, free: 10.2 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002911/0.1736, allocations: 1.671 MB / 371.1 MB, free: 8.52 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01831/0.1919, allocations: 7.167 MB / 378.2 MB, free: 1.348 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1975/0.3894, allocations: 30.17 MB / 408.4 MB, free: 27.33 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02143/0.4109, allocations: 5.046 MB / 413.4 MB, free: 24.88 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001374/0.4123, allocations: 1.247 MB / 414.7 MB, free: 24.29 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004516/0.4168, allocations: 3.742 MB / 418.4 MB, free: 21.46 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.728e-05/0.4169, allocations: 53.52 kB / 418.5 MB, free: 21.41 MB / 318.1 MB Notification: Performance of pre-optimization done (n=111): time 3.878e-06/0.4169, allocations: 0 / 418.5 MB, free: 21.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=111): time 0.04435/0.4613, allocations: 9.267 MB / 427.8 MB, free: 12.8 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.12e-05/0.4614, allocations: 191.9 kB / 427.9 MB, free: 12.57 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003339/0.4647, allocations: 3.039 MB / 431 MB, free: 9.512 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000154/0.4649, allocations: 41.7 kB / 431 MB, free: 9.465 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009555/0.4658, allocations: 2.416 MB / 433.4 MB, free: 7.055 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000337/0.4662, allocations: 0.4973 MB / 433.9 MB, free: 6.559 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000955/0.4671, allocations: 1.102 MB / 435 MB, free: 5.449 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.406e-05/0.4672, allocations: 301.1 kB / 435.3 MB, free: 5.152 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001747/0.469, allocations: 1.596 MB / 436.9 MB, free: 3.551 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003572/0.4725, allocations: 5.169 MB / 442.1 MB, free: 12.58 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007859/0.4804, allocations: 7.329 MB / 449.4 MB, free: 3.465 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.395e-05/0.4805, allocations: 36 kB / 449.5 MB, free: 3.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01051/0.4911, allocations: 6.438 MB / 455.9 MB, free: 12.99 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001092/0.4912, allocations: 59.94 kB / 456 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001837/0.4914, allocations: 135.4 kB / 456.1 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001901/0.4916, allocations: 168 kB / 456.2 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004951/0.4966, allocations: 1.45 MB / 457.7 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002449/0.4968, allocations: 247.1 kB / 457.9 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003681/0.5005, allocations: 0.758 MB / 458.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005407/0.5011, allocations: 340 kB / 459 MB, free: 9.844 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.002325/0.5034, allocations: 1.571 MB / 460.6 MB, free: 8.262 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005312/0.504, allocations: 248.8 kB / 460.8 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001422/0.5054, allocations: 0.8369 MB / 461.7 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.219e-05/0.5054, allocations: 19.52 kB / 461.7 MB, free: 7.156 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.25e-05/0.5055, allocations: 4 kB / 461.7 MB, free: 7.152 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.29e-05/0.5055, allocations: 3.984 kB / 461.7 MB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006859/0.5123, allocations: 3.39 MB / 465.1 MB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.229e-05/0.5124, allocations: 0 / 465.1 MB, free: 3.715 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0024/0.5148, allocations: 407.5 kB / 465.5 MB, free: 3.316 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.81e-05/0.5148, allocations: 8 kB / 465.5 MB, free: 3.309 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001318/0.515, allocations: 38 kB / 465.5 MB, free: 3.273 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.117e-06/0.515, allocations: 4 kB / 465.5 MB, free: 3.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.493e-06/0.515, allocations: 7.938 kB / 465.6 MB, free: 3.262 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003404/0.5184, allocations: 2.784 MB / 468.3 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006501/0.5191, allocations: 305.5 kB / 468.6 MB, free: 144 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004933/0.5196, allocations: 27.98 kB / 468.7 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001172/0.5208, allocations: 35.97 kB / 468.7 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001475/0.5209, allocations: 61.8 kB / 468.8 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001193/0.5211, allocations: 35.98 kB / 468.8 MB, free: 15.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003342/0.5244, allocations: 1.841 MB / 470.6 MB, free: 14.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5244, allocations: 4 kB / 470.6 MB, free: 14.13 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00444/0.5289, allocations: 0.8313 MB / 471.5 MB, free: 13.3 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.0004849/0.5294, allocations: 162.4 kB / 471.6 MB, free: 13.14 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.006254/0.5357, allocations: 3.803 MB / 475.4 MB, free: 9.379 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.549e-05/0.5357, allocations: 0 / 475.4 MB, free: 9.379 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001035/0.5368, allocations: 0.7143 MB / 476.1 MB, free: 8.664 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002385/0.5392, allocations: 268.2 kB / 476.4 MB, free: 8.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0139/0.5531, allocations: 7.471 MB / 483.9 MB, free: 0.9023 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003484/0.5566, allocations: 2.391 MB / 486.3 MB, free: 14.48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008474/0.5575, allocations: 239.4 kB / 486.5 MB, free: 14.25 MB / 382.1 MB Notification: Performance of SimCode: time 1.784e-06/0.5575, allocations: 0 / 486.5 MB, free: 14.25 MB / 382.1 MB Notification: Performance of Templates: time 0.06265/0.6202, allocations: 40.59 MB / 0.5147 GB, free: 5.562 MB / 414.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 -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