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/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_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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001482/0.001483, allocations: 186.7 kB / 8.476 MB, free: 1.711 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.231/1.231, allocations: 205.2 MB / 214.1 MB, free: 5.066 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008671/0.0008671, allocations: 82.31 kB / 262.1 MB, free: 5.105 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.083e-06/7.103e-06, allocations: 0 / 315 MB, free: 41.39 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08196/0.08199, allocations: 47.58 MB / 362.5 MB, free: 9.848 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2801/0.3621, allocations: 87.63 MB / 450.2 MB, free: 9.676 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002412/0.3624, allocations: 81.8 kB / 450.3 MB, free: 9.664 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.1249/0.4873, allocations: 50.82 MB / 0.4893 GB, free: 8.914 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.335e-05/0.4874, allocations: 56 kB / 0.4894 GB, free: 8.859 MB / 346.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.004903/0.4923, allocations: 2.451 MB / 0.4918 GB, free: 6.352 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.785e-05/0.4924, allocations: 8.031 kB / 0.4918 GB, free: 6.344 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006951/0.4993, allocations: 1.466 MB / 0.4932 GB, free: 4.871 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003462/0.5028, allocations: 1.401 MB / 0.4946 GB, free: 3.434 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001157/0.503, allocations: 96 kB / 0.4947 GB, free: 3.34 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007839/0.5038, allocations: 195.8 kB / 0.4949 GB, free: 3.148 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006581/0.5104, allocations: 4.208 MB / 0.499 GB, free: 14.93 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01072/0.5211, allocations: 6.887 MB / 0.5057 GB, free: 7.145 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001876/0.5213, allocations: 55.52 kB / 0.5057 GB, free: 7.09 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007353/0.5221, allocations: 28 kB / 0.5058 GB, free: 7.062 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009278/0.523, allocations: 0.809 MB / 0.5066 GB, free: 6.246 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03193/0.555, allocations: 35.01 MB / 0.5408 GB, free: 2.219 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002314/0.5573, allocations: 1.679 MB / 0.5424 GB, free: 380 kB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008606/0.5582, allocations: 0.6891 MB / 0.5431 GB, free: 15.66 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003894/0.5586, allocations: 354.9 kB / 0.5434 GB, free: 15.27 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.093e-05/0.5587, allocations: 50.56 kB / 0.5434 GB, free: 15.21 MB / 410.7 MB Notification: Performance of pre-optimization done (n=119): time 4.859e-06/0.5587, allocations: 0 / 0.5434 GB, free: 15.21 MB / 410.7 MB Notification: Performance of matching and sorting (n=119): time 0.009833/0.5685, allocations: 3.232 MB / 0.5466 GB, free: 11.95 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001101/0.5687, allocations: 217.6 kB / 0.5468 GB, free: 11.69 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004153/0.5728, allocations: 2.427 MB / 0.5492 GB, free: 9.25 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001014/0.5729, allocations: 25.7 kB / 0.5492 GB, free: 9.219 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001596/0.5745, allocations: 2.397 MB / 0.5515 GB, free: 6.781 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006014/0.5752, allocations: 0.5098 MB / 0.552 GB, free: 6.266 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001578/0.5753, allocations: 4 kB / 0.5521 GB, free: 6.262 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004514/0.5758, allocations: 0.5775 MB / 0.5526 GB, free: 5.672 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002059/0.5778, allocations: 1.413 MB / 0.554 GB, free: 4.254 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004385/0.5822, allocations: 5.058 MB / 0.5589 GB, free: 13.34 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005656/0.5879, allocations: 3.394 MB / 0.5622 GB, free: 9.938 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.58e-05/0.588, allocations: 40 kB / 0.5623 GB, free: 9.898 MB / 426.7 MB Notification: Performance of matching and sorting (n=732) (initialization): time 0.01084/0.5988, allocations: 6.21 MB / 0.5684 GB, free: 3.684 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/0.5989, allocations: 8.062 kB / 0.5684 GB, free: 3.676 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001218/0.599, allocations: 132 kB / 0.5685 GB, free: 3.547 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001618/0.5992, allocations: 192 kB / 0.5687 GB, free: 3.359 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003957/0.6031, allocations: 1.411 MB / 0.57 GB, free: 1.945 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001531/0.6033, allocations: 255 kB / 0.5703 GB, free: 1.695 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003246/0.6066, allocations: 0.6212 MB / 0.5709 GB, free: 1.066 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004139/0.607, allocations: 376 kB / 0.5713 GB, free: 0.6992 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 601 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (708): * Single equations (assignments): 705 * 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.0005132/0.6075, allocations: 428.2 kB / 0.5717 GB, free: 276 kB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003724/0.6079, allocations: 232.9 kB / 0.5719 GB, free: 40 kB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.133/0.7409, allocations: 1.02 MB / 0.5729 GB, free: 161.7 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-05/0.7409, allocations: 15.44 kB / 0.5729 GB, free: 161.7 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.319e-05/0.741, allocations: 3.906 kB / 0.5729 GB, free: 161.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.14e-05/0.741, allocations: 3.188 kB / 0.5729 GB, free: 161.7 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006106/0.7471, allocations: 3.352 MB / 0.5762 GB, free: 161.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/0.7471, allocations: 0 / 0.5762 GB, free: 161.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001321/0.7485, allocations: 284.1 kB / 0.5764 GB, free: 161.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002731/0.7487, allocations: 70.31 kB / 0.5765 GB, free: 161.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.748e-05/0.7488, allocations: 32.7 kB / 0.5765 GB, free: 161.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003258/0.7521, allocations: 2.998 MB / 0.5795 GB, free: 158.9 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.7521, allocations: 3.906 kB / 0.5795 GB, free: 158.9 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004518/0.7567, allocations: 3.334 MB / 0.5827 GB, free: 158.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004897/0.7572, allocations: 291 kB / 0.583 GB, free: 158.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002898/0.7575, allocations: 17.45 kB / 0.583 GB, free: 158.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000778/0.7583, allocations: 15.52 kB / 0.583 GB, free: 158.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.7584, allocations: 67.39 kB / 0.5831 GB, free: 158.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.113e-05/0.7585, allocations: 48.98 kB / 0.5832 GB, free: 158.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.002115/0.7606, allocations: 1.571 MB / 0.5847 GB, free: 157.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003568/0.7642, allocations: 0.744 MB / 0.5854 GB, free: 157.9 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 24 (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],body2.r_0[1],body2.r_0[2],body2.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body1.r_0[1],body1.r_0[2],body1.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 87 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003572/0.7645, allocations: 170.8 kB / 0.5856 GB, free: 157.8 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003609/0.7681, allocations: 3.253 MB / 0.5888 GB, free: 157.8 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.7682, allocations: 0 / 0.5888 GB, free: 157.8 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008868/0.7691, allocations: 0.8477 MB / 0.5896 GB, free: 157.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008589/0.7699, allocations: 194 kB / 0.5898 GB, free: 157.6 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008646/0.7786, allocations: 6.134 MB / 0.5958 GB, free: 156 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002774/0.7814, allocations: 2.693 MB / 0.5984 GB, free: 155.3 MB / 426.7 MB Notification: Performance of SimCode: time 1.353e-06/0.7814, allocations: 2.516 kB / 0.5984 GB, free: 155.3 MB / 426.7 MB Notification: Performance of Templates: time 0.04264/0.824, allocations: 22.1 MB / 0.62 GB, free: 153.6 MB / 426.7 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/jenkins/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_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches