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.001091/0.001091, allocations: 98.48 kB / 17.06 MB, free: 6.121 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.001273/0.001273, allocations: 194.9 kB / 17.99 MB, free: 5.199 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.368/1.368, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001096/0.001096, allocations: 47.92 kB / 351.3 MB, free: 3.223 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2886/0.2897, allocations: 49.43 MB / 400.7 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.0092/0.2989, allocations: 7.967 MB / 408.7 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004829/0.3038, allocations: 2.52 MB / 411.2 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009967/0.3048, allocations: 39.94 kB / 411.3 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002825/0.3077, allocations: 1.421 MB / 412.7 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002405/0.3101, allocations: 1.019 MB / 413.7 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007051/0.3108, allocations: 263.5 kB / 414 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002688/0.3135, allocations: 2.19 MB / 416.1 MB, free: 9.391 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001764/0.3153, allocations: 1.556 MB / 417.7 MB, free: 7.809 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001017/0.3163, allocations: 0.8367 MB / 418.5 MB, free: 6.969 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001232/0.3176, allocations: 1.187 MB / 419.7 MB, free: 5.777 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002518/0.3179, allocations: 160 kB / 419.9 MB, free: 5.621 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001095/0.319, allocations: 0.6709 MB / 420.6 MB, free: 4.949 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008908/0.3199, allocations: 1.173 MB / 421.7 MB, free: 3.773 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001091/0.321, allocations: 1.374 MB / 423.1 MB, free: 2.391 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003832/0.3248, allocations: 4.302 MB / 427.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.253e-06/0.3248, allocations: 3.984 kB / 427.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.3248, allocations: 0 / 427.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.506e-05/0.3249, allocations: 0 / 427.4 MB, free: 14.07 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.004356/0.3293, allocations: 2.964 MB / 430.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.854e-05/0.3293, allocations: 8.031 kB / 430.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007192/0.3365, allocations: 1.775 MB / 432.2 MB, free: 9.254 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002483/0.3391, allocations: 1.161 MB / 433.3 MB, free: 8.051 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001139/0.3392, allocations: 151.8 kB / 433.5 MB, free: 7.902 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004767/0.3397, allocations: 207.9 kB / 433.7 MB, free: 7.699 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01927/0.359, allocations: 8.592 MB / 442.3 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.521e-05/0.3591, allocations: 35.66 kB / 442.3 MB, free: 14.47 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002917/0.3594, allocations: 107.9 kB / 442.4 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002891/0.3623, allocations: 1.671 MB / 444.1 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01827/0.3806, allocations: 7.163 MB / 451.2 MB, free: 5.527 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03748/0.4181, allocations: 30.11 MB / 481.3 MB, free: 6.531 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02225/0.4404, allocations: 5.044 MB / 486.4 MB, free: 1.309 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001718/0.4422, allocations: 1.236 MB / 487.6 MB, free: 52 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005618/0.4478, allocations: 3.757 MB / 491.4 MB, free: 12.14 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.985e-05/0.4479, allocations: 50.81 kB / 491.4 MB, free: 12.09 MB / 414.1 MB Notification: Performance of pre-optimization done (n=111): time 3.937e-06/0.4479, allocations: 0 / 491.4 MB, free: 12.09 MB / 414.1 MB Notification: Performance of matching and sorting (n=111): time 0.04629/0.4942, allocations: 9.253 MB / 0.4889 GB, free: 2.746 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000121/0.4944, allocations: 195.9 kB / 0.4891 GB, free: 2.512 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005117/0.4995, allocations: 3.043 MB / 0.4921 GB, free: 15.45 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001773/0.4997, allocations: 41.7 kB / 0.4921 GB, free: 15.4 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001807/0.5015, allocations: 2.414 MB / 0.4945 GB, free: 12.95 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007165/0.5022, allocations: 0.5018 MB / 0.495 GB, free: 12.44 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001928/0.5042, allocations: 1.083 MB / 0.4961 GB, free: 11.34 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.5043, allocations: 309.1 kB / 0.4963 GB, free: 11.04 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002377/0.5067, allocations: 1.599 MB / 0.4979 GB, free: 9.434 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004623/0.5113, allocations: 5.166 MB / 0.503 GB, free: 2.465 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00747/0.5188, allocations: 7.333 MB / 0.5101 GB, free: 9.348 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001224/0.5189, allocations: 36 kB / 0.5101 GB, free: 9.312 MB / 446.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01056/0.5295, allocations: 6.432 MB / 0.5164 GB, free: 2.875 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001253/0.5297, allocations: 62.34 kB / 0.5165 GB, free: 2.816 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002021/0.5299, allocations: 132 kB / 0.5166 GB, free: 2.688 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001851/0.5301, allocations: 164 kB / 0.5168 GB, free: 2.527 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004974/0.5351, allocations: 1.458 MB / 0.5182 GB, free: 1.066 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002629/0.5354, allocations: 251 kB / 0.5184 GB, free: 0.8203 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00495/0.5403, allocations: 0.7421 MB / 0.5192 GB, free: 72 kB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009038/0.5413, allocations: 348.1 kB / 0.5195 GB, free: 15.73 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.003202/0.5445, allocations: 1.575 MB / 0.521 GB, free: 14.14 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005641/0.5451, allocations: 252.7 kB / 0.5213 GB, free: 13.89 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001562/0.5466, allocations: 0.8252 MB / 0.5221 GB, free: 13.06 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.661e-05/0.5467, allocations: 19.94 kB / 0.5221 GB, free: 13.04 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.083e-05/0.5467, allocations: 3.938 kB / 0.5221 GB, free: 13.04 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.507e-05/0.5467, allocations: 7.984 kB / 0.5221 GB, free: 13.03 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006948/0.5537, allocations: 3.384 MB / 0.5254 GB, free: 9.582 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.3e-05/0.5537, allocations: 4 kB / 0.5254 GB, free: 9.578 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00231/0.556, allocations: 411.9 kB / 0.5258 GB, free: 9.176 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.557e-05/0.5561, allocations: 4 kB / 0.5258 GB, free: 9.172 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001222/0.5562, allocations: 35.97 kB / 0.5258 GB, free: 9.137 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.544e-06/0.5562, allocations: 4 kB / 0.5258 GB, free: 9.133 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.5562, allocations: 3.938 kB / 0.5259 GB, free: 9.129 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003202/0.5594, allocations: 2.785 MB / 0.5286 GB, free: 6.312 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000603/0.5601, allocations: 297.7 kB / 0.5289 GB, free: 6 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000437/0.5605, allocations: 31.98 kB / 0.5289 GB, free: 5.969 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001047/0.5616, allocations: 43.95 kB / 0.5289 GB, free: 5.926 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001273/0.5617, allocations: 59.86 kB / 0.529 GB, free: 5.867 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.846e-05/0.5618, allocations: 36.02 kB / 0.529 GB, free: 5.832 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002992/0.5648, allocations: 1.841 MB / 0.5308 GB, free: 3.988 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5648, allocations: 0 / 0.5308 GB, free: 3.988 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004108/0.5689, allocations: 0.8339 MB / 0.5316 GB, free: 3.152 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.0004368/0.5694, allocations: 171.6 kB / 0.5318 GB, free: 2.977 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.2543/0.8236, allocations: 3.607 MB / 0.5353 GB, free: 131.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.158e-05/0.8237, allocations: 0.5625 kB / 0.5353 GB, free: 131.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001646/0.8253, allocations: 0.7193 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.003869/0.8292, allocations: 256.9 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.01824/0.8475, allocations: 7.052 MB / 0.5432 GB, free: 128.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003928/0.8515, allocations: 2.388 MB / 0.5455 GB, free: 127.6 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005412/0.857, allocations: 1.633 MB / 0.5471 GB, free: 127.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008497/0.8578, allocations: 190.9 kB / 0.5473 GB, free: 127.4 MB / 462.1 MB Notification: Performance of SimCode: time 2.515e-06/0.8579, allocations: 0 / 0.5473 GB, free: 127.4 MB / 462.1 MB Notification: Performance of Templates: time 0.04834/0.9062, allocations: 18.84 MB / 0.5657 GB, free: 110.5 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