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.0009919/0.0009919, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.001079/0.001079, allocations: 145.1 kB / 24.54 MB, free: 28 kB / 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.003/1.003, allocations: 173.4 MB / 201.1 MB, free: 9.32 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.293e-06/1.293e-06, allocations: 0 / 268 MB, free: 6.406 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.074e-05/2.203e-05, allocations: 6.25 kB / 268 MB, free: 6.398 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.006444/0.006466, allocations: 7.776 MB / 275.8 MB, free: 14.58 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003972/0.01044, allocations: 2.477 MB / 278.3 MB, free: 12.09 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004628/0.0109, allocations: 43.81 kB / 278.3 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001827/0.01273, allocations: 1.526 MB / 279.8 MB, free: 10.52 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001551/0.01428, allocations: 1.061 MB / 280.9 MB, free: 9.453 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004338/0.01471, allocations: 283.1 kB / 281.2 MB, free: 9.176 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001758/0.01647, allocations: 2.242 MB / 283.4 MB, free: 6.926 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001033/0.0175, allocations: 1.392 MB / 284.8 MB, free: 5.508 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008989/0.0184, allocations: 1.251 MB / 286.1 MB, free: 4.254 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001031/0.01943, allocations: 1.227 MB / 287.3 MB, free: 3.023 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001899/0.01962, allocations: 160 kB / 287.4 MB, free: 2.867 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008761/0.0205, allocations: 0.6084 MB / 288 MB, free: 2.258 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006897/0.02119, allocations: 1.25 MB / 289.3 MB, free: 1.004 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005681/0.02176, allocations: 0.7396 MB / 290 MB, free: 268 kB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1308/0.1526, allocations: 2.789 MB / 292.8 MB, free: 18.2 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.122e-06/0.1526, allocations: 6.078 kB / 292.8 MB, free: 18.2 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1526, allocations: 0 / 292.8 MB, free: 18.2 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.000152/0.1527, allocations: 0.5312 kB / 292.8 MB, free: 18.2 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.00519/0.1579, allocations: 3.238 MB / 296.1 MB, free: 16.74 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.1579, allocations: 15.41 kB / 296.1 MB, free: 16.74 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004644/0.1626, allocations: 2.238 MB / 298.3 MB, free: 16.53 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001635/0.1642, allocations: 1.059 MB / 299.4 MB, free: 16.2 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.788e-05/0.1643, allocations: 154.4 kB / 299.5 MB, free: 16.2 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003059/0.1646, allocations: 209.7 kB / 299.7 MB, free: 16.19 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007782/0.1724, allocations: 5.527 MB / 305.3 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.882e-05/0.1725, allocations: 34.62 kB / 305.3 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001986/0.1727, allocations: 103.9 kB / 305.4 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001472/0.1741, allocations: 1.558 MB / 307 MB, free: 13.65 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006551/0.1807, allocations: 3.251 MB / 310.2 MB, free: 12.78 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01813/0.1988, allocations: 33.88 MB / 344.1 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009017/0.2078, allocations: 4.01 MB / 348.1 MB, free: 7.074 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004894/0.2083, allocations: 389.1 kB / 348.5 MB, free: 6.668 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002682/0.211, allocations: 2.654 MB / 351.1 MB, free: 4.012 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.414e-05/0.211, allocations: 57.08 kB / 351.2 MB, free: 3.949 MB / 298.7 MB Notification: Performance of pre-optimization done (n=111): time 2.625e-06/0.211, allocations: 0 / 351.2 MB, free: 3.949 MB / 298.7 MB Notification: Performance of matching and sorting (n=111): time 0.01842/0.2295, allocations: 7.551 MB / 358.7 MB, free: 12.4 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.874e-05/0.2295, allocations: 191.9 kB / 358.9 MB, free: 12.17 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002984/0.2325, allocations: 2.79 MB / 361.7 MB, free: 9.363 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.926e-05/0.2326, allocations: 44.36 kB / 361.8 MB, free: 9.316 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001221/0.2338, allocations: 2.667 MB / 364.4 MB, free: 6.676 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003698/0.2342, allocations: 0.526 MB / 365 MB, free: 6.156 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00111/0.2353, allocations: 1.176 MB / 366.1 MB, free: 4.969 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.2354, allocations: 0.5159 MB / 366.6 MB, free: 4.445 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000802/0.2362, allocations: 0.4946 MB / 367.1 MB, free: 3.945 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003151/0.2394, allocations: 5.798 MB / 372.9 MB, free: 11.72 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004662/0.244, allocations: 6.965 MB / 379.9 MB, free: 2.328 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.269e-05/0.2441, allocations: 36.88 kB / 379.9 MB, free: 2.293 MB / 330.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.005118/0.2492, allocations: 4.542 MB / 384.5 MB, free: 13.75 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.388e-05/0.2492, allocations: 60 kB / 384.5 MB, free: 13.7 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.176e-05/0.2493, allocations: 128 kB / 384.7 MB, free: 13.57 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001071/0.2494, allocations: 168 kB / 384.8 MB, free: 13.41 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002619/0.2521, allocations: 1.447 MB / 386.3 MB, free: 11.96 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001177/0.2522, allocations: 244.2 kB / 386.5 MB, free: 11.72 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001981/0.2542, allocations: 0.7435 MB / 387.3 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002833/0.2544, allocations: 336.5 kB / 387.6 MB, free: 10.65 MB / 346.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.0009413/0.2554, allocations: 0.6171 MB / 388.2 MB, free: 10.02 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002704/0.2557, allocations: 266.4 kB / 388.5 MB, free: 9.754 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005628/0.2562, allocations: 479 kB / 388.9 MB, free: 9.277 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.886e-05/0.2562, allocations: 23.11 kB / 389 MB, free: 9.258 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.2562, allocations: 3.828 kB / 389 MB, free: 9.258 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.854e-06/0.2563, allocations: 7.984 kB / 389 MB, free: 9.25 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003417/0.2597, allocations: 2.501 MB / 391.5 MB, free: 6.723 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/0.2597, allocations: 4 kB / 391.5 MB, free: 6.719 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00115/0.2608, allocations: 399.5 kB / 391.9 MB, free: 6.328 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.454e-06/0.2608, allocations: 4 kB / 391.9 MB, free: 6.324 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.273e-05/0.2609, allocations: 35.98 kB / 391.9 MB, free: 6.289 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.459e-06/0.2609, allocations: 4 kB / 391.9 MB, free: 6.285 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.2609, allocations: 7.984 kB / 391.9 MB, free: 6.277 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001344/0.2623, allocations: 1.755 MB / 393.7 MB, free: 4.496 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001912/0.2624, allocations: 206.2 kB / 393.9 MB, free: 4.293 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000141/0.2626, allocations: 34.72 kB / 393.9 MB, free: 4.262 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004244/0.263, allocations: 35.95 kB / 393.9 MB, free: 4.227 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.415e-05/0.2631, allocations: 67.77 kB / 394 MB, free: 4.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.691e-05/0.2631, allocations: 35.98 kB / 394 MB, free: 4.125 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001157/0.2643, allocations: 1.115 MB / 395.2 MB, free: 3 MB / 346.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2643, allocations: 0 / 395.2 MB, free: 3 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002476/0.2668, allocations: 0.8607 MB / 396 MB, free: 2.141 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.0003038/0.2671, allocations: 166.9 kB / 396.2 MB, free: 1.973 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002882/0.27, allocations: 2.262 MB / 398.4 MB, free: 15.73 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.27, allocations: 0 / 398.4 MB, free: 15.73 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003241/0.2703, allocations: 302.5 kB / 398.7 MB, free: 15.43 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008971/0.2712, allocations: 252.3 kB / 399 MB, free: 15.21 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00654/0.2777, allocations: 5.534 MB / 404.5 MB, free: 9.598 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006712/0.2784, allocations: 0.819 MB / 405.3 MB, free: 8.762 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001908/0.2803, allocations: 1.405 MB / 406.7 MB, free: 7.352 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002839/0.2806, allocations: 176.5 kB / 406.9 MB, free: 7.18 MB / 362.7 MB Notification: Performance of SimCode: time 1.142e-06/0.2806, allocations: 0 / 406.9 MB, free: 7.18 MB / 362.7 MB Notification: Performance of Templates: time 0.02486/0.3054, allocations: 15.21 MB / 422.1 MB, free: 8.395 MB / 378.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.8383885761722922]