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") [: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.002513/0.002513, allocations: 175.8 kB / 8.151 MB, free: 2.215 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.683/1.683, allocations: 205.2 MB / 213.7 MB, free: 13.94 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.001268/0.001268, allocations: 90.75 kB / 261.8 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.466e-06/8.486e-06, allocations: 0 / 314.3 MB, free: 9.047 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.315/0.3151, allocations: 47.56 MB / 361.8 MB, free: 45.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1801/0.4952, allocations: 87.63 MB / 449.5 MB, free: 14.43 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003151/0.4955, allocations: 84.45 kB / 449.6 MB, free: 14.34 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.2255/0.721, allocations: 50.83 MB / 0.4887 GB, free: 11.14 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001433/0.7212, allocations: 56 kB / 0.4887 GB, free: 11.08 MB / 394.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.00947/0.7307, allocations: 2.448 MB / 0.4911 GB, free: 8.574 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.909e-05/0.7308, allocations: 11.97 kB / 0.4911 GB, free: 8.562 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01805/0.7489, allocations: 1.462 MB / 0.4925 GB, free: 7.094 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006692/0.7556, allocations: 1.407 MB / 0.4939 GB, free: 5.641 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002695/0.756, allocations: 96 kB / 0.494 GB, free: 5.547 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001849/0.7578, allocations: 187.9 kB / 0.4942 GB, free: 5.363 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01563/0.7735, allocations: 4.197 MB / 0.4983 GB, free: 1.16 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.212/0.9856, allocations: 6.888 MB / 0.505 GB, free: 59.18 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000169/0.9858, allocations: 56.06 kB / 0.5051 GB, free: 59.18 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007391/0.9865, allocations: 27.75 kB / 0.5051 GB, free: 59.18 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001217/0.9878, allocations: 0.8137 MB / 0.5059 GB, free: 59.17 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04038/1.028, allocations: 35.01 MB / 0.5401 GB, free: 35.05 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003489/1.032, allocations: 1.674 MB / 0.5417 GB, free: 34.34 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001489/1.033, allocations: 0.688 MB / 0.5424 GB, free: 34.29 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004783/1.034, allocations: 347.5 kB / 0.5427 GB, free: 34.01 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.515e-05/1.034, allocations: 47.09 kB / 0.5428 GB, free: 33.97 MB / 394.7 MB Notification: Performance of pre-optimization done (n=119): time 4.609e-06/1.034, allocations: 0 / 0.5428 GB, free: 33.97 MB / 394.7 MB Notification: Performance of matching and sorting (n=119): time 0.0175/1.051, allocations: 3.225 MB / 0.5459 GB, free: 33.75 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.502e-05/1.051, allocations: 224.1 kB / 0.5461 GB, free: 33.5 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005587/1.057, allocations: 2.428 MB / 0.5485 GB, free: 33.2 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000268/1.057, allocations: 25.7 kB / 0.5485 GB, free: 33.16 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00238/1.06, allocations: 2.43 MB / 0.5509 GB, free: 31.62 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008971/1.061, allocations: 0.51 MB / 0.5514 GB, free: 31.35 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004791/1.061, allocations: 0 / 0.5514 GB, free: 31.35 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0005896/1.062, allocations: 0.5466 MB / 0.5519 GB, free: 31.03 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004619/1.066, allocations: 1.416 MB / 0.5533 GB, free: 31.01 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007864/1.074, allocations: 5.058 MB / 0.5582 GB, free: 26.06 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01416/1.089, allocations: 3.406 MB / 0.5616 GB, free: 25.77 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001647/1.089, allocations: 38.22 kB / 0.5616 GB, free: 25.77 MB / 394.7 MB Notification: Performance of matching and sorting (n=732) (initialization): time 0.02199/1.111, allocations: 6.175 MB / 0.5676 GB, free: 24.89 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.77e-05/1.111, allocations: 5.406 kB / 0.5676 GB, free: 24.89 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003394/1.111, allocations: 135.1 kB / 0.5678 GB, free: 24.89 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004186/1.112, allocations: 191.2 kB / 0.5679 GB, free: 24.89 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00919/1.121, allocations: 1.416 MB / 0.5693 GB, free: 24.77 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002693/1.121, allocations: 264.5 kB / 0.5696 GB, free: 24.7 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004755/1.126, allocations: 407.5 kB / 0.57 GB, free: 24.48 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00141/1.127, allocations: 372.7 kB / 0.5703 GB, free: 24.48 MB / 394.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.001199/1.129, allocations: 345.6 kB / 0.5707 GB, free: 24.25 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007109/1.129, allocations: 237.6 kB / 0.5709 GB, free: 24.12 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003963/1.133, allocations: 1.016 MB / 0.5719 GB, free: 24.03 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.396e-05/1.133, allocations: 11.72 kB / 0.5719 GB, free: 24.03 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.086e-05/1.134, allocations: 7.688 kB / 0.5719 GB, free: 24.03 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.285e-05/1.134, allocations: 6.391 kB / 0.5719 GB, free: 24.03 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01082/1.144, allocations: 3.59 MB / 0.5754 GB, free: 23.33 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.835e-05/1.144, allocations: 0 / 0.5754 GB, free: 23.33 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002863/1.147, allocations: 278.4 kB / 0.5757 GB, free: 23.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004389/1.148, allocations: 71.89 kB / 0.5757 GB, free: 23.3 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002449/1.148, allocations: 34.78 kB / 0.5758 GB, free: 23.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005656/1.154, allocations: 2.987 MB / 0.5787 GB, free: 20.9 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.225e-06/1.154, allocations: 8 kB / 0.5787 GB, free: 20.89 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008268/1.162, allocations: 3.332 MB / 0.582 GB, free: 20.05 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008061/1.163, allocations: 390.7 kB / 0.5823 GB, free: 19.74 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004933/1.163, allocations: 19.41 kB / 0.5823 GB, free: 19.73 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001434/1.165, allocations: 19.61 kB / 0.5824 GB, free: 19.73 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001665/1.165, allocations: 68.88 kB / 0.5824 GB, free: 19.72 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001373/1.165, allocations: 52.81 kB / 0.5825 GB, free: 19.72 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.00333/1.169, allocations: 1.574 MB / 0.584 GB, free: 19.57 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005973/1.175, allocations: 0.7375 MB / 0.5847 GB, free: 19.45 MB / 394.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.0006187/1.175, allocations: 171.9 kB / 0.5849 GB, free: 19.35 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007136/1.182, allocations: 3.255 MB / 0.5881 GB, free: 19.02 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.938e-06/1.182, allocations: 1.625 kB / 0.5881 GB, free: 19.02 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001737/1.184, allocations: 0.8473 MB / 0.5889 GB, free: 18.8 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001732/1.186, allocations: 193.3 kB / 0.5891 GB, free: 18.78 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01734/1.203, allocations: 6.465 MB / 0.5954 GB, free: 16.87 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006253/1.21, allocations: 2.7 MB / 0.598 GB, free: 15.83 MB / 394.7 MB Notification: Performance of SimCode: time 1.373e-06/1.21, allocations: 0 / 0.598 GB, free: 15.83 MB / 394.7 MB Notification: Performance of Templates: time 0.1012/1.311, allocations: 49.17 MB / 0.6461 GB, free: 3.684 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