Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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.0.0_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 4.0.0+maint.om/package.mo): time 0.001587/0.001587, allocations: 181.2 kB / 8.135 MB, free: 2.199 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.299/1.299, allocations: 221.4 MB / 229.9 MB, free: 3.059 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009193/0.0009193, allocations: 102.9 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 7.223e-06/7.253e-06, allocations: 0 / 336.5 MB, free: 9.484 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.271, allocations: 50.39 MB / 386.9 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1061/0.3771, allocations: 89.05 MB / 476 MB, free: 13.72 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002082/0.3774, allocations: 87.89 kB / 476.1 MB, free: 13.64 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.3295/0.7069, allocations: 51.68 MB / 0.5154 GB, free: 92.43 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001986/0.7072, allocations: 62.17 kB / 0.5154 GB, free: 92.43 MB / 378.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.006123/0.7133, allocations: 2.447 MB / 0.5178 GB, free: 90.65 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.7133, allocations: 8.406 kB / 0.5178 GB, free: 90.65 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006534/0.7199, allocations: 1.462 MB / 0.5193 GB, free: 89.35 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002802/0.7227, allocations: 1.402 MB / 0.5206 GB, free: 87.91 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.883e-05/0.7228, allocations: 103.9 kB / 0.5207 GB, free: 87.81 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004675/0.7233, allocations: 179.9 kB / 0.5209 GB, free: 87.64 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004889/0.7282, allocations: 4.208 MB / 0.525 GB, free: 83.43 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007159/0.7353, allocations: 6.892 MB / 0.5317 GB, free: 75.64 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001056/0.7355, allocations: 59.45 kB / 0.5318 GB, free: 75.58 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003353/0.7358, allocations: 24 kB / 0.5318 GB, free: 75.55 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006766/0.7365, allocations: 0.8087 MB / 0.5326 GB, free: 74.75 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02621/0.7627, allocations: 35.02 MB / 0.5668 GB, free: 38.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001984/0.7648, allocations: 1.66 MB / 0.5684 GB, free: 36.88 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006659/0.7655, allocations: 0.6907 MB / 0.5691 GB, free: 36.16 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002966/0.7658, allocations: 355.6 kB / 0.5694 GB, free: 35.77 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.68e-05/0.7658, allocations: 54.5 kB / 0.5695 GB, free: 35.7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=119): time 4.248e-06/0.7658, allocations: 0 / 0.5695 GB, free: 35.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=119): time 0.009154/0.775, allocations: 3.223 MB / 0.5726 GB, free: 32.46 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.458e-05/0.7751, allocations: 221.6 kB / 0.5728 GB, free: 32.2 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003254/0.7783, allocations: 2.419 MB / 0.5752 GB, free: 29.77 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001252/0.7785, allocations: 25.7 kB / 0.5752 GB, free: 29.73 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009327/0.7794, allocations: 2.397 MB / 0.5776 GB, free: 27.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004108/0.7798, allocations: 0.5055 MB / 0.5781 GB, free: 26.79 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000147/0.78, allocations: 0 / 0.5781 GB, free: 26.79 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002638/0.7802, allocations: 0.5814 MB / 0.5786 GB, free: 26.19 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001594/0.7818, allocations: 1.417 MB / 0.58 GB, free: 24.77 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002942/0.7848, allocations: 5.058 MB / 0.585 GB, free: 17.85 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005215/0.79, allocations: 3.4 MB / 0.5883 GB, free: 14.45 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.494e-05/0.7901, allocations: 40 kB / 0.5883 GB, free: 14.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=732) (initialization): time 0.01229/0.8024, allocations: 6.211 MB / 0.5944 GB, free: 8.195 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/0.8025, allocations: 11.97 kB / 0.5944 GB, free: 8.184 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001119/0.8026, allocations: 132 kB / 0.5945 GB, free: 8.055 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001544/0.8028, allocations: 192 kB / 0.5947 GB, free: 7.867 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003993/0.8068, allocations: 1.415 MB / 0.5961 GB, free: 6.449 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001224/0.8069, allocations: 258.6 kB / 0.5963 GB, free: 6.199 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003527/0.8104, allocations: 0.6173 MB / 0.5969 GB, free: 5.574 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004027/0.8108, allocations: 376 kB / 0.5973 GB, free: 5.207 MB / 378.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.0005214/0.8114, allocations: 431.2 kB / 0.5977 GB, free: 4.777 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003612/0.8117, allocations: 233 kB / 0.5979 GB, free: 4.547 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001996/0.8137, allocations: 1.015 MB / 0.5989 GB, free: 3.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.97e-05/0.8138, allocations: 11.94 kB / 0.5989 GB, free: 3.508 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.609e-05/0.8138, allocations: 4 kB / 0.5989 GB, free: 3.504 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.18e-05/0.8138, allocations: 11.91 kB / 0.5989 GB, free: 3.492 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005525/0.8194, allocations: 3.355 MB / 0.6022 GB, free: 116 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.354e-06/0.8194, allocations: 4 kB / 0.6022 GB, free: 112 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001375/0.8208, allocations: 279.7 kB / 0.6025 GB, free: 15.83 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002775/0.8211, allocations: 69.67 kB / 0.6026 GB, free: 15.76 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.478e-05/0.8212, allocations: 35.88 kB / 0.6026 GB, free: 15.72 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004007/0.8252, allocations: 2.984 MB / 0.6055 GB, free: 12.51 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.8252, allocations: 4.031 kB / 0.6055 GB, free: 12.51 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005273/0.8305, allocations: 3.344 MB / 0.6088 GB, free: 9.098 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005969/0.8311, allocations: 289.8 kB / 0.6091 GB, free: 8.793 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000304/0.8314, allocations: 23.89 kB / 0.6091 GB, free: 8.77 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007863/0.8322, allocations: 11.98 kB / 0.6091 GB, free: 8.758 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001324/0.8324, allocations: 55.86 kB / 0.6091 GB, free: 8.703 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001025/0.8325, allocations: 53.22 kB / 0.6092 GB, free: 8.652 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.002979/0.8354, allocations: 1.578 MB / 0.6107 GB, free: 7.066 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004385/0.8398, allocations: 0.7398 MB / 0.6115 GB, free: 6.324 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.0004827/0.8403, allocations: 174.2 kB / 0.6116 GB, free: 6.148 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.005501/0.8458, allocations: 3.255 MB / 0.6148 GB, free: 2.922 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/0.8459, allocations: 0.6562 kB / 0.6148 GB, free: 2.922 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001246/0.8471, allocations: 0.8476 MB / 0.6156 GB, free: 2.055 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001254/0.8484, allocations: 201.9 kB / 0.6158 GB, free: 1.863 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01173/0.8601, allocations: 6.142 MB / 0.6218 GB, free: 11.66 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003454/0.8636, allocations: 2.688 MB / 0.6244 GB, free: 8.941 MB / 410.7 MB Notification: Performance of SimCode: time 1.052e-06/0.8637, allocations: 4 kB / 0.6244 GB, free: 8.938 MB / 410.7 MB Notification: Performance of Templates: time 0.05032/0.914, allocations: 22.15 MB / 0.6461 GB, free: 3.113 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches