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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001227/0.001231, allocations: 95.83 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001519/0.001519, allocations: 204 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.272/1.272, allocations: 227.2 MB / 245.9 MB, free: 12.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002598/0.0002599, allocations: 8 kB / 306.6 MB, free: 1.648 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08975/0.09003, allocations: 51.48 MB / 358.1 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.1704/0.2605, allocations: 24.77 MB / 382.8 MB, free: 8.164 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01172/0.2722, allocations: 5.936 MB / 388.8 MB, free: 4.715 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004751/0.277, allocations: 117.2 kB / 388.9 MB, free: 4.695 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004003/0.2811, allocations: 1.205 MB / 390.1 MB, free: 4.301 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01097/0.2921, allocations: 3.521 MB / 393.6 MB, free: 2.652 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001307/0.2934, allocations: 194.4 kB / 393.8 MB, free: 2.547 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0025/0.2959, allocations: 1.282 MB / 395.1 MB, free: 1.867 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002354/0.2983, allocations: 1.887 MB / 397 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008159/0.2991, allocations: 0.6022 MB / 397.6 MB, free: 416 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001403/0.3005, allocations: 0.838 MB / 398.4 MB, free: 15.96 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002858/0.3008, allocations: 89.81 kB / 398.5 MB, free: 15.96 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001158/0.302, allocations: 0.5229 MB / 399 MB, free: 15.73 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001105/0.3031, allocations: 1.01 MB / 400 MB, free: 15.22 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000639/0.3037, allocations: 0.5598 MB / 400.6 MB, free: 14.82 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003471/0.3072, allocations: 3.242 MB / 403.8 MB, free: 12.67 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.3072, allocations: 0 / 403.8 MB, free: 12.67 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.3073, allocations: 0 / 403.8 MB, free: 12.67 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.00011/0.3074, allocations: 0 / 403.8 MB, free: 12.67 MB / 318.1 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.004613/0.312, allocations: 2.44 MB / 406.3 MB, free: 10.86 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.312, allocations: 8.719 kB / 406.3 MB, free: 10.86 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007942/0.32, allocations: 2.122 MB / 408.4 MB, free: 9.285 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002903/0.3229, allocations: 1.141 MB / 409.5 MB, free: 8.098 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001314/0.3231, allocations: 155.8 kB / 409.7 MB, free: 7.945 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005152/0.3236, allocations: 207.8 kB / 409.9 MB, free: 7.742 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01895/0.3426, allocations: 8.67 MB / 418.6 MB, free: 14.47 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001081/0.3427, allocations: 51.58 kB / 418.6 MB, free: 14.42 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002809/0.343, allocations: 99.88 kB / 418.7 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002859/0.3459, allocations: 1.667 MB / 420.4 MB, free: 12.65 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01786/0.3637, allocations: 7.241 MB / 427.6 MB, free: 5.406 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03304/0.3968, allocations: 30.2 MB / 457.8 MB, free: 6.324 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02232/0.4192, allocations: 5.134 MB / 463 MB, free: 1.012 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008862/0.4281, allocations: 3.853 MB / 466.8 MB, free: 12.99 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.139e-05/0.4282, allocations: 46.83 kB / 466.9 MB, free: 12.93 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 6.392e-06/0.4282, allocations: 0 / 466.9 MB, free: 12.93 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.06949/0.4977, allocations: 9.679 MB / 476.5 MB, free: 3.113 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001235/0.4979, allocations: 191.9 kB / 476.7 MB, free: 2.883 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006216/0.5041, allocations: 3.027 MB / 479.8 MB, free: 15.84 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002102/0.5043, allocations: 42.73 kB / 479.8 MB, free: 15.79 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002279/0.5066, allocations: 2.425 MB / 482.2 MB, free: 13.32 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008127/0.5075, allocations: 0.4942 MB / 482.7 MB, free: 12.82 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002803/0.5078, allocations: 104 kB / 482.8 MB, free: 12.72 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0003572/0.5081, allocations: 0.5372 MB / 483.4 MB, free: 12.18 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003779/0.5119, allocations: 1.58 MB / 484.9 MB, free: 10.59 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007221/0.5192, allocations: 5.138 MB / 490.1 MB, free: 3.652 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005974/0.5252, allocations: 2.817 MB / 492.9 MB, free: 0.8359 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.097e-05/0.5253, allocations: 36 kB / 492.9 MB, free: 0.8008 MB / 398.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.0167/0.542, allocations: 6.402 MB / 499.3 MB, free: 10.39 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001191/0.5422, allocations: 60 kB / 499.4 MB, free: 10.33 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000204/0.5424, allocations: 128.8 kB / 499.5 MB, free: 10.21 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002799/0.5427, allocations: 184 kB / 499.7 MB, free: 10.03 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007973/0.5507, allocations: 1.458 MB / 0.4894 GB, free: 8.566 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002934/0.551, allocations: 247.1 kB / 0.4896 GB, free: 8.324 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00595/0.5569, allocations: 0.746 MB / 0.4904 GB, free: 7.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007813/0.5577, allocations: 351.8 kB / 0.4907 GB, free: 7.23 MB / 414.1 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.00348/0.5612, allocations: 1.579 MB / 0.4922 GB, free: 5.637 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007684/0.562, allocations: 256.7 kB / 0.4925 GB, free: 5.383 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007569/0.5628, allocations: 311.5 kB / 0.4928 GB, free: 5.078 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.401e-05/0.5628, allocations: 16 kB / 0.4928 GB, free: 5.062 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.502e-05/0.5629, allocations: 0 / 0.4928 GB, free: 5.062 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.785e-05/0.5629, allocations: 7.984 kB / 0.4928 GB, free: 5.055 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00914/0.572, allocations: 3.399 MB / 0.4961 GB, free: 1.594 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.418e-05/0.5721, allocations: 4 kB / 0.4961 GB, free: 1.59 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00334/0.5754, allocations: 411.5 kB / 0.4965 GB, free: 1.188 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.749e-05/0.5755, allocations: 4 kB / 0.4965 GB, free: 1.184 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001528/0.5756, allocations: 40.33 kB / 0.4966 GB, free: 1.145 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.248e-05/0.5757, allocations: 7.953 kB / 0.4966 GB, free: 1.137 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.5757, allocations: 0 / 0.4966 GB, free: 1.137 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005157/0.5808, allocations: 2.907 MB / 0.4994 GB, free: 14.15 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009049/0.5818, allocations: 309.6 kB / 0.4997 GB, free: 13.83 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004205/0.5822, allocations: 31.98 kB / 0.4997 GB, free: 13.8 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001586/0.5838, allocations: 39.95 kB / 0.4998 GB, free: 13.76 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001827/0.584, allocations: 71.75 kB / 0.4998 GB, free: 13.69 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001253/0.5841, allocations: 31.98 kB / 0.4999 GB, free: 13.66 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.004351/0.5885, allocations: 1.833 MB / 0.5017 GB, free: 11.82 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.5885, allocations: 0 / 0.5017 GB, free: 11.82 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.006919/0.5955, allocations: 0.826 MB / 0.5025 GB, free: 10.99 MB / 430.1 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.0004962/0.596, allocations: 166.9 kB / 0.5026 GB, free: 10.82 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.008528/0.6045, allocations: 3.581 MB / 0.5061 GB, free: 7.273 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.612e-06/0.6046, allocations: 0.75 kB / 0.5061 GB, free: 7.273 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001638/0.6062, allocations: 0.7281 MB / 0.5068 GB, free: 6.547 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002111/0.6084, allocations: 246.8 kB / 0.5071 GB, free: 6.312 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01885/0.6272, allocations: 8.459 MB / 0.5153 GB, free: 13.8 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004012/0.6313, allocations: 2.449 MB / 0.5177 GB, free: 11.32 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004161/0.6355, allocations: 1.645 MB / 0.5193 GB, free: 9.668 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004485/0.636, allocations: 187.4 kB / 0.5195 GB, free: 9.484 MB / 446.1 MB Notification: Performance of SimCode: time 3.216e-06/0.636, allocations: 0 / 0.5195 GB, free: 9.484 MB / 446.1 MB Notification: Performance of Templates: time 0.2038/0.8397, allocations: 20.06 MB / 0.5391 GB, free: 141.2 MB / 446.1 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