Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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_trunk_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_trunk_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 trunk/package.mo): time 0.00114/0.00114, allocations: 207.8 kB / 8.537 MB, free: 476 kB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.274/1.274, allocations: 225.5 MB / 234.4 MB, free: 9.539 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009671/0.0009672, allocations: 91.36 kB / 286.3 MB, free: 5.852 MB / 226.8 MB Notification: Performance of FrontEnd - loaded program: time 1.073e-05/1.076e-05, allocations: 3.938 kB / 343.1 MB, free: 13.04 MB / 290.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3498/0.3499, allocations: 51.46 MB / 394.6 MB, free: 47.41 MB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1195/0.4694, allocations: 89.86 MB / 484.5 MB, free: 2.016 MB / 354.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002938/0.4698, allocations: 86.53 kB / 484.6 MB, free: 1.934 MB / 354.8 MB Notification: Performance of FrontEnd: time 0.1413/0.6111, allocations: 51.74 MB / 0.5237 GB, free: 14.01 MB / 418.8 MB Notification: Performance of Transformations before backend: time 0.0001455/0.6112, allocations: 52 kB / 0.5238 GB, free: 13.96 MB / 418.8 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.008586/0.6198, allocations: 2.451 MB / 0.5262 GB, free: 11.45 MB / 418.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.69e-05/0.6199, allocations: 8.031 kB / 0.5262 GB, free: 11.44 MB / 418.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007326/0.6272, allocations: 1.466 MB / 0.5276 GB, free: 9.969 MB / 418.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003696/0.631, allocations: 1.399 MB / 0.529 GB, free: 8.523 MB / 418.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001653/0.6311, allocations: 99.94 kB / 0.5291 GB, free: 8.426 MB / 418.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001089/0.6322, allocations: 179.9 kB / 0.5292 GB, free: 8.25 MB / 418.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00812/0.6404, allocations: 4.208 MB / 0.5333 GB, free: 4.031 MB / 418.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2027/0.8431, allocations: 6.893 MB / 0.5401 GB, free: 141.9 MB / 418.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001642/0.8433, allocations: 49.09 kB / 0.5401 GB, free: 141.9 MB / 418.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003944/0.8437, allocations: 25.94 kB / 0.5402 GB, free: 141.9 MB / 418.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009807/0.8447, allocations: 0.813 MB / 0.5409 GB, free: 141.9 MB / 418.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02955/0.8743, allocations: 35.02 MB / 0.5751 GB, free: 117.7 MB / 418.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002163/0.8765, allocations: 1.663 MB / 0.5768 GB, free: 117 MB / 418.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008108/0.8773, allocations: 0.6835 MB / 0.5774 GB, free: 117 MB / 418.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003569/0.8777, allocations: 350.2 kB / 0.5778 GB, free: 116.7 MB / 418.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.461e-05/0.8778, allocations: 51.98 kB / 0.5778 GB, free: 116.7 MB / 418.8 MB Notification: Performance of pre-optimization done (n=119): time 5.541e-06/0.8778, allocations: 0 / 0.5778 GB, free: 116.7 MB / 418.8 MB Notification: Performance of matching and sorting (n=119): time 0.009641/0.8874, allocations: 3.226 MB / 0.581 GB, free: 116.4 MB / 418.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.438e-05/0.8875, allocations: 216.9 kB / 0.5812 GB, free: 116.2 MB / 418.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003844/0.8914, allocations: 2.431 MB / 0.5836 GB, free: 115.9 MB / 418.8 MB Notification: Performance of collectPreVariables (initialization): time 9.553e-05/0.8915, allocations: 25.7 kB / 0.5836 GB, free: 115.9 MB / 418.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.001177/0.8927, allocations: 2.399 MB / 0.5859 GB, free: 114.4 MB / 418.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004169/0.8931, allocations: 0.5134 MB / 0.5864 GB, free: 114.2 MB / 418.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000144/0.8933, allocations: 0 / 0.5864 GB, free: 114.2 MB / 418.8 MB Notification: Performance of setup shared object (initialization): time 0.0002959/0.8936, allocations: 0.5769 MB / 0.587 GB, free: 113.8 MB / 418.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00175/0.8953, allocations: 1.415 MB / 0.5884 GB, free: 113.8 MB / 418.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00313/0.8985, allocations: 5.051 MB / 0.5933 GB, free: 108.9 MB / 418.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005602/0.9041, allocations: 3.409 MB / 0.5966 GB, free: 108.6 MB / 418.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000127/0.9042, allocations: 37.62 kB / 0.5967 GB, free: 108.6 MB / 418.8 MB Notification: Performance of matching and sorting (n=732) (initialization): time 0.01274/0.917, allocations: 6.215 MB / 0.6027 GB, free: 106.7 MB / 418.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.813e-05/0.917, allocations: 8.219 kB / 0.6027 GB, free: 106.7 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001843/0.9172, allocations: 134.9 kB / 0.6029 GB, free: 106.7 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002071/0.9175, allocations: 190.6 kB / 0.6031 GB, free: 106.7 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005452/0.9229, allocations: 1.413 MB / 0.6044 GB, free: 106.5 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003025/0.9232, allocations: 260 kB / 0.6047 GB, free: 106.4 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005646/0.9289, allocations: 0.6203 MB / 0.6053 GB, free: 106.1 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001292/0.9302, allocations: 375 kB / 0.6056 GB, free: 106 MB / 418.8 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.001046/0.9313, allocations: 427.9 kB / 0.6061 GB, free: 105.7 MB / 418.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001025/0.9323, allocations: 235.9 kB / 0.6063 GB, free: 105.5 MB / 418.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002368/0.9347, allocations: 1.017 MB / 0.6073 GB, free: 105.2 MB / 418.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.653e-05/0.9347, allocations: 13.58 kB / 0.6073 GB, free: 105.2 MB / 418.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.146e-05/0.9348, allocations: 6.875 kB / 0.6073 GB, free: 105.2 MB / 418.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.131e-05/0.9348, allocations: 4.688 kB / 0.6073 GB, free: 105.2 MB / 418.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006632/0.9414, allocations: 3.356 MB / 0.6106 GB, free: 103.9 MB / 418.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.755e-06/0.9414, allocations: 1.219 kB / 0.6106 GB, free: 103.9 MB / 418.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001435/0.9429, allocations: 283.7 kB / 0.6108 GB, free: 103.9 MB / 418.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002897/0.9432, allocations: 66.36 kB / 0.6109 GB, free: 103.8 MB / 418.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001069/0.9433, allocations: 36.44 kB / 0.6109 GB, free: 103.8 MB / 418.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003459/0.9468, allocations: 2.988 MB / 0.6139 GB, free: 101.3 MB / 418.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.9468, allocations: 1.375 kB / 0.6139 GB, free: 101.3 MB / 418.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005278/0.9521, allocations: 3.336 MB / 0.6171 GB, free: 99.84 MB / 418.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006991/0.9528, allocations: 292.9 kB / 0.6174 GB, free: 99.6 MB / 418.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002842/0.9531, allocations: 17.42 kB / 0.6174 GB, free: 99.6 MB / 418.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008173/0.9539, allocations: 12.08 kB / 0.6174 GB, free: 99.6 MB / 418.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001078/0.9541, allocations: 60.77 kB / 0.6175 GB, free: 99.59 MB / 418.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.426e-05/0.9542, allocations: 50.89 kB / 0.6175 GB, free: 99.58 MB / 418.8 MB Notification: Performance of sort global known variables: time 0.00245/0.9566, allocations: 1.577 MB / 0.6191 GB, free: 98.61 MB / 418.8 MB Notification: Performance of remove unused functions: time 0.004671/0.9613, allocations: 0.7438 MB / 0.6198 GB, free: 97.87 MB / 418.8 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.0005318/0.9618, allocations: 176.2 kB / 0.62 GB, free: 97.71 MB / 418.8 MB Notification: Performance of simCode: created initialization part: time 0.004786/0.9666, allocations: 3.253 MB / 0.6231 GB, free: 94.76 MB / 418.8 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.9667, allocations: 0 / 0.6231 GB, free: 94.76 MB / 418.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0009795/0.9677, allocations: 0.8415 MB / 0.624 GB, free: 93.96 MB / 418.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001288/0.969, allocations: 196.4 kB / 0.6242 GB, free: 93.79 MB / 418.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01094/0.9799, allocations: 6.151 MB / 0.6302 GB, free: 88.39 MB / 418.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002921/0.9829, allocations: 2.688 MB / 0.6328 GB, free: 86.25 MB / 418.8 MB Notification: Performance of SimCode: time 1.723e-06/0.9829, allocations: 0 / 0.6328 GB, free: 86.25 MB / 418.8 MB Notification: Performance of Templates: time 0.04864/1.032, allocations: 22.15 MB / 0.6544 GB, free: 66.75 MB / 418.8 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches