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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001071/0.001071, allocations: 175.4 kB / 16.72 MB, free: 5.055 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.563/1.563, allocations: 205.4 MB / 222.9 MB, free: 9.035 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.0007448/0.0007449, allocations: 85.17 kB / 271.2 MB, free: 8.262 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000294/0.0002941, allocations: 8 kB / 327.5 MB, free: 15.9 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.23/0.2304, allocations: 47.58 MB / 375.1 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.0191/0.2495, allocations: 26.15 MB / 401.2 MB, free: 22.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01208/0.2616, allocations: 5.666 MB / 406.9 MB, free: 16.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00475/0.2664, allocations: 119.8 kB / 407 MB, free: 16.72 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003473/0.2699, allocations: 1.341 MB / 408.4 MB, free: 15.37 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009586/0.2795, allocations: 3.797 MB / 412.2 MB, free: 11.56 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001514/0.2811, allocations: 251.6 kB / 412.4 MB, free: 11.31 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002727/0.2838, allocations: 2.617 MB / 415 MB, free: 8.688 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002066/0.2859, allocations: 1.983 MB / 417 MB, free: 6.668 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006864/0.2866, allocations: 0.7354 MB / 417.7 MB, free: 5.93 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001052/0.2877, allocations: 1.203 MB / 419 MB, free: 4.723 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001699/0.2878, allocations: 87.94 kB / 419 MB, free: 4.637 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009753/0.2888, allocations: 0.6123 MB / 419.7 MB, free: 4.023 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005965/0.2894, allocations: 1.079 MB / 420.7 MB, free: 2.941 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000733/0.2902, allocations: 1.244 MB / 422 MB, free: 1.684 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002567/0.2927, allocations: 3.247 MB / 425.2 MB, free: 14.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.2928, allocations: 0 / 425.2 MB, free: 14.43 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.306e-06/0.2928, allocations: 4 kB / 425.2 MB, free: 14.43 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.327e-05/0.2929, allocations: 0 / 425.2 MB, free: 14.43 MB / 314.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.004133/0.297, allocations: 2.407 MB / 427.6 MB, free: 11.96 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.16e-05/0.297, allocations: 8.031 kB / 427.6 MB, free: 11.95 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006627/0.3037, allocations: 1.822 MB / 429.5 MB, free: 10.12 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002176/0.3059, allocations: 1.158 MB / 430.6 MB, free: 8.918 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001262/0.306, allocations: 151.8 kB / 430.8 MB, free: 8.77 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003621/0.3064, allocations: 203.8 kB / 431 MB, free: 8.57 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01776/0.3242, allocations: 8.6 MB / 439.6 MB, free: 15.37 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001023/0.3243, allocations: 43.66 kB / 439.6 MB, free: 15.32 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002818/0.3246, allocations: 103.8 kB / 439.7 MB, free: 15.22 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002755/0.3274, allocations: 1.659 MB / 441.4 MB, free: 13.56 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01683/0.3442, allocations: 7.165 MB / 448.5 MB, free: 6.391 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03515/0.3794, allocations: 30.21 MB / 478.7 MB, free: 7.293 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02056/0.4, allocations: 5.091 MB / 483.8 MB, free: 2.023 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001666/0.4018, allocations: 1.24 MB / 485.1 MB, free: 0.7617 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005289/0.4071, allocations: 3.739 MB / 488.8 MB, free: 12.87 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.334e-05/0.4072, allocations: 50.77 kB / 488.9 MB, free: 12.81 MB / 378.7 MB Notification: Performance of pre-optimization done (n=111): time 8.085e-06/0.4072, allocations: 7.984 kB / 488.9 MB, free: 12.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=111): time 0.04285/0.45, allocations: 9.385 MB / 498.3 MB, free: 3.332 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/0.4502, allocations: 199.8 kB / 498.4 MB, free: 3.094 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005546/0.4557, allocations: 3.016 MB / 0.4897 GB, free: 56 kB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002511/0.456, allocations: 41.7 kB / 0.4897 GB, free: 8 kB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2034/0.6594, allocations: 2.419 MB / 0.4921 GB, free: 111.1 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007904/0.6603, allocations: 0.4987 MB / 0.4926 GB, free: 110.7 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002984/0.6606, allocations: 109.5 kB / 0.4927 GB, free: 110.6 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003271/0.6609, allocations: 0.5322 MB / 0.4932 GB, free: 110.2 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002734/0.6637, allocations: 1.579 MB / 0.4948 GB, free: 109.8 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004511/0.6682, allocations: 5.146 MB / 0.4998 GB, free: 104.5 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008247/0.6765, allocations: 7.306 MB / 0.5069 GB, free: 97.86 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001956/0.6767, allocations: 36.97 kB / 0.507 GB, free: 97.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01108/0.6878, allocations: 6.397 MB / 0.5132 GB, free: 95.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.912e-05/0.6879, allocations: 59.97 kB / 0.5133 GB, free: 95.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000159/0.6881, allocations: 125.4 kB / 0.5134 GB, free: 95.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001255/0.6882, allocations: 168 kB / 0.5135 GB, free: 95.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004581/0.6928, allocations: 1.458 MB / 0.515 GB, free: 93.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001581/0.693, allocations: 250.8 kB / 0.5152 GB, free: 93.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004288/0.6973, allocations: 0.7432 MB / 0.5159 GB, free: 92.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007647/0.6981, allocations: 344 kB / 0.5163 GB, free: 92.41 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003263/0.7013, allocations: 1.577 MB / 0.5178 GB, free: 90.82 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000531/0.7019, allocations: 248.7 kB / 0.518 GB, free: 90.57 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001278/0.7032, allocations: 0.8288 MB / 0.5188 GB, free: 89.73 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-05/0.7032, allocations: 17.06 kB / 0.5189 GB, free: 89.72 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.831e-05/0.7033, allocations: 7.938 kB / 0.5189 GB, free: 89.71 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.511e-05/0.7033, allocations: 7.969 kB / 0.5189 GB, free: 89.71 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005417/0.7087, allocations: 3.383 MB / 0.5222 GB, free: 86.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.502e-06/0.7087, allocations: 0 / 0.5222 GB, free: 86.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002052/0.7108, allocations: 415.4 kB / 0.5226 GB, free: 85.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.129e-05/0.7108, allocations: 4 kB / 0.5226 GB, free: 85.89 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.455e-05/0.7109, allocations: 36.59 kB / 0.5226 GB, free: 85.85 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.466e-06/0.7109, allocations: 11.98 kB / 0.5226 GB, free: 85.84 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.7109, allocations: 0 / 0.5226 GB, free: 85.84 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002554/0.7135, allocations: 2.78 MB / 0.5253 GB, free: 83.04 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005017/0.714, allocations: 310.7 kB / 0.5256 GB, free: 82.71 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002107/0.7142, allocations: 32.69 kB / 0.5257 GB, free: 82.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007883/0.715, allocations: 43.95 kB / 0.5257 GB, free: 82.64 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000101/0.7151, allocations: 56.64 kB / 0.5258 GB, free: 82.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.97e-05/0.7152, allocations: 36.77 kB / 0.5258 GB, free: 82.55 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002284/0.7175, allocations: 1.825 MB / 0.5276 GB, free: 80.72 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7175, allocations: 0 / 0.5276 GB, free: 80.72 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003991/0.7215, allocations: 0.8349 MB / 0.5284 GB, free: 79.89 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003861/0.7219, allocations: 168.4 kB / 0.5286 GB, free: 79.71 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004911/0.7268, allocations: 3.57 MB / 0.532 GB, free: 76.17 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 9.217e-06/0.7269, allocations: 4.188 kB / 0.5321 GB, free: 76.16 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008115/0.7277, allocations: 0.7129 MB / 0.5327 GB, free: 75.45 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002192/0.7299, allocations: 255.5 kB / 0.533 GB, free: 75.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01098/0.7409, allocations: 8.821 MB / 0.5416 GB, free: 66.33 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001846/0.7428, allocations: 2.392 MB / 0.5439 GB, free: 63.91 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000729/0.7435, allocations: 235.3 kB / 0.5442 GB, free: 63.68 MB / 378.7 MB Notification: Performance of SimCode: time 1.062e-06/0.7435, allocations: 7.938 kB / 0.5442 GB, free: 63.68 MB / 378.7 MB Notification: Performance of Templates: time 0.05503/0.7986, allocations: 40.04 MB / 0.5833 GB, free: 23.56 MB / 378.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/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_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches