Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001072/0.001072, allocations: 108.8 kB / 17.06 MB, free: 6.137 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001116/0.001116, allocations: 191 kB / 18 MB, free: 5.219 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.334/1.334, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001116/0.001117, allocations: 39.94 kB / 351.3 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2738/0.2749, allocations: 49.44 MB / 400.7 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.009748/0.2847, allocations: 7.969 MB / 408.7 MB, free: 1.023 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005233/0.29, allocations: 2.52 MB / 411.2 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009117/0.2909, allocations: 39.94 kB / 411.3 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002843/0.2938, allocations: 1.417 MB / 412.7 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002355/0.2962, allocations: 1.029 MB / 413.7 MB, free: 12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006548/0.2969, allocations: 259.5 kB / 414 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002402/0.2993, allocations: 2.196 MB / 416.2 MB, free: 9.543 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001626/0.301, allocations: 1.545 MB / 417.7 MB, free: 7.969 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00099/0.302, allocations: 0.8445 MB / 418.5 MB, free: 7.121 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001354/0.3033, allocations: 1.187 MB / 419.7 MB, free: 5.93 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002594/0.3036, allocations: 160 kB / 419.9 MB, free: 5.773 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00109/0.3047, allocations: 0.6669 MB / 420.6 MB, free: 5.105 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00093/0.3056, allocations: 1.161 MB / 421.7 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001065/0.3067, allocations: 1.386 MB / 423.1 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003922/0.3106, allocations: 4.304 MB / 427.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3107, allocations: 0 / 427.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3107, allocations: 0 / 427.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.432e-05/0.3107, allocations: 0 / 427.4 MB, free: 14.23 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.004578/0.3153, allocations: 2.96 MB / 430.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/0.3154, allocations: 12.03 kB / 430.4 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006356/0.3218, allocations: 1.783 MB / 432.2 MB, free: 9.402 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001988/0.3238, allocations: 1.154 MB / 433.3 MB, free: 8.207 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001159/0.3239, allocations: 155.8 kB / 433.5 MB, free: 8.055 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003905/0.3243, allocations: 203.9 kB / 433.7 MB, free: 7.855 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0171/0.3414, allocations: 8.588 MB / 442.3 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000103/0.3415, allocations: 47.58 kB / 442.3 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002496/0.3418, allocations: 103.9 kB / 442.4 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002675/0.3445, allocations: 1.671 MB / 444.1 MB, free: 12.85 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01657/0.3611, allocations: 7.171 MB / 451.2 MB, free: 5.672 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03192/0.393, allocations: 30.11 MB / 481.4 MB, free: 6.676 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02118/0.4142, allocations: 5.041 MB / 486.4 MB, free: 1.457 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001639/0.4159, allocations: 1.236 MB / 487.6 MB, free: 204 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005534/0.4214, allocations: 3.757 MB / 491.4 MB, free: 12.29 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.296e-05/0.4215, allocations: 46.83 kB / 491.4 MB, free: 12.24 MB / 414.1 MB Notification: Performance of pre-optimization done (n=111): time 3.627e-06/0.4215, allocations: 0 / 491.4 MB, free: 12.24 MB / 414.1 MB Notification: Performance of matching and sorting (n=111): time 0.04385/0.4654, allocations: 9.256 MB / 0.489 GB, free: 2.895 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/0.4655, allocations: 191.9 kB / 0.4891 GB, free: 2.664 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004671/0.4702, allocations: 3.035 MB / 0.4921 GB, free: 15.61 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001562/0.4704, allocations: 41.7 kB / 0.4921 GB, free: 15.56 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001808/0.4722, allocations: 2.422 MB / 0.4945 GB, free: 13.1 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006617/0.4729, allocations: 0.498 MB / 0.495 GB, free: 12.6 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001412/0.4743, allocations: 1.083 MB / 0.496 GB, free: 11.5 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 9.473e-05/0.4744, allocations: 305.1 kB / 0.4963 GB, free: 11.2 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002204/0.4766, allocations: 1.607 MB / 0.4979 GB, free: 9.59 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004526/0.4811, allocations: 5.173 MB / 0.503 GB, free: 2.613 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008077/0.4892, allocations: 7.32 MB / 0.5101 GB, free: 9.512 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.256e-05/0.4894, allocations: 40 kB / 0.5101 GB, free: 9.473 MB / 446.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01068/0.5, allocations: 6.44 MB / 0.5164 GB, free: 3.027 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.177e-05/0.5002, allocations: 60 kB / 0.5165 GB, free: 2.969 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001658/0.5003, allocations: 124 kB / 0.5166 GB, free: 2.848 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001751/0.5005, allocations: 168 kB / 0.5168 GB, free: 2.684 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004858/0.5054, allocations: 1.458 MB / 0.5182 GB, free: 1.223 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002105/0.5056, allocations: 247 kB / 0.5184 GB, free: 0.9805 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003554/0.5092, allocations: 0.7503 MB / 0.5192 GB, free: 228 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006485/0.5098, allocations: 348.2 kB / 0.5195 GB, free: 15.88 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.002322/0.5122, allocations: 1.567 MB / 0.521 GB, free: 14.3 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005333/0.5127, allocations: 252.7 kB / 0.5213 GB, free: 14.05 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001417/0.5141, allocations: 0.833 MB / 0.5221 GB, free: 13.21 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.683e-05/0.5142, allocations: 19.94 kB / 0.5221 GB, free: 13.19 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/0.5142, allocations: 0 / 0.5221 GB, free: 13.19 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.327e-05/0.5142, allocations: 7.984 kB / 0.5221 GB, free: 13.18 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00612/0.5203, allocations: 3.38 MB / 0.5254 GB, free: 9.742 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.5204, allocations: 0 / 0.5254 GB, free: 9.742 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002371/0.5227, allocations: 415.4 kB / 0.5258 GB, free: 9.336 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.636e-05/0.5228, allocations: 4 kB / 0.5258 GB, free: 9.332 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000112/0.5229, allocations: 35.97 kB / 0.5258 GB, free: 9.297 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.356e-06/0.5229, allocations: 8 kB / 0.5259 GB, free: 9.289 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.5229, allocations: 0 / 0.5259 GB, free: 9.289 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003359/0.5263, allocations: 2.792 MB / 0.5286 GB, free: 6.469 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005755/0.5269, allocations: 301.6 kB / 0.5289 GB, free: 6.152 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003598/0.5272, allocations: 27.98 kB / 0.5289 GB, free: 6.125 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009978/0.5282, allocations: 47.95 kB / 0.5289 GB, free: 6.078 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001395/0.5284, allocations: 47.92 kB / 0.529 GB, free: 6.031 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.75e-05/0.5285, allocations: 35.98 kB / 0.529 GB, free: 5.996 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003172/0.5317, allocations: 1.845 MB / 0.5308 GB, free: 4.148 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.063e-06/0.5317, allocations: 0 / 0.5308 GB, free: 4.148 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004727/0.5364, allocations: 0.8299 MB / 0.5316 GB, free: 3.316 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.0004397/0.5369, allocations: 171.7 kB / 0.5318 GB, free: 3.141 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.2039/0.7408, allocations: 3.611 MB / 0.5353 GB, free: 131.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.164e-06/0.7408, allocations: 0.5625 kB / 0.5353 GB, free: 131.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001336/0.7422, allocations: 0.7125 MB / 0.536 GB, free: 131.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002319/0.7445, allocations: 261.7 kB / 0.5363 GB, free: 131.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01226/0.7568, allocations: 7.062 MB / 0.5432 GB, free: 128.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003662/0.7605, allocations: 2.384 MB / 0.5455 GB, free: 127.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00371/0.7642, allocations: 1.627 MB / 0.5471 GB, free: 127.5 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000531/0.7648, allocations: 194.7 kB / 0.5473 GB, free: 127.5 MB / 462.1 MB Notification: Performance of SimCode: time 2.865e-06/0.7648, allocations: 0 / 0.5473 GB, free: 127.5 MB / 462.1 MB Notification: Performance of Templates: time 0.03549/0.8003, allocations: 18.84 MB / 0.5657 GB, free: 110.7 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches