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.00151/0.00151, allocations: 84.73 kB / 21.5 MB, free: 2.988 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.001642/0.001642, allocations: 165 kB / 24.91 MB, free: 9.184 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 1.021/1.021, allocations: 177 MB / 205.2 MB, free: 5.469 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 3.687e-06/3.687e-06, allocations: 4 kB / 273.4 MB, free: 1.184 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.372e-05/1.74e-05, allocations: 2.312 kB / 273.4 MB, free: 1.18 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.006015/0.006033, allocations: 7.565 MB / 281 MB, free: 9.574 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004174/0.01021, allocations: 2.593 MB / 283.6 MB, free: 6.969 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005877/0.01079, allocations: 39.88 kB / 283.6 MB, free: 6.93 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001662/0.01246, allocations: 1.502 MB / 285.1 MB, free: 5.422 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001481/0.01394, allocations: 1.049 MB / 286.2 MB, free: 4.367 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004496/0.01439, allocations: 291.2 kB / 286.5 MB, free: 4.082 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001687/0.01607, allocations: 2.215 MB / 288.7 MB, free: 1.859 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001041/0.01712, allocations: 1.45 MB / 290.1 MB, free: 388 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1071/0.1242, allocations: 1.227 MB / 291.4 MB, free: 16.11 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001644/0.1259, allocations: 1.163 MB / 292.5 MB, free: 16.11 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003713/0.1263, allocations: 159 kB / 292.7 MB, free: 16.11 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001005/0.1273, allocations: 0.6306 MB / 293.3 MB, free: 16.11 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008451/0.1281, allocations: 1.222 MB / 294.5 MB, free: 16.11 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008871/0.129, allocations: 0.7296 MB / 295.3 MB, free: 16.02 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002751/0.1318, allocations: 2.761 MB / 298 MB, free: 15.56 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1318, allocations: 0 / 298 MB, free: 15.56 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1318, allocations: 2.062 kB / 298 MB, free: 15.56 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001027/0.1319, allocations: 0 / 298 MB, free: 15.56 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.003246/0.1351, allocations: 2.779 MB / 300.8 MB, free: 14.27 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/0.1351, allocations: 13.58 kB / 300.8 MB, free: 14.27 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002669/0.1378, allocations: 0.9534 MB / 301.8 MB, free: 14.25 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009851/0.1388, allocations: 0.892 MB / 302.7 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.151e-05/0.1389, allocations: 152.1 kB / 302.8 MB, free: 13.91 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002496/0.1391, allocations: 208 kB / 303 MB, free: 13.91 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003913/0.143, allocations: 3.894 MB / 306.9 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.193e-05/0.1431, allocations: 43.27 kB / 307 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001608/0.1433, allocations: 102.5 kB / 307.1 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001075/0.1443, allocations: 1.385 MB / 308.4 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002961/0.1473, allocations: 2.017 MB / 310.5 MB, free: 11.25 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01233/0.1596, allocations: 23.58 MB / 334 MB, free: 3.602 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004068/0.1637, allocations: 1.732 MB / 335.8 MB, free: 1.852 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003265/0.164, allocations: 411.9 kB / 336.2 MB, free: 1.438 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002445/0.1665, allocations: 2.299 MB / 338.5 MB, free: 15.14 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.873e-05/0.1665, allocations: 52.89 kB / 338.5 MB, free: 15.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=111): time 2.495e-06/0.1665, allocations: 0 / 338.5 MB, free: 15.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=111): time 0.007178/0.1737, allocations: 2.64 MB / 341.2 MB, free: 12.48 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.445e-05/0.1737, allocations: 195.2 kB / 341.4 MB, free: 12.25 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001374/0.1751, allocations: 2.197 MB / 343.6 MB, free: 10.48 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.633e-05/0.1752, allocations: 41.7 kB / 343.6 MB, free: 10.43 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008948/0.176, allocations: 2.461 MB / 346.1 MB, free: 8.09 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004382/0.1765, allocations: 0.508 MB / 346.6 MB, free: 7.609 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000749/0.1772, allocations: 1.015 MB / 347.6 MB, free: 6.699 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.064e-05/0.1773, allocations: 351.8 kB / 347.9 MB, free: 6.367 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005776/0.1779, allocations: 0.5414 MB / 348.5 MB, free: 5.82 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00212/0.18, allocations: 3.986 MB / 352.4 MB, free: 140 kB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003119/0.1831, allocations: 5.203 MB / 357.6 MB, free: 9.152 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.28e-05/0.1832, allocations: 36 kB / 357.7 MB, free: 9.117 MB / 314.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.00318/0.1863, allocations: 3.636 MB / 361.3 MB, free: 5.461 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.65e-05/0.1864, allocations: 59.47 kB / 361.4 MB, free: 5.406 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.623e-05/0.1865, allocations: 132 kB / 361.5 MB, free: 5.277 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.659e-05/0.1865, allocations: 168 kB / 361.7 MB, free: 5.113 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002528/0.1891, allocations: 1.487 MB / 363.2 MB, free: 3.625 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001176/0.1892, allocations: 247 kB / 363.4 MB, free: 3.383 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001545/0.1907, allocations: 0.7251 MB / 364.1 MB, free: 2.652 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002406/0.191, allocations: 299.9 kB / 364.4 MB, free: 2.359 MB / 314.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.000838/0.1918, allocations: 0.5704 MB / 365 MB, free: 1.773 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002004/0.192, allocations: 151.8 kB / 365.1 MB, free: 1.625 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002522/0.1923, allocations: 241.1 kB / 365.4 MB, free: 1.383 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.618e-05/0.1923, allocations: 16 kB / 365.4 MB, free: 1.367 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.1923, allocations: 0 / 365.4 MB, free: 1.367 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.967e-06/0.1923, allocations: 7.922 kB / 365.4 MB, free: 1.359 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002033/0.1943, allocations: 1.622 MB / 367 MB, free: 15.7 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.208e-06/0.1943, allocations: 0 / 367 MB, free: 15.7 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001189/0.1955, allocations: 395.5 kB / 367.4 MB, free: 15.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.621e-06/0.1955, allocations: 8 kB / 367.4 MB, free: 15.31 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.967e-05/0.1956, allocations: 31.92 kB / 367.4 MB, free: 15.28 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.939e-06/0.1956, allocations: 7.812 kB / 367.4 MB, free: 15.28 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.1956, allocations: 0 / 367.4 MB, free: 15.28 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009631/0.1966, allocations: 1.396 MB / 368.8 MB, free: 13.86 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001479/0.1967, allocations: 216.2 kB / 369.1 MB, free: 13.65 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001346/0.1968, allocations: 35.92 kB / 369.1 MB, free: 13.62 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003825/0.1972, allocations: 19.98 kB / 369.1 MB, free: 13.6 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.773e-05/0.1973, allocations: 63.83 kB / 369.2 MB, free: 13.54 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.082e-05/0.1974, allocations: 23.98 kB / 369.2 MB, free: 13.51 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006441/0.198, allocations: 0.8193 MB / 370 MB, free: 12.68 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.198, allocations: 4 kB / 370 MB, free: 12.68 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002171/0.2002, allocations: 0.838 MB / 370.9 MB, free: 11.84 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.000242/0.2004, allocations: 140.2 kB / 371 MB, free: 11.69 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00174/0.2022, allocations: 1.972 MB / 373 MB, free: 9.73 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001404/0.2023, allocations: 88.16 kB / 373.1 MB, free: 9.629 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002387/0.2025, allocations: 239.7 kB / 373.3 MB, free: 9.395 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007954/0.2033, allocations: 236.1 kB / 373.5 MB, free: 9.168 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005179/0.2085, allocations: 5.156 MB / 378.7 MB, free: 3.934 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006601/0.2092, allocations: 0.8228 MB / 379.5 MB, free: 3.094 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008365/0.21, allocations: 397 kB / 379.9 MB, free: 2.703 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004765/0.2105, allocations: 401.3 kB / 380.3 MB, free: 2.312 MB / 330.7 MB Notification: Performance of SimCode: time 8.02e-07/0.2105, allocations: 4 kB / 380.3 MB, free: 2.309 MB / 330.7 MB Notification: Performance of Templates: time 0.0268/0.2373, allocations: 17.55 MB / 397.8 MB, free: 0.9531 MB / 346.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 -s gbode -gbm=radauIIA3 -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.362026791088283]