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.0009595/0.0009595, allocations: 80.41 kB / 22.21 MB, free: 2.289 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.001175/0.001175, allocations: 168.9 kB / 25.61 MB, free: 8.582 MB / 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.9872/0.9872, allocations: 177.1 MB / 206.1 MB, free: 4.469 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 1.893e-06/1.893e-06, allocations: 0 / 274.2 MB, free: 4.395 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.204e-05/3.393e-05, allocations: 6.781 kB / 274.2 MB, free: 4.387 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.00908/0.009114, allocations: 7.51 MB / 281.7 MB, free: 12.85 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005322/0.01444, allocations: 2.492 MB / 284.2 MB, free: 10.36 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001109/0.01555, allocations: 43.81 kB / 284.2 MB, free: 10.32 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002126/0.01767, allocations: 1.522 MB / 285.8 MB, free: 8.793 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002569/0.02024, allocations: 1.053 MB / 286.8 MB, free: 7.734 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006759/0.02092, allocations: 279.2 kB / 287.1 MB, free: 7.461 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002468/0.02338, allocations: 2.222 MB / 289.3 MB, free: 5.234 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001433/0.02482, allocations: 1.391 MB / 290.7 MB, free: 3.812 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001457/0.02627, allocations: 1.231 MB / 291.9 MB, free: 2.578 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001463/0.02774, allocations: 1.235 MB / 293.2 MB, free: 1.34 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002743/0.02801, allocations: 160 kB / 293.3 MB, free: 1.184 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001508/0.02952, allocations: 0.6122 MB / 293.9 MB, free: 0.5703 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008055/0.03033, allocations: 1.223 MB / 295.2 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006452/0.03097, allocations: 0.7279 MB / 295.9 MB, free: 14.61 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002636/0.03361, allocations: 2.754 MB / 298.6 MB, free: 11.85 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.03361, allocations: 0 / 298.6 MB, free: 11.85 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.03361, allocations: 0 / 298.6 MB, free: 11.85 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.475e-05/0.03367, allocations: 4 kB / 298.7 MB, free: 11.84 MB / 282.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.003648/0.03732, allocations: 3.23 MB / 301.9 MB, free: 8.555 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.03736, allocations: 8.031 kB / 301.9 MB, free: 8.547 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003122/0.04048, allocations: 1.208 MB / 303.1 MB, free: 7.336 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001276/0.04176, allocations: 0.9855 MB / 304.1 MB, free: 6.32 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001/0.04186, allocations: 155.9 kB / 304.2 MB, free: 6.168 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002615/0.04212, allocations: 211.8 kB / 304.4 MB, free: 5.961 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006699/0.04882, allocations: 4.646 MB / 309.1 MB, free: 0.4922 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.035e-05/0.04889, allocations: 43.62 kB / 309.1 MB, free: 460 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001871/0.04908, allocations: 103.9 kB / 309.2 MB, free: 356 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001382/0.05046, allocations: 1.386 MB / 310.6 MB, free: 14.96 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006359/0.05682, allocations: 2.267 MB / 312.9 MB, free: 12.69 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03011/0.08693, allocations: 33.62 MB / 346.5 MB, free: 9.961 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01102/0.09795, allocations: 2.65 MB / 349.2 MB, free: 7.223 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008013/0.09875, allocations: 339.6 kB / 349.5 MB, free: 6.863 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005003/0.1038, allocations: 2.58 MB / 352.1 MB, free: 4.25 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.756e-05/0.1038, allocations: 53.66 kB / 352.1 MB, free: 4.188 MB / 330.7 MB Notification: Performance of pre-optimization done (n=111): time 5.701e-06/0.1038, allocations: 0 / 352.1 MB, free: 4.188 MB / 330.7 MB Notification: Performance of matching and sorting (n=111): time 0.1666/0.2704, allocations: 4.64 MB / 356.8 MB, free: 82.79 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.989e-05/0.2704, allocations: 194.1 kB / 356.9 MB, free: 82.57 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004147/0.2746, allocations: 2.791 MB / 359.7 MB, free: 82.25 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002134/0.2748, allocations: 41.3 kB / 359.8 MB, free: 82.22 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001491/0.2763, allocations: 2.682 MB / 362.5 MB, free: 80.75 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000553/0.2768, allocations: 0.5334 MB / 363 MB, free: 80.47 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001255/0.2781, allocations: 1.2 MB / 364.2 MB, free: 80.33 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.2782, allocations: 0.5127 MB / 364.7 MB, free: 79.85 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007589/0.279, allocations: 408.1 kB / 365.1 MB, free: 79.84 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002505/0.2815, allocations: 5.715 MB / 370.8 MB, free: 72.94 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004343/0.2858, allocations: 6.843 MB / 377.7 MB, free: 65.62 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.035e-05/0.2859, allocations: 37.03 kB / 377.7 MB, free: 65.62 MB / 330.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.005506/0.2914, allocations: 4.242 MB / 381.9 MB, free: 64.29 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.121e-05/0.2915, allocations: 61.03 kB / 382 MB, free: 64.29 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001609/0.2916, allocations: 130.9 kB / 382.1 MB, free: 64.29 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001098/0.2917, allocations: 166.7 kB / 382.3 MB, free: 64.18 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002434/0.2942, allocations: 1.351 MB / 383.6 MB, free: 62.98 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.557e-05/0.2943, allocations: 247.4 kB / 383.9 MB, free: 62.77 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002649/0.2969, allocations: 0.7244 MB / 384.6 MB, free: 62.05 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003007/0.2972, allocations: 303.2 kB / 384.9 MB, free: 61.76 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.0009506/0.2982, allocations: 0.618 MB / 385.5 MB, free: 61.13 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000315/0.2985, allocations: 262.4 kB / 385.8 MB, free: 60.88 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000256/0.2987, allocations: 242.3 kB / 386 MB, free: 60.66 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.105e-05/0.2988, allocations: 16 kB / 386 MB, free: 60.65 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.427e-05/0.2988, allocations: 0 / 386 MB, free: 60.65 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.018e-05/0.2988, allocations: 3.938 kB / 386 MB, free: 60.65 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002794/0.3016, allocations: 1.82 MB / 387.9 MB, free: 59.03 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.613e-06/0.3016, allocations: 4 kB / 387.9 MB, free: 59.02 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001044/0.3026, allocations: 300.5 kB / 388.2 MB, free: 58.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.506e-06/0.3027, allocations: 8 kB / 388.2 MB, free: 58.77 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.687e-05/0.3027, allocations: 35.2 kB / 388.2 MB, free: 58.74 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.551e-06/0.3027, allocations: 4 kB / 388.2 MB, free: 58.73 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.3027, allocations: 0 / 388.2 MB, free: 58.73 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001238/0.304, allocations: 1.678 MB / 389.9 MB, free: 57.11 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002742/0.3042, allocations: 210.2 kB / 390.1 MB, free: 56.9 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001598/0.3044, allocations: 27.8 kB / 390.1 MB, free: 56.88 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004407/0.3048, allocations: 27.64 kB / 390.1 MB, free: 56.85 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.769e-05/0.3049, allocations: 53.91 kB / 390.2 MB, free: 56.82 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.848e-05/0.305, allocations: 31.89 kB / 390.2 MB, free: 56.8 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007908/0.3058, allocations: 1.04 MB / 391.3 MB, free: 55.93 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3058, allocations: 0 / 391.3 MB, free: 55.93 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003047/0.3088, allocations: 0.8533 MB / 392.1 MB, free: 55.09 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.0003323/0.3091, allocations: 154.9 kB / 392.3 MB, free: 54.93 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00289/0.312, allocations: 2.138 MB / 394.4 MB, free: 53.04 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.312, allocations: 320 / 394.4 MB, free: 53.04 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002823/0.3123, allocations: 287.1 kB / 394.7 MB, free: 52.75 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009977/0.3133, allocations: 229.7 kB / 394.9 MB, free: 52.54 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006949/0.3203, allocations: 5.532 MB / 400.4 MB, free: 46.96 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006726/0.3209, allocations: 0.8189 MB / 401.3 MB, free: 46.12 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001093/0.322, allocations: 393 kB / 401.6 MB, free: 45.73 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004675/0.3225, allocations: 426.1 kB / 402.1 MB, free: 45.32 MB / 330.7 MB Notification: Performance of SimCode: time 2.815e-06/0.3225, allocations: 0 / 402.1 MB, free: 45.32 MB / 330.7 MB Notification: Performance of Templates: time 0.03149/0.354, allocations: 17.81 MB / 419.9 MB, free: 27.87 MB / 330.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.9410793939605355]