Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0008614/0.0008614, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001252/0.002113, allocations: 453.8 kB / 10.46 MB, free: 236 kB / 10.45 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.001837/0.001837, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001466/0.003303, allocations: 483.5 kB / 11.83 MB, free: 2.336 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9323/0.9323, allocations: 158.6 MB / 171.2 MB, free: 2.5 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1371/1.069, allocations: 49.49 MB / 220.7 MB, free: 1.359 MB / 218.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.893e-06/1.893e-06, allocations: 0 / 222 MB, free: 52 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.45e-05/2.639e-05, allocations: 2.312 kB / 222 MB, free: 48 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.008961/0.008987, allocations: 7.642 MB / 229.6 MB, free: 8.363 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.005779/0.01477, allocations: 2.606 MB / 232.3 MB, free: 5.75 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001527/0.01629, allocations: 39.88 kB / 232.3 MB, free: 5.711 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002608/0.0189, allocations: 1.452 MB / 233.7 MB, free: 4.254 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00219/0.02109, allocations: 1.065 MB / 234.8 MB, free: 3.184 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005953/0.02169, allocations: 275.3 kB / 235.1 MB, free: 2.914 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.002663/0.02435, allocations: 2.223 MB / 237.3 MB, free: 0.6836 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001579/0.02593, allocations: 1.372 MB / 238.7 MB, free: 15.29 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001666/0.02759, allocations: 1.285 MB / 240 MB, free: 14 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001569/0.02916, allocations: 1.149 MB / 241.1 MB, free: 12.84 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004008/0.02956, allocations: 160 kB / 241.3 MB, free: 12.69 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001116/0.03068, allocations: 0.62 MB / 241.9 MB, free: 12.07 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008298/0.03151, allocations: 1.138 MB / 243 MB, free: 10.93 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007753/0.03229, allocations: 0.619 MB / 243.6 MB, free: 10.3 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002662/0.03495, allocations: 2.637 MB / 246.3 MB, free: 7.656 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.645e-05/0.03496, allocations: 0 / 246.3 MB, free: 7.656 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.03497, allocations: 4 kB / 246.3 MB, free: 7.652 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.827e-05/0.03506, allocations: 0 / 246.3 MB, free: 7.652 MB / 250.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.003132/0.0382, allocations: 3.362 MB / 249.6 MB, free: 4.246 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.03823, allocations: 12.03 kB / 249.7 MB, free: 4.234 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002683/0.04091, allocations: 1.04 MB / 250.7 MB, free: 3.176 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0014/0.04231, allocations: 0.8826 MB / 251.6 MB, free: 2.262 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.526e-05/0.0424, allocations: 155.9 kB / 251.7 MB, free: 2.109 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002816/0.04268, allocations: 203.8 kB / 251.9 MB, free: 1.91 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004802/0.04748, allocations: 3.881 MB / 255.8 MB, free: 13.42 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.199e-05/0.04754, allocations: 39.69 kB / 255.8 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001722/0.04772, allocations: 99.83 kB / 255.9 MB, free: 13.28 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001264/0.04898, allocations: 1.296 MB / 257.2 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004134/0.05311, allocations: 2.026 MB / 259.3 MB, free: 9.938 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01783/0.07094, allocations: 23.56 MB / 282.8 MB, free: 1.496 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1003/0.1712, allocations: 1.699 MB / 284.5 MB, free: 50.12 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005599/0.1718, allocations: 404.2 kB / 284.9 MB, free: 49.94 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003142/0.1749, allocations: 2.292 MB / 287.2 MB, free: 48.93 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.227e-05/0.175, allocations: 48.36 kB / 287.3 MB, free: 48.89 MB / 282.7 MB Notification: Performance of pre-optimization done (n=111): time 2.995e-06/0.175, allocations: 1.594 kB / 287.3 MB, free: 48.89 MB / 282.7 MB Notification: Performance of matching and sorting (n=111): time 0.009629/0.1846, allocations: 2.587 MB / 289.8 MB, free: 48.78 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.792e-05/0.1847, allocations: 194.8 kB / 290 MB, free: 48.56 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002667/0.1873, allocations: 2.207 MB / 292.2 MB, free: 48.14 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.212e-05/0.1874, allocations: 40.05 kB / 292.3 MB, free: 48.11 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009138/0.1883, allocations: 2.463 MB / 294.7 MB, free: 46.42 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003051/0.1886, allocations: 0.5069 MB / 295.3 MB, free: 46.14 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008902/0.1895, allocations: 1.022 MB / 296.3 MB, free: 46.01 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.886e-05/0.1895, allocations: 342.3 kB / 296.6 MB, free: 45.7 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003755/0.1933, allocations: 0.5475 MB / 297.2 MB, free: 45.68 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001575/0.1949, allocations: 3.977 MB / 301.1 MB, free: 41.05 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005905/0.2008, allocations: 5.597 MB / 306.7 MB, free: 36.06 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001295/0.2009, allocations: 37.81 kB / 306.8 MB, free: 36.06 MB / 282.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.0044/0.2053, allocations: 3.649 MB / 310.4 MB, free: 35.05 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.619e-05/0.2054, allocations: 57.62 kB / 310.5 MB, free: 35.05 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001206/0.2055, allocations: 134.1 kB / 310.6 MB, free: 35.05 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001088/0.2056, allocations: 166.7 kB / 310.8 MB, free: 35.05 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002796/0.2084, allocations: 1.561 MB / 312.3 MB, free: 33.74 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001764/0.2086, allocations: 255.7 kB / 312.6 MB, free: 33.52 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002692/0.2113, allocations: 0.7121 MB / 313.3 MB, free: 32.89 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003045/0.2116, allocations: 298.5 kB / 313.6 MB, free: 32.64 MB / 282.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.0009387/0.2125, allocations: 0.5763 MB / 314.2 MB, free: 32.13 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000241/0.2127, allocations: 148.8 kB / 314.3 MB, free: 32.01 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004479/0.2132, allocations: 414.7 kB / 314.7 MB, free: 31.59 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.596e-05/0.2132, allocations: 8 kB / 314.7 MB, free: 31.59 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.528e-06/0.2132, allocations: 7.938 kB / 314.7 MB, free: 31.58 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.386e-06/0.2132, allocations: 3.984 kB / 314.7 MB, free: 31.57 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002284/0.2155, allocations: 1.611 MB / 316.3 MB, free: 29.97 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.526e-05/0.2155, allocations: 8 kB / 316.3 MB, free: 29.96 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001172/0.2167, allocations: 410.6 kB / 316.7 MB, free: 29.56 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002984/0.217, allocations: 210.2 kB / 317 MB, free: 29.36 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.935e-06/0.217, allocations: 4 kB / 317 MB, free: 29.35 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.958e-05/0.2171, allocations: 31.97 kB / 317 MB, free: 29.32 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.392e-06/0.2171, allocations: 8 kB / 317 MB, free: 29.31 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.2171, allocations: 0 / 317 MB, free: 29.31 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008654/0.218, allocations: 1.406 MB / 318.4 MB, free: 27.88 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002019/0.2182, allocations: 33.8 kB / 318.4 MB, free: 27.85 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004145/0.2186, allocations: 16 kB / 318.5 MB, free: 27.84 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.406e-05/0.2186, allocations: 59.83 kB / 318.5 MB, free: 27.78 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.063e-05/0.2187, allocations: 20 kB / 318.5 MB, free: 27.76 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006264/0.2193, allocations: 0.8237 MB / 319.4 MB, free: 26.92 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2193, allocations: 4 kB / 319.4 MB, free: 26.92 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.002679/0.222, allocations: 0.8574 MB / 320.2 MB, free: 26.06 MB / 282.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.0003142/0.2223, allocations: 148.8 kB / 320.4 MB, free: 25.91 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002378/0.2247, allocations: 2.079 MB / 322.4 MB, free: 23.91 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001464/0.2248, allocations: 88.16 kB / 322.5 MB, free: 23.81 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003056/0.2251, allocations: 287.8 kB / 322.8 MB, free: 23.53 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001508/0.2266, allocations: 1.618 MB / 324.4 MB, free: 21.73 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006898/0.2335, allocations: 5.203 MB / 329.6 MB, free: 16.46 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006276/0.2342, allocations: 0.8289 MB / 330.5 MB, free: 15.62 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0009988/0.2352, allocations: 393.1 kB / 330.8 MB, free: 15.23 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004143/0.2356, allocations: 393.2 kB / 331.2 MB, free: 14.85 MB / 282.7 MB Notification: Performance of SimCode: time 2.715e-06/0.2356, allocations: 0 / 331.2 MB, free: 14.85 MB / 282.7 MB Notification: Performance of Templates: time 0.02607/0.2617, allocations: 15.13 MB / 346.4 MB, free: 15.63 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1263495245948434]