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.001482/0.001482, allocations: 177.9 kB / 16.41 MB, free: 5.707 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.692/1.692, allocations: 205.4 MB / 222.5 MB, free: 9.109 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.0007275/0.0007275, allocations: 90.3 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003062/0.0003062, allocations: 16 kB / 327 MB, free: 184 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.195/0.1954, allocations: 47.57 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.01657/0.212, allocations: 26.15 MB / 400.7 MB, free: 22.64 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.009465/0.2215, allocations: 5.674 MB / 406.4 MB, free: 16.95 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003604/0.2251, allocations: 119.7 kB / 406.5 MB, free: 16.83 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002547/0.2277, allocations: 1.326 MB / 407.8 MB, free: 15.5 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006713/0.2344, allocations: 3.789 MB / 411.6 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000939/0.2354, allocations: 231.6 kB / 411.8 MB, free: 11.47 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002258/0.2376, allocations: 2.586 MB / 414.4 MB, free: 8.875 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002324/0.24, allocations: 1.877 MB / 416.3 MB, free: 6.965 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001126/0.2411, allocations: 0.7431 MB / 417 MB, free: 6.219 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001333/0.2425, allocations: 1.203 MB / 418.3 MB, free: 5.012 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003301/0.2428, allocations: 84 kB / 418.3 MB, free: 4.93 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009932/0.2438, allocations: 0.5305 MB / 418.9 MB, free: 4.398 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008017/0.2446, allocations: 1.083 MB / 419.9 MB, free: 3.312 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005324/0.2452, allocations: 0.5546 MB / 420.5 MB, free: 2.75 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002343/0.2475, allocations: 3.251 MB / 423.8 MB, free: 15.49 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2475, allocations: 0 / 423.8 MB, free: 15.49 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2475, allocations: 0 / 423.8 MB, free: 15.49 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001167/0.2477, allocations: 0 / 423.8 MB, free: 15.49 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.00389/0.2516, allocations: 2.438 MB / 426.2 MB, free: 12.99 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.2516, allocations: 8.031 kB / 426.2 MB, free: 12.98 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006548/0.2582, allocations: 1.817 MB / 428 MB, free: 11.16 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00196/0.2601, allocations: 1.138 MB / 429.2 MB, free: 9.977 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001004/0.2603, allocations: 155.8 kB / 429.3 MB, free: 9.824 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003421/0.2606, allocations: 207.8 kB / 429.5 MB, free: 9.621 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01722/0.2778, allocations: 8.6 MB / 438.1 MB, free: 432 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.846e-05/0.278, allocations: 47.67 kB / 438.2 MB, free: 384 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002458/0.2782, allocations: 103.9 kB / 438.3 MB, free: 280 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002682/0.2809, allocations: 1.663 MB / 439.9 MB, free: 14.61 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01702/0.2979, allocations: 7.15 MB / 447.1 MB, free: 7.453 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03332/0.3313, allocations: 30.18 MB / 477.3 MB, free: 8.383 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02174/0.3531, allocations: 5.111 MB / 482.4 MB, free: 3.094 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001576/0.3547, allocations: 1.235 MB / 483.6 MB, free: 1.84 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004868/0.3596, allocations: 3.75 MB / 487.3 MB, free: 13.94 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.591e-05/0.3596, allocations: 42.89 kB / 487.4 MB, free: 13.89 MB / 378.7 MB Notification: Performance of pre-optimization done (n=111): time 3.426e-06/0.3596, allocations: 0 / 487.4 MB, free: 13.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=111): time 0.04358/0.4032, allocations: 9.388 MB / 496.8 MB, free: 4.414 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/0.4034, allocations: 191.9 kB / 497 MB, free: 4.184 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003645/0.407, allocations: 3.019 MB / 500 MB, free: 1.145 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001158/0.4071, allocations: 45.64 kB / 0.4883 GB, free: 1.094 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1459/0.5531, allocations: 2.412 MB / 0.4907 GB, free: 111.5 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005713/0.5537, allocations: 0.5008 MB / 0.4912 GB, free: 111.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002622/0.554, allocations: 111 kB / 0.4913 GB, free: 111.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002352/0.5542, allocations: 0.5341 MB / 0.4918 GB, free: 110.9 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00227/0.5565, allocations: 1.578 MB / 0.4933 GB, free: 110.4 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003412/0.5599, allocations: 5.15 MB / 0.4984 GB, free: 105.1 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004026/0.564, allocations: 2.8 MB / 0.5011 GB, free: 104 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001167/0.5641, allocations: 36.5 kB / 0.5011 GB, free: 104 MB / 378.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.00888/0.573, allocations: 6.4 MB / 0.5074 GB, free: 101.6 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.9e-05/0.5731, allocations: 60.56 kB / 0.5074 GB, free: 101.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.81e-05/0.5732, allocations: 129.9 kB / 0.5076 GB, free: 101.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001238/0.5733, allocations: 186.1 kB / 0.5077 GB, free: 101.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00411/0.5775, allocations: 1.455 MB / 0.5092 GB, free: 101.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001119/0.5776, allocations: 244.9 kB / 0.5094 GB, free: 100.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00272/0.5803, allocations: 0.745 MB / 0.5101 GB, free: 100.1 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003197/0.5806, allocations: 344.9 kB / 0.5104 GB, free: 99.79 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.001579/0.5822, allocations: 1.583 MB / 0.512 GB, free: 98.22 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002922/0.5825, allocations: 252.8 kB / 0.5122 GB, free: 97.97 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009515/0.5835, allocations: 0.8314 MB / 0.513 GB, free: 97.13 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.016e-05/0.5835, allocations: 16 kB / 0.5131 GB, free: 97.12 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.5835, allocations: 0 / 0.5131 GB, free: 97.12 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/0.5835, allocations: 3.984 kB / 0.5131 GB, free: 97.11 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004107/0.5877, allocations: 3.39 MB / 0.5164 GB, free: 93.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.5877, allocations: 4 kB / 0.5164 GB, free: 93.69 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002081/0.5898, allocations: 407.5 kB / 0.5168 GB, free: 93.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.067e-06/0.5898, allocations: 6.906 kB / 0.5168 GB, free: 93.29 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.354e-05/0.5899, allocations: 37.14 kB / 0.5168 GB, free: 93.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.572e-06/0.5899, allocations: 7.938 kB / 0.5168 GB, free: 93.24 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.5899, allocations: 0 / 0.5168 GB, free: 93.24 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002299/0.5922, allocations: 2.78 MB / 0.5195 GB, free: 90.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004369/0.5926, allocations: 313.9 kB / 0.5198 GB, free: 90.11 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000207/0.5929, allocations: 29 kB / 0.5199 GB, free: 90.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008139/0.5937, allocations: 43.95 kB / 0.5199 GB, free: 90.04 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.127e-05/0.5938, allocations: 51.92 kB / 0.5199 GB, free: 89.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.163e-05/0.5939, allocations: 45.08 kB / 0.52 GB, free: 89.94 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002011/0.5959, allocations: 1.825 MB / 0.5218 GB, free: 88.11 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.5959, allocations: 0 / 0.5218 GB, free: 88.11 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005402/0.6013, allocations: 0.8257 MB / 0.5226 GB, free: 87.29 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.0004487/0.6018, allocations: 175.9 kB / 0.5227 GB, free: 87.11 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006468/0.6083, allocations: 3.573 MB / 0.5262 GB, free: 83.56 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/0.6083, allocations: 4.938 kB / 0.5262 GB, free: 83.56 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00109/0.6094, allocations: 0.7103 MB / 0.5269 GB, free: 82.85 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002268/0.6117, allocations: 253 kB / 0.5272 GB, free: 82.61 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01402/0.6257, allocations: 8.829 MB / 0.5358 GB, free: 73.73 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002741/0.6285, allocations: 2.394 MB / 0.5381 GB, free: 71.3 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009011/0.6294, allocations: 231.4 kB / 0.5384 GB, free: 71.08 MB / 378.7 MB Notification: Performance of SimCode: time 8.61e-07/0.6294, allocations: 0 / 0.5384 GB, free: 71.08 MB / 378.7 MB Notification: Performance of Templates: time 0.06255/0.692, allocations: 40.07 MB / 0.5775 GB, free: 30.94 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