Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001283/0.001283, allocations: 118.6 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001351/0.001351, allocations: 211.7 kB / 19.41 MB, free: 3.668 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.407/1.407, allocations: 227.6 MB / 247.8 MB, free: 10.23 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001968/0.001968, allocations: 63.91 kB / 359.7 MB, free: 12.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2324/0.2344, allocations: 50.55 MB / 410.2 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.009479/0.2438, allocations: 7.961 MB / 418.2 MB, free: 9.457 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004955/0.2488, allocations: 2.559 MB / 420.7 MB, free: 6.891 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006225/0.2494, allocations: 39.88 kB / 420.8 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002737/0.2522, allocations: 1.452 MB / 422.2 MB, free: 5.395 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002126/0.2543, allocations: 1.019 MB / 423.3 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006083/0.2549, allocations: 267.4 kB / 423.5 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00261/0.2575, allocations: 2.153 MB / 425.7 MB, free: 1.953 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001576/0.2591, allocations: 1.337 MB / 427 MB, free: 0.582 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009882/0.2601, allocations: 0.8328 MB / 427.8 MB, free: 15.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001426/0.2615, allocations: 1.183 MB / 429 MB, free: 14.56 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002746/0.2618, allocations: 160 kB / 429.2 MB, free: 14.4 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001159/0.2629, allocations: 0.6709 MB / 429.8 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001047/0.264, allocations: 1.18 MB / 431 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001249/0.2652, allocations: 1.359 MB / 432.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004469/0.2697, allocations: 4.286 MB / 436.7 MB, free: 6.879 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.2697, allocations: 0 / 436.7 MB, free: 6.879 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2697, allocations: 0 / 436.7 MB, free: 6.879 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.802e-05/0.2697, allocations: 0 / 436.7 MB, free: 6.879 MB / 350.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.004507/0.2743, allocations: 3.01 MB / 439.7 MB, free: 3.801 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.2743, allocations: 8.031 kB / 439.7 MB, free: 3.793 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006998/0.2813, allocations: 1.8 MB / 441.5 MB, free: 1.988 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002214/0.2835, allocations: 1.162 MB / 442.7 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001194/0.2836, allocations: 151.8 kB / 442.8 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003881/0.284, allocations: 207.8 kB / 443 MB, free: 444 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01808/0.3021, allocations: 8.615 MB / 451.6 MB, free: 7.211 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-05/0.3022, allocations: 39.7 kB / 451.7 MB, free: 7.172 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002714/0.3025, allocations: 103.9 kB / 451.8 MB, free: 7.07 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003064/0.3055, allocations: 1.667 MB / 453.4 MB, free: 5.406 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01787/0.3234, allocations: 7.186 MB / 460.6 MB, free: 14.22 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03614/0.3595, allocations: 30.14 MB / 490.8 MB, free: 15.19 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02274/0.3823, allocations: 4.99 MB / 495.7 MB, free: 10.02 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001771/0.384, allocations: 1.197 MB / 496.9 MB, free: 8.805 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005868/0.3899, allocations: 3.834 MB / 0.489 GB, free: 4.809 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.288e-05/0.3899, allocations: 46.83 kB / 0.4891 GB, free: 4.754 MB / 414.1 MB Notification: Performance of pre-optimization done (n=111): time 2.605e-06/0.39, allocations: 4 kB / 0.4891 GB, free: 4.75 MB / 414.1 MB Notification: Performance of matching and sorting (n=111): time 0.04765/0.4376, allocations: 9.293 MB / 0.4982 GB, free: 11.37 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001308/0.4377, allocations: 195.8 kB / 0.4983 GB, free: 11.14 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004357/0.4421, allocations: 3.039 MB / 0.5013 GB, free: 8.078 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000181/0.4423, allocations: 45.7 kB / 0.5014 GB, free: 8.027 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001993/0.4443, allocations: 2.535 MB / 0.5038 GB, free: 5.465 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005701/0.4448, allocations: 0.508 MB / 0.5043 GB, free: 4.953 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001328/0.4462, allocations: 1.099 MB / 0.5054 GB, free: 3.844 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.4463, allocations: 305.1 kB / 0.5057 GB, free: 3.543 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002417/0.4487, allocations: 1.603 MB / 0.5073 GB, free: 1.934 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005687/0.4544, allocations: 5.177 MB / 0.5123 GB, free: 10.95 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008997/0.4634, allocations: 7.33 MB / 0.5195 GB, free: 1.84 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-05/0.4635, allocations: 36 kB / 0.5195 GB, free: 1.805 MB / 446.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.009971/0.4734, allocations: 6.458 MB / 0.5258 GB, free: 11.34 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.925e-05/0.4735, allocations: 60 kB / 0.5259 GB, free: 11.29 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001259/0.4736, allocations: 128.5 kB / 0.526 GB, free: 11.16 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001642/0.4738, allocations: 168 kB / 0.5262 GB, free: 11 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004728/0.4785, allocations: 1.462 MB / 0.5276 GB, free: 9.531 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002041/0.4787, allocations: 247 kB / 0.5278 GB, free: 9.289 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003145/0.4819, allocations: 0.7676 MB / 0.5286 GB, free: 8.52 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004031/0.4823, allocations: 344 kB / 0.5289 GB, free: 8.184 MB / 462.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.002101/0.4844, allocations: 1.579 MB / 0.5304 GB, free: 6.59 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004112/0.4848, allocations: 262.2 kB / 0.5307 GB, free: 6.332 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005412/0.4853, allocations: 311.3 kB / 0.531 GB, free: 6.027 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-05/0.4854, allocations: 23.92 kB / 0.531 GB, free: 6.004 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.957e-06/0.4854, allocations: 0 / 0.531 GB, free: 6.004 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.232e-05/0.4854, allocations: 7.984 kB / 0.531 GB, free: 5.996 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005867/0.4913, allocations: 3.4 MB / 0.5343 GB, free: 2.535 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.524e-06/0.4913, allocations: 4 kB / 0.5343 GB, free: 2.531 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002373/0.4936, allocations: 411.4 kB / 0.5347 GB, free: 2.129 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.223e-05/0.4937, allocations: 8 kB / 0.5347 GB, free: 2.121 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.753e-05/0.4937, allocations: 31.97 kB / 0.5348 GB, free: 2.09 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.935e-06/0.4938, allocations: 4 kB / 0.5348 GB, free: 2.086 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.4938, allocations: 4 kB / 0.5348 GB, free: 2.082 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2157/0.7095, allocations: 2.808 MB / 0.5375 GB, free: 123.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006268/0.7101, allocations: 316.8 kB / 0.5378 GB, free: 123.2 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000283/0.7104, allocations: 30.58 kB / 0.5378 GB, free: 123.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009042/0.7113, allocations: 49.39 kB / 0.5379 GB, free: 123.2 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001504/0.7115, allocations: 57.55 kB / 0.538 GB, free: 123.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.501e-05/0.7116, allocations: 35.86 kB / 0.538 GB, free: 123.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002571/0.7141, allocations: 1.837 MB / 0.5398 GB, free: 122.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7141, allocations: 0 / 0.5398 GB, free: 122.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003398/0.7175, allocations: 0.8285 MB / 0.5406 GB, free: 122.6 MB / 462.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.0002945/0.7178, allocations: 163.7 kB / 0.5407 GB, free: 122.5 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004213/0.722, allocations: 3.493 MB / 0.5442 GB, free: 121.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.722, allocations: 2 kB / 0.5442 GB, free: 121.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007034/0.7227, allocations: 0.6853 MB / 0.5448 GB, free: 121.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001404/0.7241, allocations: 250.7 kB / 0.5451 GB, free: 121.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008232/0.7324, allocations: 7.165 MB / 0.5521 GB, free: 117.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001773/0.7341, allocations: 2.384 MB / 0.5544 GB, free: 115.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002846/0.737, allocations: 1.629 MB / 0.556 GB, free: 114.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003477/0.7373, allocations: 186 kB / 0.5562 GB, free: 114.8 MB / 462.1 MB Notification: Performance of SimCode: time 1.072e-06/0.7373, allocations: 0 / 0.5562 GB, free: 114.8 MB / 462.1 MB Notification: Performance of Templates: time 0.03291/0.7703, allocations: 18.81 MB / 0.5745 GB, free: 96.7 MB / 462.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches