Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009575/0.0009575, allocations: 79.69 kB / 21.7 MB, free: 2.848 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009638/0.0009638, allocations: 167.7 kB / 24.99 MB, free: 8.219 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9784/0.9784, allocations: 177 MB / 205.2 MB, free: 5.574 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.173e-06/1.173e-06, allocations: 0 / 273 MB, free: 1.727 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.581e-05/1.698e-05, allocations: 6.312 kB / 273 MB, free: 1.719 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.006207/0.006224, allocations: 7.723 MB / 280.7 MB, free: 9.957 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00363/0.009854, allocations: 2.508 MB / 283.2 MB, free: 7.438 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000508/0.01036, allocations: 43.81 kB / 283.3 MB, free: 7.395 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001696/0.01206, allocations: 1.522 MB / 284.8 MB, free: 5.867 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001615/0.01367, allocations: 1.049 MB / 285.9 MB, free: 4.812 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004132/0.01409, allocations: 287.1 kB / 286.1 MB, free: 4.531 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00147/0.01556, allocations: 2.211 MB / 288.3 MB, free: 2.316 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009646/0.01652, allocations: 1.391 MB / 289.7 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.112/0.1285, allocations: 1.234 MB / 291 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001965/0.1305, allocations: 1.218 MB / 292.2 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005551/0.131, allocations: 160.6 kB / 292.3 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001183/0.1322, allocations: 0.6174 MB / 293 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001087/0.1333, allocations: 1.224 MB / 294.2 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001357/0.1346, allocations: 0.7254 MB / 294.9 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00369/0.1383, allocations: 2.758 MB / 297.7 MB, free: 14.66 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.798e-06/0.1383, allocations: 2.75 kB / 297.7 MB, free: 14.66 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1383, allocations: 1.125 kB / 297.7 MB, free: 14.66 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001476/0.1385, allocations: 0 / 297.7 MB, free: 14.66 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.004327/0.1428, allocations: 3.209 MB / 300.9 MB, free: 13.22 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.1428, allocations: 14.3 kB / 300.9 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004314/0.1472, allocations: 2.24 MB / 303.1 MB, free: 13.01 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001321/0.1485, allocations: 1.066 MB / 304.2 MB, free: 12.67 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.727e-05/0.1485, allocations: 155.3 kB / 304.4 MB, free: 12.66 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002317/0.1488, allocations: 204.6 kB / 304.6 MB, free: 12.66 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00664/0.1554, allocations: 5.544 MB / 310.1 MB, free: 9.477 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.55e-05/0.1555, allocations: 39.48 kB / 310.1 MB, free: 9.469 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001967/0.1557, allocations: 101.4 kB / 310.2 MB, free: 9.434 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001344/0.157, allocations: 1.557 MB / 311.8 MB, free: 8.863 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006318/0.1633, allocations: 3.263 MB / 315.1 MB, free: 5.816 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0188/0.1821, allocations: 33.87 MB / 348.9 MB, free: 3.203 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009379/0.1915, allocations: 4.028 MB / 353 MB, free: 15.11 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004985/0.192, allocations: 389.5 kB / 353.3 MB, free: 14.7 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002503/0.1945, allocations: 2.652 MB / 356 MB, free: 12.04 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.183e-05/0.1946, allocations: 53.08 kB / 356 MB, free: 11.98 MB / 314.7 MB Notification: Performance of pre-optimization done (n=111): time 3.958e-06/0.1946, allocations: 0 / 356 MB, free: 11.98 MB / 314.7 MB Notification: Performance of matching and sorting (n=111): time 0.01865/0.2132, allocations: 7.57 MB / 363.6 MB, free: 4.414 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.214e-05/0.2133, allocations: 190.6 kB / 363.8 MB, free: 4.188 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003026/0.2163, allocations: 2.791 MB / 366.6 MB, free: 1.371 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.175e-05/0.2164, allocations: 37.7 kB / 366.6 MB, free: 1.328 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001586/0.218, allocations: 2.666 MB / 369.3 MB, free: 14.68 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003952/0.2183, allocations: 0.5312 MB / 369.8 MB, free: 14.15 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009844/0.2193, allocations: 1.172 MB / 371 MB, free: 12.97 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.2195, allocations: 0.5119 MB / 371.5 MB, free: 12.45 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000892/0.2204, allocations: 0.5063 MB / 372 MB, free: 11.94 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003319/0.2237, allocations: 5.794 MB / 377.8 MB, free: 3.691 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005098/0.2288, allocations: 6.95 MB / 384.8 MB, free: 10.31 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.261e-05/0.2288, allocations: 36 kB / 384.8 MB, free: 10.28 MB / 346.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.00525/0.2341, allocations: 4.532 MB / 389.3 MB, free: 5.742 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.331e-05/0.2341, allocations: 64.38 kB / 389.4 MB, free: 5.684 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001025/0.2342, allocations: 128 kB / 389.5 MB, free: 5.559 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001088/0.2343, allocations: 164 kB / 389.7 MB, free: 5.398 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00266/0.237, allocations: 1.458 MB / 391.1 MB, free: 3.938 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003624/0.2374, allocations: 247 kB / 391.4 MB, free: 3.695 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001999/0.2394, allocations: 0.7407 MB / 392.1 MB, free: 2.949 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002835/0.2397, allocations: 346.6 kB / 392.4 MB, free: 2.613 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.000955/0.2406, allocations: 0.6132 MB / 393.1 MB, free: 1.984 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002638/0.2409, allocations: 266.4 kB / 393.3 MB, free: 1.723 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000259/0.2411, allocations: 241.1 kB / 393.6 MB, free: 1.484 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.71e-05/0.2411, allocations: 16 kB / 393.6 MB, free: 1.469 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.2412, allocations: 0 / 393.6 MB, free: 1.469 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.226e-06/0.2412, allocations: 4.031 kB / 393.6 MB, free: 1.465 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003217/0.2444, allocations: 2.522 MB / 396.1 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.2444, allocations: 0 / 396.1 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001142/0.2455, allocations: 415 kB / 396.5 MB, free: 14.51 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.117e-06/0.2455, allocations: 8 kB / 396.5 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.935e-05/0.2456, allocations: 31.98 kB / 396.5 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/0.2456, allocations: 4 kB / 396.5 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.656e-06/0.2456, allocations: 6.281 kB / 396.5 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001389/0.247, allocations: 1.749 MB / 398.3 MB, free: 12.7 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000419/0.2474, allocations: 214.1 kB / 398.5 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001463/0.2476, allocations: 31.98 kB / 398.5 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004309/0.248, allocations: 39.95 kB / 398.6 MB, free: 12.42 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.292e-05/0.2481, allocations: 59.83 kB / 398.6 MB, free: 12.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.426e-05/0.2481, allocations: 30.66 kB / 398.7 MB, free: 12.33 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001182/0.2493, allocations: 1.119 MB / 399.8 MB, free: 11.2 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2493, allocations: 3.938 kB / 399.8 MB, free: 11.2 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002432/0.2517, allocations: 0.8419 MB / 400.6 MB, free: 10.36 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.0002923/0.252, allocations: 157.5 kB / 400.8 MB, free: 10.19 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002657/0.2547, allocations: 2.254 MB / 403 MB, free: 7.957 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.2547, allocations: 0 / 403 MB, free: 7.957 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003389/0.255, allocations: 312.9 kB / 403.3 MB, free: 7.652 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008796/0.2559, allocations: 233.2 kB / 403.6 MB, free: 7.434 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006073/0.262, allocations: 5.525 MB / 409.1 MB, free: 1.836 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006737/0.2627, allocations: 0.8228 MB / 409.9 MB, free: 0.9961 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001857/0.2645, allocations: 1.413 MB / 411.3 MB, free: 15.57 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002645/0.2648, allocations: 172.4 kB / 411.5 MB, free: 15.41 MB / 378.7 MB Notification: Performance of SimCode: time 1.062e-06/0.2648, allocations: 0 / 411.5 MB, free: 15.41 MB / 378.7 MB Notification: Performance of Templates: time 0.02707/0.2919, allocations: 15.16 MB / 426.7 MB, free: 0.6914 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.5282498409505934]