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.001192/0.001192, allocations: 82.28 kB / 22.21 MB, free: 2.293 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.0008972/0.0008972, allocations: 146.3 kB / 25.59 MB, free: 8.91 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 0.971/0.971, allocations: 173.4 MB / 202.2 MB, free: 8.273 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.202e-06/1.202e-06, allocations: 0 / 269.2 MB, free: 9.762 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.049e-05/1.169e-05, allocations: 2.312 kB / 269.2 MB, free: 9.758 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.005879/0.005891, allocations: 7.547 MB / 276.8 MB, free: 2.184 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003727/0.009618, allocations: 2.459 MB / 279.2 MB, free: 15.73 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004658/0.01008, allocations: 43.81 kB / 279.3 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001661/0.01174, allocations: 1.499 MB / 280.8 MB, free: 14.18 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001753/0.0135, allocations: 1.061 MB / 281.8 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004566/0.01395, allocations: 283.1 kB / 282.1 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002028/0.01598, allocations: 2.245 MB / 284.3 MB, free: 10.59 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00124/0.01722, allocations: 1.399 MB / 285.7 MB, free: 9.16 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001147/0.01837, allocations: 1.255 MB / 287 MB, free: 7.902 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00142/0.01979, allocations: 1.227 MB / 288.2 MB, free: 6.672 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001502/0.01994, allocations: 160 kB / 288.4 MB, free: 6.516 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007236/0.02066, allocations: 0.62 MB / 289 MB, free: 5.895 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006765/0.02134, allocations: 1.239 MB / 290.2 MB, free: 4.652 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004853/0.02182, allocations: 0.7435 MB / 291 MB, free: 3.906 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001863/0.02369, allocations: 2.793 MB / 293.8 MB, free: 1.102 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.02369, allocations: 4 kB / 293.8 MB, free: 1.098 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.12e-07/0.02369, allocations: 3.938 kB / 293.8 MB, free: 1.094 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.792e-05/0.02371, allocations: 0 / 293.8 MB, free: 1.094 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.002686/0.0264, allocations: 3.256 MB / 297 MB, free: 13.78 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.02643, allocations: 8.031 kB / 297 MB, free: 13.77 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002712/0.02914, allocations: 1.201 MB / 298.2 MB, free: 12.57 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009314/0.03007, allocations: 1.001 MB / 299.2 MB, free: 11.54 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.309e-05/0.03015, allocations: 157.9 kB / 299.4 MB, free: 11.38 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002173/0.03036, allocations: 203.8 kB / 299.6 MB, free: 11.18 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005595/0.03596, allocations: 4.626 MB / 304.2 MB, free: 5.742 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.222e-05/0.03601, allocations: 43.62 kB / 304.3 MB, free: 5.699 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001631/0.03617, allocations: 103.8 kB / 304.4 MB, free: 5.598 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001168/0.03734, allocations: 1.39 MB / 305.8 MB, free: 4.203 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00439/0.04173, allocations: 2.272 MB / 308 MB, free: 1.934 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01856/0.06029, allocations: 33.62 MB / 341.7 MB, free: 15.19 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007268/0.06756, allocations: 2.646 MB / 344.3 MB, free: 12.46 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003643/0.06792, allocations: 340 kB / 344.6 MB, free: 12.1 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002609/0.07053, allocations: 2.565 MB / 347.2 MB, free: 9.496 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.165e-05/0.07056, allocations: 53.64 kB / 347.2 MB, free: 9.434 MB / 330.7 MB Notification: Performance of pre-optimization done (n=111): time 2.775e-06/0.07056, allocations: 4 kB / 347.3 MB, free: 9.43 MB / 330.7 MB Notification: Performance of matching and sorting (n=111): time 0.01378/0.08434, allocations: 4.646 MB / 351.9 MB, free: 4.777 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.898e-05/0.08441, allocations: 187.9 kB / 352.1 MB, free: 4.551 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002532/0.08694, allocations: 2.794 MB / 354.9 MB, free: 1.73 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.511e-05/0.08699, allocations: 41.7 kB / 354.9 MB, free: 1.684 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1259/0.2129, allocations: 2.687 MB / 357.6 MB, free: 86.85 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007499/0.2136, allocations: 0.5375 MB / 358.1 MB, free: 86.62 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001296/0.2149, allocations: 1.189 MB / 359.3 MB, free: 86.48 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.67e-05/0.215, allocations: 0.5152 MB / 359.8 MB, free: 86 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006977/0.2157, allocations: 405.4 kB / 360.2 MB, free: 85.99 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002258/0.218, allocations: 5.713 MB / 366 MB, free: 79.1 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003883/0.2218, allocations: 6.842 MB / 372.8 MB, free: 71.93 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.462e-05/0.2219, allocations: 39.16 kB / 372.8 MB, free: 71.93 MB / 330.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.00516/0.2271, allocations: 4.244 MB / 377.1 MB, free: 70.84 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.197e-05/0.2271, allocations: 58.94 kB / 377.1 MB, free: 70.84 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.767e-05/0.2272, allocations: 133.5 kB / 377.3 MB, free: 70.84 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.805e-05/0.2273, allocations: 165.5 kB / 377.4 MB, free: 70.84 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002379/0.2297, allocations: 1.348 MB / 378.8 MB, free: 70.55 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001184/0.2298, allocations: 252.8 kB / 379 MB, free: 70.32 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00186/0.2317, allocations: 0.7134 MB / 379.7 MB, free: 69.87 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002159/0.2319, allocations: 300.1 kB / 380 MB, free: 69.62 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.0007698/0.2327, allocations: 0.614 MB / 380.6 MB, free: 69.21 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002533/0.2329, allocations: 267.2 kB / 380.9 MB, free: 68.96 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004402/0.2334, allocations: 458.8 kB / 381.4 MB, free: 68.68 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.508e-05/0.2334, allocations: 15.31 kB / 381.4 MB, free: 68.66 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.2334, allocations: 0 / 381.4 MB, free: 68.66 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.168e-06/0.2334, allocations: 11.55 kB / 381.4 MB, free: 68.66 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002102/0.2355, allocations: 1.818 MB / 383.2 MB, free: 67.25 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/0.2355, allocations: 1.969 kB / 383.2 MB, free: 67.25 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009452/0.2364, allocations: 304.6 kB / 383.5 MB, free: 67 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.621e-06/0.2364, allocations: 4 kB / 383.5 MB, free: 66.99 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.756e-05/0.2365, allocations: 33.95 kB / 383.5 MB, free: 66.96 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.478e-06/0.2365, allocations: 7.938 kB / 383.5 MB, free: 66.96 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.2365, allocations: 7.938 kB / 383.5 MB, free: 66.95 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009415/0.2374, allocations: 1.674 MB / 385.2 MB, free: 65.35 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001411/0.2376, allocations: 210.2 kB / 385.4 MB, free: 65.16 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001406/0.2377, allocations: 31.36 kB / 385.5 MB, free: 65.13 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003944/0.2381, allocations: 23.94 kB / 385.5 MB, free: 65.11 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.632e-05/0.2382, allocations: 50.2 kB / 385.5 MB, free: 65.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.691e-05/0.2382, allocations: 35.7 kB / 385.6 MB, free: 65.05 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006452/0.2389, allocations: 1.051 MB / 386.6 MB, free: 64.29 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2389, allocations: 0 / 386.6 MB, free: 64.29 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002023/0.2409, allocations: 0.8566 MB / 387.5 MB, free: 63.5 MB / 330.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.0002404/0.2411, allocations: 166.1 kB / 387.6 MB, free: 63.34 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001693/0.2428, allocations: 2.136 MB / 389.8 MB, free: 61.53 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.2428, allocations: 0 / 389.8 MB, free: 61.53 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002194/0.243, allocations: 276.8 kB / 390 MB, free: 61.29 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008294/0.2439, allocations: 227.3 kB / 390.3 MB, free: 61.09 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004502/0.2484, allocations: 5.544 MB / 395.8 MB, free: 55.89 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005324/0.2489, allocations: 0.819 MB / 396.6 MB, free: 55.05 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007894/0.2497, allocations: 400.9 kB / 397 MB, free: 54.66 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004039/0.2501, allocations: 434.1 kB / 397.4 MB, free: 54.23 MB / 330.7 MB Notification: Performance of SimCode: time 1.262e-06/0.2501, allocations: 0 / 397.4 MB, free: 54.23 MB / 330.7 MB Notification: Performance of Templates: time 0.02572/0.2758, allocations: 17.87 MB / 415.3 MB, free: 36.74 MB / 330.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.690808487124741]