Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0025/0.002505, allocations: 188.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.466/3.466, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0017/0.0017, allocations: 98.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006518/0.0006519, allocations: 15.98 kB / 327 MB, free: 15.1 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1511/0.1518, allocations: 47.58 MB / 374.5 MB, free: 15.43 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.516/0.6678, allocations: 24.74 MB / 399.3 MB, free: 8.281 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.03387/0.7018, allocations: 5.914 MB / 405.2 MB, free: 5.539 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009747/0.7116, allocations: 117.2 kB / 405.3 MB, free: 5.52 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007801/0.7195, allocations: 1.2 MB / 406.5 MB, free: 5.16 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02419/0.7437, allocations: 3.511 MB / 410 MB, free: 3.77 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002942/0.7467, allocations: 196.5 kB / 410.2 MB, free: 3.629 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.006063/0.7528, allocations: 1.276 MB / 411.5 MB, free: 2.852 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007004/0.7599, allocations: 1.878 MB / 413.4 MB, free: 1.703 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002782/0.7628, allocations: 0.6019 MB / 414 MB, free: 1.395 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003366/0.7662, allocations: 0.8416 MB / 414.8 MB, free: 0.9492 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001127/0.7674, allocations: 86.62 kB / 414.9 MB, free: 0.9492 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003457/0.7709, allocations: 0.5121 MB / 415.4 MB, free: 0.7227 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002962/0.774, allocations: 1.003 MB / 416.4 MB, free: 228 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002171/0.7762, allocations: 0.5603 MB / 417 MB, free: 15.82 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009615/0.7859, allocations: 3.24 MB / 420.2 MB, free: 13.67 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.786, allocations: 0 / 420.2 MB, free: 13.67 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.719e-06/0.786, allocations: 0 / 420.2 MB, free: 13.67 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.000219/0.7863, allocations: 4 kB / 420.2 MB, free: 13.67 MB / 298.7 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.01199/0.7983, allocations: 2.453 MB / 422.7 MB, free: 11.84 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.37e-05/0.7984, allocations: 7.25 kB / 422.7 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02743/0.8258, allocations: 2.115 MB / 424.8 MB, free: 10.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006497/0.8324, allocations: 1.13 MB / 425.9 MB, free: 8.84 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003842/0.8329, allocations: 155.8 kB / 426.1 MB, free: 8.688 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001875/0.8348, allocations: 203.8 kB / 426.3 MB, free: 8.488 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06019/0.895, allocations: 8.663 MB / 434.9 MB, free: 15.23 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003032/0.8954, allocations: 39.62 kB / 435 MB, free: 15.19 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001374/0.8968, allocations: 107.9 kB / 435.1 MB, free: 15.08 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01072/0.9076, allocations: 1.663 MB / 436.8 MB, free: 13.42 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06403/0.9717, allocations: 7.225 MB / 444 MB, free: 6.188 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09551/1.067, allocations: 30.21 MB / 474.2 MB, free: 7.09 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.07097/1.138, allocations: 5.121 MB / 479.3 MB, free: 1.793 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0146/1.153, allocations: 3.761 MB / 483.1 MB, free: 13.88 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.961e-05/1.153, allocations: 46.83 kB / 483.1 MB, free: 13.83 MB / 362.7 MB Notification: Performance of pre-optimization done (n=111): time 7.484e-06/1.153, allocations: 4 kB / 483.1 MB, free: 13.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=111): time 0.1413/1.295, allocations: 9.655 MB / 492.8 MB, free: 4.027 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001868/1.295, allocations: 195.9 kB / 493 MB, free: 3.793 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01176/1.307, allocations: 3.023 MB / 496 MB, free: 0.75 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003567/1.307, allocations: 37.7 kB / 496 MB, free: 0.707 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004305/1.311, allocations: 2.436 MB / 498.5 MB, free: 14.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001415/1.313, allocations: 0.4912 MB / 499 MB, free: 13.74 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001068/1.314, allocations: 108 kB / 499.1 MB, free: 13.63 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.003654/1.318, allocations: 0.5381 MB / 499.6 MB, free: 13.09 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009152/1.327, allocations: 1.576 MB / 0.4894 GB, free: 11.5 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01269/1.34, allocations: 5.126 MB / 0.4944 GB, free: 4.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01148/1.351, allocations: 2.807 MB / 0.4972 GB, free: 1.762 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002214/1.352, allocations: 36 kB / 0.4972 GB, free: 1.727 MB / 378.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.02918/1.381, allocations: 6.348 MB / 0.5034 GB, free: 11.38 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002169/1.381, allocations: 64.06 kB / 0.5035 GB, free: 11.31 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004085/1.382, allocations: 128 kB / 0.5036 GB, free: 11.19 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004269/1.382, allocations: 184 kB / 0.5038 GB, free: 11.01 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01554/1.398, allocations: 1.458 MB / 0.5052 GB, free: 9.547 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005757/1.398, allocations: 247 kB / 0.5054 GB, free: 9.305 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01029/1.409, allocations: 0.746 MB / 0.5062 GB, free: 8.551 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001919/1.411, allocations: 344 kB / 0.5065 GB, free: 8.215 MB / 394.7 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.007177/1.418, allocations: 1.575 MB / 0.508 GB, free: 6.625 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001143/1.419, allocations: 244.8 kB / 0.5083 GB, free: 6.383 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003718/1.423, allocations: 0.8288 MB / 0.5091 GB, free: 5.547 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001035/1.423, allocations: 15.95 kB / 0.5091 GB, free: 5.531 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.386e-05/1.423, allocations: 4 kB / 0.5091 GB, free: 5.527 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.77e-05/1.423, allocations: 3.984 kB / 0.5091 GB, free: 5.523 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01776/1.441, allocations: 3.403 MB / 0.5124 GB, free: 2.059 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.364e-05/1.441, allocations: 0 / 0.5124 GB, free: 2.059 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007401/1.448, allocations: 411.5 kB / 0.5128 GB, free: 1.656 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.862e-05/1.448, allocations: 4 kB / 0.5128 GB, free: 1.652 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004514/1.449, allocations: 35.97 kB / 0.5128 GB, free: 1.617 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.023e-05/1.449, allocations: 4 kB / 0.5128 GB, free: 1.613 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-06/1.449, allocations: 4.375 kB / 0.5128 GB, free: 1.609 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009928/1.459, allocations: 2.877 MB / 0.5157 GB, free: 14.66 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001557/1.461, allocations: 313.5 kB / 0.516 GB, free: 14.33 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001307/1.462, allocations: 35.94 kB / 0.516 GB, free: 14.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003268/1.465, allocations: 39.95 kB / 0.516 GB, free: 14.25 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005725/1.466, allocations: 55.86 kB / 0.5161 GB, free: 14.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002571/1.466, allocations: 43.97 kB / 0.5161 GB, free: 14.16 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.007877/1.474, allocations: 1.825 MB / 0.5179 GB, free: 12.33 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.974e-06/1.474, allocations: 3.938 kB / 0.5179 GB, free: 12.32 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01029/1.484, allocations: 0.8261 MB / 0.5187 GB, free: 11.5 MB / 410.7 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.0009606/1.486, allocations: 171.1 kB / 0.5189 GB, free: 11.32 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01427/1.5, allocations: 3.573 MB / 0.5224 GB, free: 7.777 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.355e-05/1.5, allocations: 0 / 0.5224 GB, free: 7.777 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002737/1.503, allocations: 0.7125 MB / 0.5231 GB, free: 7.066 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00344/1.506, allocations: 241.2 kB / 0.5233 GB, free: 6.832 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03494/1.541, allocations: 8.773 MB / 0.5319 GB, free: 14 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00844/1.55, allocations: 2.461 MB / 0.5343 GB, free: 11.51 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001871/1.552, allocations: 231.4 kB / 0.5345 GB, free: 11.28 MB / 426.7 MB Notification: Performance of SimCode: time 2.575e-06/1.552, allocations: 0 / 0.5345 GB, free: 11.28 MB / 426.7 MB Notification: Performance of Templates: time 0.5875/2.139, allocations: 39.47 MB / 0.573 GB, free: 131.8 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches