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.001201/0.001201, allocations: 112 kB / 18.37 MB, free: 4.73 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.001109/0.001109, allocations: 184.5 kB / 19.29 MB, free: 3.812 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.343/1.343, allocations: 205.1 MB / 225.2 MB, free: 12.26 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.001207/0.001207, allocations: 55.92 kB / 329.2 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09441/0.09562, allocations: 46.62 MB / 375.8 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.2075/0.3032, allocations: 7.954 MB / 383.7 MB, free: 9.086 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005653/0.3089, allocations: 2.554 MB / 386.3 MB, free: 7.996 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001493/0.3104, allocations: 35.22 kB / 386.3 MB, free: 7.992 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003175/0.3136, allocations: 1.43 MB / 387.8 MB, free: 7.375 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003252/0.3169, allocations: 0.9821 MB / 388.7 MB, free: 6.906 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009576/0.3179, allocations: 256.6 kB / 389 MB, free: 6.777 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004494/0.3224, allocations: 2.192 MB / 391.2 MB, free: 5.895 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003056/0.3255, allocations: 1.559 MB / 392.7 MB, free: 5.266 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002313/0.3278, allocations: 0.8385 MB / 393.6 MB, free: 4.906 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002559/0.3304, allocations: 1.18 MB / 394.8 MB, free: 4.453 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008332/0.3312, allocations: 160.4 kB / 394.9 MB, free: 4.453 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002184/0.3334, allocations: 0.6531 MB / 395.6 MB, free: 4.297 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001973/0.3354, allocations: 1.166 MB / 396.7 MB, free: 3.891 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002677/0.3381, allocations: 1.379 MB / 398.1 MB, free: 2.895 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005513/0.3436, allocations: 4.303 MB / 402.4 MB, free: 488 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.3437, allocations: 0 / 402.4 MB, free: 488 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3437, allocations: 0 / 402.4 MB, free: 488 kB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001333/0.3438, allocations: 0 / 402.4 MB, free: 488 kB / 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.006378/0.3502, allocations: 2.956 MB / 405.4 MB, free: 14.3 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.634e-05/0.3503, allocations: 9.156 kB / 405.4 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007348/0.3576, allocations: 1.783 MB / 407.2 MB, free: 13.36 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003161/0.3608, allocations: 1.153 MB / 408.3 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001515/0.361, allocations: 158.9 kB / 408.5 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006579/0.3617, allocations: 201 kB / 408.7 MB, free: 12.39 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02037/0.382, allocations: 8.596 MB / 417.3 MB, free: 5.34 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001014/0.3822, allocations: 47.58 kB / 417.3 MB, free: 5.293 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003151/0.3825, allocations: 103.9 kB / 417.4 MB, free: 5.191 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002907/0.3854, allocations: 1.667 MB / 419.1 MB, free: 3.523 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01858/0.404, allocations: 7.171 MB / 426.2 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03838/0.4425, allocations: 30.1 MB / 456.3 MB, free: 13.37 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02239/0.4649, allocations: 5.04 MB / 461.4 MB, free: 8.148 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001876/0.4668, allocations: 1.248 MB / 462.6 MB, free: 6.879 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00602/0.4729, allocations: 3.742 MB / 466.4 MB, free: 2.988 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.371e-05/0.4729, allocations: 54.89 kB / 466.4 MB, free: 2.926 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 4.449e-06/0.473, allocations: 0 / 466.4 MB, free: 2.926 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.04694/0.5199, allocations: 9.264 MB / 475.7 MB, free: 9.574 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001044/0.52, allocations: 195.9 kB / 475.9 MB, free: 9.34 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004902/0.525, allocations: 3.039 MB / 478.9 MB, free: 6.281 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002899/0.5253, allocations: 41.7 kB / 479 MB, free: 6.234 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001864/0.5272, allocations: 2.418 MB / 481.4 MB, free: 3.777 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006593/0.5278, allocations: 0.494 MB / 481.9 MB, free: 3.277 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001372/0.5292, allocations: 1.095 MB / 483 MB, free: 2.172 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.5293, allocations: 301.1 kB / 483.3 MB, free: 1.875 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002364/0.5317, allocations: 1.599 MB / 484.9 MB, free: 276 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004893/0.5366, allocations: 5.173 MB / 490 MB, free: 9.293 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008536/0.5452, allocations: 7.327 MB / 497.4 MB, free: 184 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000114/0.5453, allocations: 36 kB / 497.4 MB, free: 148 kB / 414.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01297/0.5583, allocations: 6.435 MB / 0.492 GB, free: 9.703 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001015/0.5585, allocations: 60.19 kB / 0.4921 GB, free: 9.645 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001744/0.5586, allocations: 132 kB / 0.4922 GB, free: 9.516 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001691/0.5588, allocations: 168 kB / 0.4924 GB, free: 9.352 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005148/0.564, allocations: 1.451 MB / 0.4938 GB, free: 7.898 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000207/0.5642, allocations: 251 kB / 0.494 GB, free: 7.652 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004662/0.5689, allocations: 0.7537 MB / 0.4948 GB, free: 6.891 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001183/0.5701, allocations: 344 kB / 0.4951 GB, free: 6.555 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.004056/0.5742, allocations: 1.579 MB / 0.4966 GB, free: 4.965 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000772/0.5749, allocations: 244.8 kB / 0.4969 GB, free: 4.723 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001947/0.5769, allocations: 0.8349 MB / 0.4977 GB, free: 3.879 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.504e-05/0.577, allocations: 12 kB / 0.4977 GB, free: 3.867 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.752e-05/0.577, allocations: 7.938 kB / 0.4977 GB, free: 3.859 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.756e-05/0.577, allocations: 3.984 kB / 0.4977 GB, free: 3.855 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008291/0.5853, allocations: 3.396 MB / 0.501 GB, free: 408 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.466e-05/0.5854, allocations: 0 / 0.501 GB, free: 408 kB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002451/0.5878, allocations: 407.7 kB / 0.5014 GB, free: 16 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-05/0.5879, allocations: 11.94 kB / 0.5014 GB, free: 15.98 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001719/0.5881, allocations: 31.97 kB / 0.5014 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.307e-05/0.5881, allocations: 7.938 kB / 0.5015 GB, free: 15.95 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/0.5881, allocations: 4 kB / 0.5015 GB, free: 15.94 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003751/0.5918, allocations: 2.773 MB / 0.5042 GB, free: 13.14 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008946/0.5928, allocations: 309.6 kB / 0.5045 GB, free: 12.82 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005742/0.5934, allocations: 35.97 kB / 0.5045 GB, free: 12.78 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00129/0.5947, allocations: 31.97 kB / 0.5045 GB, free: 12.75 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001499/0.5948, allocations: 63.91 kB / 0.5046 GB, free: 12.69 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.112e-05/0.5949, allocations: 31.98 kB / 0.5046 GB, free: 12.66 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003519/0.5985, allocations: 1.841 MB / 0.5064 GB, free: 10.81 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.653e-06/0.5985, allocations: 0 / 0.5064 GB, free: 10.81 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004891/0.6034, allocations: 0.8299 MB / 0.5072 GB, free: 9.98 MB / 446.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.0005324/0.6039, allocations: 175.6 kB / 0.5074 GB, free: 9.801 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005993/0.6099, allocations: 3.613 MB / 0.5109 GB, free: 6.215 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.878e-06/0.61, allocations: 0 / 0.5109 GB, free: 6.215 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001022/0.611, allocations: 0.7103 MB / 0.5116 GB, free: 5.504 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002412/0.6134, allocations: 266.2 kB / 0.5119 GB, free: 5.25 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01461/0.6281, allocations: 7.395 MB / 0.5191 GB, free: 13.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003759/0.6319, allocations: 2.387 MB / 0.5214 GB, free: 11.39 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008396/0.6328, allocations: 235.4 kB / 0.5216 GB, free: 11.16 MB / 462.1 MB Notification: Performance of SimCode: time 2.715e-06/0.6328, allocations: 0 / 0.5216 GB, free: 11.16 MB / 462.1 MB Notification: Performance of Templates: time 0.2544/0.8872, allocations: 40.6 MB / 0.5613 GB, free: 138.4 MB / 478.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