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.001048/0.001048, allocations: 121.6 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001079/0.001079, allocations: 203.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 71.86 kB / 358.7 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2566/0.2577, allocations: 50.54 MB / 409.3 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.00829/0.2661, allocations: 7.938 MB / 417.2 MB, free: 9.613 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005501/0.2716, allocations: 2.563 MB / 419.8 MB, free: 7.043 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001041/0.2727, allocations: 35.94 kB / 419.8 MB, free: 7.008 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002778/0.2755, allocations: 1.44 MB / 421.2 MB, free: 5.562 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002243/0.2778, allocations: 0.9762 MB / 422.2 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006118/0.2784, allocations: 271.4 kB / 422.5 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002277/0.2807, allocations: 2.153 MB / 424.6 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001458/0.2822, allocations: 1.56 MB / 426.2 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007405/0.2829, allocations: 0.8289 MB / 427 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001298/0.2842, allocations: 1.187 MB / 428.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000243/0.2845, allocations: 160 kB / 428.4 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001097/0.2856, allocations: 0.663 MB / 429 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008421/0.2864, allocations: 1.149 MB / 430.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00101/0.2875, allocations: 1.362 MB / 431.5 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003542/0.291, allocations: 4.267 MB / 435.8 MB, free: 6.922 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.291, allocations: 0 / 435.8 MB, free: 6.922 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.291, allocations: 0 / 435.8 MB, free: 6.922 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.802e-05/0.2911, allocations: 4 kB / 435.8 MB, free: 6.918 MB / 350.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.003656/0.2947, allocations: 2.926 MB / 438.7 MB, free: 3.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.097e-05/0.2948, allocations: 8.031 kB / 438.7 MB, free: 3.922 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006276/0.3011, allocations: 1.775 MB / 440.5 MB, free: 2.141 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002281/0.3034, allocations: 1.162 MB / 441.7 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.615e-05/0.3035, allocations: 151.8 kB / 441.8 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003377/0.3038, allocations: 211.8 kB / 442 MB, free: 0.582 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01682/0.3207, allocations: 8.611 MB / 450.6 MB, free: 7.363 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.627e-05/0.3208, allocations: 43.53 kB / 450.7 MB, free: 7.32 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002367/0.321, allocations: 99.89 kB / 450.8 MB, free: 7.223 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002575/0.3236, allocations: 1.663 MB / 452.4 MB, free: 5.562 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01598/0.3396, allocations: 7.186 MB / 459.6 MB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03016/0.3698, allocations: 30.09 MB / 489.7 MB, free: 15.39 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02315/0.393, allocations: 5.056 MB / 494.8 MB, free: 10.16 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001766/0.3948, allocations: 1.248 MB / 496 MB, free: 8.891 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005655/0.4004, allocations: 3.828 MB / 499.8 MB, free: 4.898 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.776e-05/0.4005, allocations: 46.89 kB / 499.9 MB, free: 4.844 MB / 414.1 MB Notification: Performance of pre-optimization done (n=111): time 3.567e-06/0.4005, allocations: 4 kB / 499.9 MB, free: 4.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=111): time 0.04763/0.4482, allocations: 9.271 MB / 0.4972 GB, free: 11.48 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/0.4483, allocations: 207.8 kB / 0.4974 GB, free: 11.24 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004713/0.453, allocations: 3.027 MB / 0.5004 GB, free: 8.191 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002107/0.4533, allocations: 41.7 kB / 0.5004 GB, free: 8.145 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002168/0.4554, allocations: 2.422 MB / 0.5028 GB, free: 5.684 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000893/0.4563, allocations: 0.4903 MB / 0.5033 GB, free: 5.188 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001937/0.4583, allocations: 1.087 MB / 0.5043 GB, free: 4.09 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.4584, allocations: 301.1 kB / 0.5046 GB, free: 3.793 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002471/0.4609, allocations: 1.607 MB / 0.5062 GB, free: 2.18 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005541/0.4665, allocations: 5.181 MB / 0.5112 GB, free: 11.2 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007683/0.4742, allocations: 7.332 MB / 0.5184 GB, free: 2.082 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001297/0.4743, allocations: 36 kB / 0.5184 GB, free: 2.047 MB / 446.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.009925/0.4843, allocations: 6.446 MB / 0.5247 GB, free: 11.59 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.089e-05/0.4843, allocations: 60 kB / 0.5248 GB, free: 11.53 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001442/0.4845, allocations: 128 kB / 0.5249 GB, free: 11.41 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001679/0.4847, allocations: 168 kB / 0.5251 GB, free: 11.24 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004729/0.4894, allocations: 1.458 MB / 0.5265 GB, free: 9.781 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001885/0.4896, allocations: 247.5 kB / 0.5267 GB, free: 9.539 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003234/0.4929, allocations: 0.746 MB / 0.5275 GB, free: 8.785 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000412/0.4933, allocations: 344 kB / 0.5278 GB, free: 8.449 MB / 462.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001947/0.4952, allocations: 1.579 MB / 0.5293 GB, free: 6.855 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004395/0.4957, allocations: 256.7 kB / 0.5296 GB, free: 6.602 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00051/0.4962, allocations: 311.3 kB / 0.5299 GB, free: 6.297 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.256e-05/0.4962, allocations: 15.94 kB / 0.5299 GB, free: 6.281 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.638e-06/0.4962, allocations: 4 kB / 0.5299 GB, free: 6.277 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.172e-05/0.4963, allocations: 3.984 kB / 0.5299 GB, free: 6.273 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005621/0.5019, allocations: 3.408 MB / 0.5332 GB, free: 2.809 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.5019, allocations: 0 / 0.5332 GB, free: 2.809 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002352/0.5043, allocations: 407.5 kB / 0.5336 GB, free: 2.41 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.658e-05/0.5043, allocations: 4 kB / 0.5336 GB, free: 2.406 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001072/0.5044, allocations: 39.97 kB / 0.5337 GB, free: 2.367 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.048e-05/0.5044, allocations: 4 kB / 0.5337 GB, free: 2.363 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.325e-06/0.5044, allocations: 0 / 0.5337 GB, free: 2.363 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2198/0.7243, allocations: 2.798 MB / 0.5364 GB, free: 123.9 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007964/0.7251, allocations: 302.8 kB / 0.5367 GB, free: 123.8 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003504/0.7255, allocations: 31.86 kB / 0.5367 GB, free: 123.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001026/0.7265, allocations: 45.14 kB / 0.5368 GB, free: 123.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001452/0.7267, allocations: 55.78 kB / 0.5368 GB, free: 123.8 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.487e-05/0.7268, allocations: 36.61 kB / 0.5368 GB, free: 123.8 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003125/0.7299, allocations: 1.837 MB / 0.5386 GB, free: 123.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.7299, allocations: 0 / 0.5386 GB, free: 123.4 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003603/0.7335, allocations: 0.8156 MB / 0.5394 GB, free: 123.3 MB / 462.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003152/0.7339, allocations: 172.4 kB / 0.5396 GB, free: 123.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004567/0.7384, allocations: 3.621 MB / 0.5431 GB, free: 122.1 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.7385, allocations: 0 / 0.5431 GB, free: 122.1 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007132/0.7392, allocations: 0.7301 MB / 0.5438 GB, free: 121.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001514/0.7407, allocations: 272.8 kB / 0.5441 GB, free: 121.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008441/0.7492, allocations: 7.046 MB / 0.551 GB, free: 118.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001682/0.7509, allocations: 2.382 MB / 0.5533 GB, free: 116.4 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002789/0.7537, allocations: 1.635 MB / 0.5549 GB, free: 115.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003933/0.7541, allocations: 187.1 kB / 0.5551 GB, free: 115.2 MB / 462.1 MB Notification: Performance of SimCode: time 9.51e-07/0.7541, allocations: 4 kB / 0.5551 GB, free: 115.2 MB / 462.1 MB Notification: Performance of Templates: time 0.03146/0.7856, allocations: 18.7 MB / 0.5733 GB, free: 97.28 MB / 462.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches