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.0007783/0.0007783, allocations: 102.1 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008358/0.0008359, allocations: 192.9 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 227.7 MB / 246.4 MB, free: 9.805 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002562/0.0002562, allocations: 8 kB / 307.1 MB, free: 0.9492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09841/0.09868, allocations: 51.53 MB / 358.6 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.1867/0.2854, allocations: 25.97 MB / 384.6 MB, free: 7.188 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01198/0.2974, allocations: 5.6 MB / 390.2 MB, free: 3.391 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004538/0.302, allocations: 112.9 kB / 390.3 MB, free: 3.375 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003369/0.3054, allocations: 1.332 MB / 391.6 MB, free: 2.906 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008905/0.3143, allocations: 3.738 MB / 395.4 MB, free: 1.223 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001103/0.3154, allocations: 230.5 kB / 395.6 MB, free: 1.059 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003275/0.3187, allocations: 2.557 MB / 398.2 MB, free: 15.6 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002594/0.3213, allocations: 1.897 MB / 400.1 MB, free: 14.43 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001091/0.3224, allocations: 0.7274 MB / 400.8 MB, free: 14.07 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001537/0.324, allocations: 1.193 MB / 402 MB, free: 13.49 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002559/0.3242, allocations: 90 kB / 402.1 MB, free: 13.49 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001336/0.3256, allocations: 0.544 MB / 402.6 MB, free: 13.24 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001061/0.3267, allocations: 1.059 MB / 403.7 MB, free: 12.68 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005343/0.3272, allocations: 0.5501 MB / 404.2 MB, free: 12.28 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002699/0.3299, allocations: 3.212 MB / 407.4 MB, free: 10.15 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.3299, allocations: 3.938 kB / 407.4 MB, free: 10.14 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.3299, allocations: 0 / 407.4 MB, free: 10.14 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.569e-05/0.33, allocations: 0 / 407.4 MB, free: 10.14 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.003088/0.3331, allocations: 2.42 MB / 409.9 MB, free: 7.848 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.3331, allocations: 15.97 kB / 409.9 MB, free: 7.832 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005951/0.3391, allocations: 1.821 MB / 411.7 MB, free: 6.004 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001925/0.341, allocations: 1.134 MB / 412.8 MB, free: 4.824 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001143/0.3412, allocations: 151.8 kB / 413 MB, free: 4.676 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003288/0.3415, allocations: 203.8 kB / 413.2 MB, free: 4.477 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01681/0.3583, allocations: 8.627 MB / 421.8 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.201e-05/0.3584, allocations: 35.66 kB / 421.8 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002702/0.3587, allocations: 99.89 kB / 421.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002704/0.3614, allocations: 1.671 MB / 423.6 MB, free: 9.445 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01631/0.3777, allocations: 7.178 MB / 430.8 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0312/0.409, allocations: 30.16 MB / 461 MB, free: 3.207 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02023/0.4293, allocations: 5.124 MB / 466.1 MB, free: 13.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001696/0.431, allocations: 1.243 MB / 467.3 MB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005527/0.4365, allocations: 3.841 MB / 471.2 MB, free: 8.633 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.105e-05/0.4366, allocations: 54.81 kB / 471.2 MB, free: 8.57 MB / 382.1 MB Notification: Performance of pre-optimization done (n=111): time 2.896e-06/0.4366, allocations: 4 kB / 471.2 MB, free: 8.566 MB / 382.1 MB Notification: Performance of matching and sorting (n=111): time 0.04068/0.4773, allocations: 9.402 MB / 480.6 MB, free: 15.08 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/0.4775, allocations: 195.9 kB / 480.8 MB, free: 14.84 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005629/0.4831, allocations: 3.019 MB / 483.8 MB, free: 11.8 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001908/0.4833, allocations: 41.69 kB / 483.9 MB, free: 11.76 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002803/0.4861, allocations: 2.418 MB / 486.3 MB, free: 9.301 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000928/0.4871, allocations: 0.4941 MB / 486.8 MB, free: 8.801 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004624/0.4876, allocations: 104 kB / 486.9 MB, free: 8.699 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0005278/0.4881, allocations: 0.5372 MB / 487.4 MB, free: 8.156 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002772/0.4909, allocations: 1.588 MB / 489 MB, free: 6.562 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005168/0.4961, allocations: 5.149 MB / 494.2 MB, free: 15.61 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004175/0.5003, allocations: 2.819 MB / 497 MB, free: 12.79 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001/0.5004, allocations: 36 kB / 497 MB, free: 12.76 MB / 414.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01109/0.5115, allocations: 6.409 MB / 0.4916 GB, free: 6.344 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001233/0.5116, allocations: 60 kB / 0.4917 GB, free: 6.285 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001966/0.5118, allocations: 128.2 kB / 0.4918 GB, free: 6.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000207/0.5121, allocations: 188 kB / 0.492 GB, free: 5.977 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004852/0.5169, allocations: 1.458 MB / 0.4934 GB, free: 4.516 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002163/0.5171, allocations: 251 kB / 0.4936 GB, free: 4.27 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003627/0.5208, allocations: 0.746 MB / 0.4944 GB, free: 3.516 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005631/0.5214, allocations: 344 kB / 0.4947 GB, free: 3.18 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.002814/0.5242, allocations: 1.584 MB / 0.4962 GB, free: 1.582 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005385/0.5247, allocations: 244.8 kB / 0.4965 GB, free: 1.34 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006815/0.5254, allocations: 311.3 kB / 0.4968 GB, free: 1.035 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.697e-05/0.5255, allocations: 16 kB / 0.4968 GB, free: 1.02 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-05/0.5255, allocations: 0 / 0.4968 GB, free: 1.02 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.925e-05/0.5255, allocations: 7.984 kB / 0.4968 GB, free: 1.012 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006433/0.5319, allocations: 3.403 MB / 0.5001 GB, free: 13.55 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.618e-06/0.532, allocations: 3.938 kB / 0.5001 GB, free: 13.54 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002206/0.5342, allocations: 411.5 kB / 0.5005 GB, free: 13.14 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.777e-05/0.5342, allocations: 4 kB / 0.5005 GB, free: 13.14 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001094/0.5343, allocations: 39.97 kB / 0.5006 GB, free: 13.1 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.009e-05/0.5343, allocations: 4 kB / 0.5006 GB, free: 13.09 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.928e-06/0.5344, allocations: 3.953 kB / 0.5006 GB, free: 13.09 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003407/0.5378, allocations: 2.795 MB / 0.5033 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005676/0.5383, allocations: 309.6 kB / 0.5036 GB, free: 9.945 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000407/0.5388, allocations: 31.97 kB / 0.5036 GB, free: 9.914 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009809/0.5397, allocations: 43.95 kB / 0.5037 GB, free: 9.871 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/0.5399, allocations: 63.75 kB / 0.5037 GB, free: 9.809 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8e-05/0.54, allocations: 39.98 kB / 0.5038 GB, free: 9.77 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00284/0.5428, allocations: 1.821 MB / 0.5055 GB, free: 7.945 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5428, allocations: 0 / 0.5055 GB, free: 7.945 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003886/0.5467, allocations: 0.822 MB / 0.5063 GB, free: 7.121 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.0003621/0.5471, allocations: 163.1 kB / 0.5065 GB, free: 6.953 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005637/0.5527, allocations: 3.578 MB / 0.51 GB, free: 3.406 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.5527, allocations: 0 / 0.51 GB, free: 3.406 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009653/0.5537, allocations: 0.7258 MB / 0.5107 GB, free: 2.68 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001695/0.5554, allocations: 259 kB / 0.511 GB, free: 2.43 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01308/0.5685, allocations: 8.485 MB / 0.5192 GB, free: 9.887 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002839/0.5714, allocations: 2.39 MB / 0.5216 GB, free: 7.469 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004192/0.5756, allocations: 1.637 MB / 0.5232 GB, free: 5.824 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005815/0.5762, allocations: 187.4 kB / 0.5234 GB, free: 5.645 MB / 446.1 MB Notification: Performance of SimCode: time 1.653e-06/0.5762, allocations: 0 / 0.5234 GB, free: 5.645 MB / 446.1 MB Notification: Performance of Templates: time 0.2112/0.7874, allocations: 20.01 MB / 0.5429 GB, free: 140.6 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","/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