Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001249/0.001249, allocations: 79.75 kB / 21.19 MB, free: 3.375 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00134/0.00134, allocations: 161 kB / 24.56 MB, free: 8 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9666/0.9666, allocations: 177.1 MB / 205 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.044e-06/2.044e-06, allocations: 4 kB / 273 MB, free: 1.52 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.35e-05/1.554e-05, allocations: 2.312 kB / 273 MB, free: 1.516 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.005968/0.005983, allocations: 7.755 MB / 280.7 MB, free: 9.723 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003469/0.009452, allocations: 2.519 MB / 283.3 MB, free: 7.199 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004303/0.009883, allocations: 35.88 kB / 283.3 MB, free: 7.164 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001667/0.01155, allocations: 1.538 MB / 284.8 MB, free: 5.621 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001433/0.01298, allocations: 1.061 MB / 285.9 MB, free: 4.555 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004219/0.0134, allocations: 275.2 kB / 286.2 MB, free: 4.285 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001837/0.01524, allocations: 2.211 MB / 288.4 MB, free: 2.066 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001251/0.01649, allocations: 1.395 MB / 289.8 MB, free: 0.6406 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1106/0.1271, allocations: 1.232 MB / 291 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001781/0.1289, allocations: 1.217 MB / 292.2 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003978/0.1293, allocations: 160.3 kB / 292.4 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001031/0.1303, allocations: 0.6122 MB / 293 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009341/0.1313, allocations: 1.228 MB / 294.2 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009702/0.1322, allocations: 0.7264 MB / 294.9 MB, free: 15.86 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003144/0.1354, allocations: 2.758 MB / 297.7 MB, free: 15.4 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.1354, allocations: 1.469 kB / 297.7 MB, free: 15.4 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1354, allocations: 0.625 kB / 297.7 MB, free: 15.4 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.858e-05/0.1355, allocations: 0 / 297.7 MB, free: 15.4 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.003867/0.1394, allocations: 3.216 MB / 300.9 MB, free: 13.96 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.1394, allocations: 10.62 kB / 300.9 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004158/0.1435, allocations: 2.241 MB / 303.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001253/0.1448, allocations: 1.09 MB / 304.3 MB, free: 13.31 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.575e-05/0.1449, allocations: 156.4 kB / 304.4 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002225/0.1451, allocations: 205.7 kB / 304.6 MB, free: 13.23 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00691/0.152, allocations: 5.545 MB / 310.2 MB, free: 9.723 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.485e-05/0.1521, allocations: 43.5 kB / 310.2 MB, free: 9.715 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002001/0.1523, allocations: 99.3 kB / 310.3 MB, free: 9.676 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001322/0.1536, allocations: 1.556 MB / 311.9 MB, free: 9.004 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006013/0.1596, allocations: 3.266 MB / 315.1 MB, free: 5.922 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01761/0.1772, allocations: 33.86 MB / 349 MB, free: 3.305 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008975/0.1862, allocations: 4.019 MB / 353 MB, free: 15.21 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004621/0.1866, allocations: 390.4 kB / 353.4 MB, free: 14.8 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002459/0.1891, allocations: 2.651 MB / 356 MB, free: 12.14 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.217e-05/0.1891, allocations: 48.25 kB / 356.1 MB, free: 12.09 MB / 314.7 MB Notification: Performance of pre-optimization done (n=111): time 2.565e-06/0.1891, allocations: 0 / 356.1 MB, free: 12.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=111): time 0.01787/0.207, allocations: 7.584 MB / 363.7 MB, free: 4.516 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.225e-05/0.2071, allocations: 191.1 kB / 363.9 MB, free: 4.289 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002468/0.2095, allocations: 2.791 MB / 366.6 MB, free: 1.473 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.634e-05/0.2096, allocations: 41.7 kB / 366.7 MB, free: 1.426 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001471/0.2111, allocations: 2.664 MB / 369.4 MB, free: 14.78 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003986/0.2115, allocations: 0.5239 MB / 369.9 MB, free: 14.26 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0014/0.2129, allocations: 1.175 MB / 371.1 MB, free: 13.07 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001568/0.213, allocations: 0.5159 MB / 371.6 MB, free: 12.55 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009103/0.2139, allocations: 0.5063 MB / 372.1 MB, free: 12.04 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003257/0.2172, allocations: 5.795 MB / 377.9 MB, free: 3.785 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005376/0.2226, allocations: 6.942 MB / 384.8 MB, free: 10.41 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.01e-05/0.2226, allocations: 36 kB / 384.8 MB, free: 10.38 MB / 346.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.004969/0.2276, allocations: 4.544 MB / 389.4 MB, free: 5.832 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.142e-05/0.2276, allocations: 60.97 kB / 389.5 MB, free: 5.773 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.735e-05/0.2277, allocations: 128 kB / 389.6 MB, free: 5.648 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001002/0.2278, allocations: 164 kB / 389.7 MB, free: 5.488 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002555/0.2304, allocations: 1.458 MB / 391.2 MB, free: 4.027 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001147/0.2305, allocations: 243.1 kB / 391.4 MB, free: 3.789 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002029/0.2325, allocations: 0.7446 MB / 392.2 MB, free: 3.039 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000269/0.2328, allocations: 338.5 kB / 392.5 MB, free: 2.711 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.0008451/0.2336, allocations: 0.6133 MB / 393.1 MB, free: 2.082 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002379/0.2339, allocations: 266.4 kB / 393.4 MB, free: 1.82 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002357/0.2341, allocations: 241.1 kB / 393.6 MB, free: 1.582 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.76e-05/0.2341, allocations: 19.81 kB / 393.6 MB, free: 1.566 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.2341, allocations: 0 / 393.6 MB, free: 1.566 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.826e-06/0.2341, allocations: 7.984 kB / 393.6 MB, free: 1.559 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003063/0.2372, allocations: 2.517 MB / 396.2 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.2372, allocations: 0 / 396.2 MB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001137/0.2384, allocations: 411.5 kB / 396.6 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.512e-06/0.2384, allocations: 4 kB / 396.6 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.973e-05/0.2384, allocations: 31.97 kB / 396.6 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.2384, allocations: 4 kB / 396.6 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.2384, allocations: 0 / 396.6 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001409/0.2398, allocations: 1.755 MB / 398.4 MB, free: 12.8 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001654/0.24, allocations: 214.1 kB / 398.6 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001527/0.2402, allocations: 27.98 kB / 398.6 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004238/0.2406, allocations: 47.89 kB / 398.6 MB, free: 12.52 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.866e-05/0.2407, allocations: 55.84 kB / 398.7 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.519e-05/0.2407, allocations: 35.98 kB / 398.7 MB, free: 12.43 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001336/0.242, allocations: 1.107 MB / 399.8 MB, free: 11.31 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.242, allocations: 0 / 399.8 MB, free: 11.31 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002268/0.2443, allocations: 0.8496 MB / 400.7 MB, free: 10.46 MB / 362.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.0002634/0.2446, allocations: 151 kB / 400.8 MB, free: 10.3 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002384/0.247, allocations: 2.266 MB / 403.1 MB, free: 8.059 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.247, allocations: 0 / 403.1 MB, free: 8.059 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003209/0.2473, allocations: 306.2 kB / 403.4 MB, free: 7.754 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008626/0.2481, allocations: 238.1 kB / 403.6 MB, free: 7.531 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00602/0.2542, allocations: 5.526 MB / 409.2 MB, free: 1.938 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006368/0.2548, allocations: 0.8306 MB / 410 MB, free: 1.09 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001844/0.2566, allocations: 1.405 MB / 411.4 MB, free: 15.68 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002644/0.2569, allocations: 168.5 kB / 411.6 MB, free: 15.51 MB / 378.7 MB Notification: Performance of SimCode: time 1.453e-06/0.2569, allocations: 0 / 411.6 MB, free: 15.51 MB / 378.7 MB Notification: Performance of Templates: time 0.02503/0.2819, allocations: 15.94 MB / 427.5 MB, free: 12 kB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.4883405659347773]