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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008886/0.0008886, allocations: 78.97 kB / 21.42 MB, free: 3.078 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008979/0.0008979, allocations: 148.9 kB / 24.81 MB, free: 9.27 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.057/1.057, allocations: 173.3 MB / 201.4 MB, free: 9.238 MB / 186.7 MB " [Timeout remaining time 179] 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=5002,variableFilter="time|body1.r_0.[0-9,]+.|body1.v_0.[0-9,]+.|body2.r_0.[0-9,]+.|body2.v_0.[0-9,]+.|body3.r_0.[0-9,]+.|body3.v_0.[0-9,]+.|body4.r_0.[0-9,]+.|body4.v_0.[0-9,]+.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body1.r_0.[0-9,]+.|body1.v_0.[0-9,]+.|body2.r_0.[0-9,]+.|body2.v_0.[0-9,]+.|body3.r_0.[0-9,]+.|body3.v_0.[0-9,]+.|body4.r_0.[0-9,]+.|body4.v_0.[0-9,]+.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.543e-06/1.543e-06, allocations: 0 / 268.4 MB, free: 6.207 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.627e-05/1.781e-05, allocations: 2.312 kB / 268.4 MB, free: 6.203 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.006709/0.006727, allocations: 7.552 MB / 276 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003825/0.01055, allocations: 2.454 MB / 278.4 MB, free: 12.15 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005629/0.01112, allocations: 47.75 kB / 278.5 MB, free: 12.1 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001882/0.013, allocations: 1.499 MB / 280 MB, free: 10.6 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001571/0.01457, allocations: 1.057 MB / 281 MB, free: 9.535 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000444/0.01501, allocations: 287.1 kB / 281.3 MB, free: 9.254 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001954/0.01697, allocations: 2.246 MB / 283.6 MB, free: 7 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001643/0.01861, allocations: 1.395 MB / 285 MB, free: 5.578 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001351/0.01996, allocations: 1.251 MB / 286.2 MB, free: 4.324 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001288/0.02125, allocations: 1.227 MB / 287.4 MB, free: 3.094 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002226/0.02147, allocations: 160 kB / 287.6 MB, free: 2.938 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008899/0.02236, allocations: 0.6162 MB / 288.2 MB, free: 2.32 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007161/0.02308, allocations: 1.246 MB / 289.4 MB, free: 1.07 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005786/0.02366, allocations: 0.7396 MB / 290.2 MB, free: 336 kB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1202/0.1439, allocations: 2.803 MB / 293 MB, free: 18.21 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.1439, allocations: 0 / 293 MB, free: 18.21 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1439, allocations: 0 / 293 MB, free: 18.21 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.773e-05/0.144, allocations: 0 / 293 MB, free: 18.21 MB / 266.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.00418/0.1481, allocations: 3.253 MB / 296.2 MB, free: 16.77 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.1482, allocations: 12.09 kB / 296.3 MB, free: 16.77 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003396/0.1516, allocations: 1.203 MB / 297.5 MB, free: 16.56 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001626/0.1532, allocations: 0.998 MB / 298.5 MB, free: 16.23 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.805e-05/0.1533, allocations: 158.5 kB / 298.6 MB, free: 16.22 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002926/0.1536, allocations: 204.8 kB / 298.8 MB, free: 16.22 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008273/0.1619, allocations: 4.628 MB / 303.4 MB, free: 13.87 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001049/0.162, allocations: 38.58 kB / 303.5 MB, free: 13.87 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002587/0.1622, allocations: 102 kB / 303.6 MB, free: 13.87 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001734/0.164, allocations: 1.393 MB / 305 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006301/0.1703, allocations: 2.27 MB / 307.2 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02484/0.1951, allocations: 33.62 MB / 340.9 MB, free: 15.37 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009676/0.2048, allocations: 2.643 MB / 343.5 MB, free: 12.68 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006009/0.2054, allocations: 333.4 kB / 343.8 MB, free: 12.33 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003489/0.2089, allocations: 2.582 MB / 346.4 MB, free: 9.762 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.392e-05/0.2089, allocations: 53.47 kB / 346.5 MB, free: 9.703 MB / 298.7 MB Notification: Performance of pre-optimization done (n=111): time 4.488e-06/0.2089, allocations: 0 / 346.5 MB, free: 9.703 MB / 298.7 MB Notification: Performance of matching and sorting (n=111): time 0.01417/0.2231, allocations: 4.638 MB / 351.1 MB, free: 5.082 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.923e-05/0.2232, allocations: 199.4 kB / 351.3 MB, free: 4.848 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003347/0.2265, allocations: 2.807 MB / 354.1 MB, free: 2.473 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.822e-05/0.2266, allocations: 33.7 kB / 354.1 MB, free: 2.434 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001418/0.228, allocations: 2.687 MB / 356.8 MB, free: 15.87 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000452/0.2285, allocations: 0.531 MB / 357.3 MB, free: 15.37 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001104/0.2296, allocations: 1.196 MB / 358.5 MB, free: 14.28 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001721/0.2298, allocations: 0.5179 MB / 359.1 MB, free: 13.77 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006423/0.2304, allocations: 406.5 kB / 359.5 MB, free: 13.37 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003596/0.234, allocations: 5.721 MB / 365.2 MB, free: 5.387 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005105/0.2391, allocations: 6.836 MB / 372 MB, free: 12.27 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.965e-05/0.2392, allocations: 36 kB / 372.1 MB, free: 12.24 MB / 330.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.005634/0.2448, allocations: 4.251 MB / 376.3 MB, free: 7.988 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.153e-05/0.2449, allocations: 56 kB / 376.4 MB, free: 7.934 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.312e-05/0.245, allocations: 128 kB / 376.5 MB, free: 7.809 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001019/0.2451, allocations: 168 kB / 376.6 MB, free: 7.645 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002671/0.2478, allocations: 1.353 MB / 378 MB, free: 6.289 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001188/0.2479, allocations: 243.1 kB / 378.2 MB, free: 6.051 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002831/0.2507, allocations: 0.716 MB / 379 MB, free: 5.336 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002589/0.251, allocations: 300 kB / 379.2 MB, free: 5.043 MB / 330.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001046/0.252, allocations: 0.6151 MB / 379.9 MB, free: 4.418 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002589/0.2523, allocations: 272.8 kB / 380.1 MB, free: 4.152 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005191/0.2528, allocations: 451 kB / 380.6 MB, free: 3.703 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.568e-05/0.2528, allocations: 12 kB / 380.6 MB, free: 3.691 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/0.2528, allocations: 0 / 380.6 MB, free: 3.691 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.207e-06/0.2528, allocations: 15.59 kB / 380.6 MB, free: 3.68 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002611/0.2554, allocations: 1.818 MB / 382.4 MB, free: 1.91 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.249e-06/0.2554, allocations: 0 / 382.4 MB, free: 1.91 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009584/0.2564, allocations: 303.7 kB / 382.7 MB, free: 1.613 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.2564, allocations: 4 kB / 382.7 MB, free: 1.609 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.075e-05/0.2564, allocations: 27.98 kB / 382.7 MB, free: 1.582 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.051e-06/0.2565, allocations: 11.92 kB / 382.8 MB, free: 1.57 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.2565, allocations: 4 kB / 382.8 MB, free: 1.566 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001135/0.2576, allocations: 1.681 MB / 384.4 MB, free: 15.85 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001755/0.2578, allocations: 206.2 kB / 384.6 MB, free: 15.65 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000141/0.2579, allocations: 31.98 kB / 384.7 MB, free: 15.62 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003899/0.2583, allocations: 19.98 kB / 384.7 MB, free: 15.6 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.406e-05/0.2584, allocations: 59.83 kB / 384.7 MB, free: 15.54 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.068e-05/0.2584, allocations: 27.98 kB / 384.8 MB, free: 15.51 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0008739/0.2593, allocations: 1.049 MB / 385.8 MB, free: 14.45 MB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2593, allocations: 3.5 kB / 385.8 MB, free: 14.45 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002513/0.2618, allocations: 0.8614 MB / 386.7 MB, free: 13.59 MB / 346.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 (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.0003119/0.2621, allocations: 162.9 kB / 386.8 MB, free: 13.42 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002379/0.2645, allocations: 2.138 MB / 389 MB, free: 11.3 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.2645, allocations: 0 / 389 MB, free: 11.3 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002737/0.2648, allocations: 281.2 kB / 389.3 MB, free: 11.02 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009284/0.2657, allocations: 219.1 kB / 389.5 MB, free: 10.82 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006864/0.2726, allocations: 5.554 MB / 395 MB, free: 5.188 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006818/0.2732, allocations: 0.8268 MB / 395.9 MB, free: 4.344 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000911/0.2742, allocations: 397 kB / 396.2 MB, free: 3.953 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004675/0.2746, allocations: 430.1 kB / 396.7 MB, free: 3.531 MB / 346.7 MB Notification: Performance of SimCode: time 1.002e-06/0.2746, allocations: 0 / 396.7 MB, free: 3.531 MB / 346.7 MB Notification: Performance of Templates: time 0.02792/0.3025, allocations: 17.48 MB / 414.1 MB, free: 2.23 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.5547152999788523]