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.001266/0.001266, allocations: 76.06 kB / 21.69 MB, free: 2.863 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.001171/0.001171, allocations: 143.8 kB / 24.98 MB, free: 9.32 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.9978/0.9978, allocations: 173.4 MB / 201.5 MB, free: 9.312 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.683e-06/1.683e-06, allocations: 3.938 kB / 268.1 MB, free: 6.699 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.829e-05/1.998e-05, allocations: 6.25 kB / 268.1 MB, free: 6.691 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.009105/0.009125, allocations: 7.752 MB / 275.8 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004757/0.01388, allocations: 2.461 MB / 278.3 MB, free: 12.43 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006581/0.01454, allocations: 47.81 kB / 278.4 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002566/0.01711, allocations: 1.518 MB / 279.9 MB, free: 10.86 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002041/0.01915, allocations: 1.069 MB / 280.9 MB, free: 9.781 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005912/0.01974, allocations: 275.2 kB / 281.2 MB, free: 9.512 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002565/0.0223, allocations: 2.242 MB / 283.5 MB, free: 7.266 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001534/0.02384, allocations: 1.399 MB / 284.9 MB, free: 5.84 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001019/0.02486, allocations: 1.255 MB / 286.1 MB, free: 4.582 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001106/0.02596, allocations: 1.223 MB / 287.3 MB, free: 3.355 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001744/0.02614, allocations: 160 kB / 287.5 MB, free: 3.199 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006666/0.0268, allocations: 0.6123 MB / 288.1 MB, free: 2.586 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006692/0.02747, allocations: 1.25 MB / 289.3 MB, free: 1.332 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005994/0.02807, allocations: 0.7357 MB / 290.1 MB, free: 0.5938 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1079/0.136, allocations: 2.791 MB / 292.9 MB, free: 18 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.136, allocations: 1.172 kB / 292.9 MB, free: 18 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.136, allocations: 4.188 kB / 292.9 MB, free: 18 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.673e-05/0.1361, allocations: 1.344 kB / 292.9 MB, free: 18 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.003627/0.1397, allocations: 3.24 MB / 296.1 MB, free: 16.54 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.538e-05/0.1398, allocations: 10.36 kB / 296.1 MB, free: 16.54 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004475/0.1443, allocations: 2.24 MB / 298.4 MB, free: 16.33 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001204/0.1455, allocations: 1.063 MB / 299.4 MB, free: 16 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.573e-05/0.1455, allocations: 153.3 kB / 299.6 MB, free: 16 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002592/0.1458, allocations: 204.9 kB / 299.8 MB, free: 15.99 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006633/0.1524, allocations: 5.526 MB / 305.3 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.513e-05/0.1525, allocations: 36.92 kB / 305.3 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001972/0.1527, allocations: 100.8 kB / 305.4 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001326/0.154, allocations: 1.558 MB / 307 MB, free: 13.63 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005656/0.1597, allocations: 3.257 MB / 310.3 MB, free: 12.88 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01793/0.1776, allocations: 33.87 MB / 344.1 MB, free: 11.25 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008996/0.1866, allocations: 4.012 MB / 348.1 MB, free: 7.168 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004848/0.1871, allocations: 388.7 kB / 348.5 MB, free: 6.762 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002674/0.1898, allocations: 2.661 MB / 351.2 MB, free: 4.102 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.816e-05/0.1898, allocations: 52.62 kB / 351.2 MB, free: 4.043 MB / 298.7 MB Notification: Performance of pre-optimization done (n=111): time 3.978e-06/0.1898, allocations: 3.984 kB / 351.2 MB, free: 4.039 MB / 298.7 MB Notification: Performance of matching and sorting (n=111): time 0.01794/0.2077, allocations: 7.554 MB / 358.8 MB, free: 12.49 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.008e-05/0.2078, allocations: 199.5 kB / 359 MB, free: 12.26 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002874/0.2107, allocations: 2.79 MB / 361.8 MB, free: 9.449 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.533e-05/0.2107, allocations: 37.7 kB / 361.8 MB, free: 9.406 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001266/0.212, allocations: 2.669 MB / 364.5 MB, free: 6.762 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003522/0.2124, allocations: 0.5261 MB / 365 MB, free: 6.242 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000984/0.2133, allocations: 1.175 MB / 366.2 MB, free: 5.059 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.2135, allocations: 0.5159 MB / 366.7 MB, free: 4.535 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007991/0.2143, allocations: 0.5024 MB / 367.2 MB, free: 4.027 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003176/0.2175, allocations: 5.79 MB / 373 MB, free: 11.81 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004512/0.222, allocations: 6.958 MB / 380 MB, free: 2.426 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.921e-05/0.222, allocations: 36 kB / 380 MB, free: 2.391 MB / 330.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.004928/0.2269, allocations: 4.537 MB / 384.5 MB, free: 13.85 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.354e-05/0.227, allocations: 60 kB / 384.6 MB, free: 13.79 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.158e-05/0.2271, allocations: 131.3 kB / 384.7 MB, free: 13.67 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001058/0.2272, allocations: 164 kB / 384.9 MB, free: 13.51 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002728/0.2299, allocations: 1.454 MB / 386.3 MB, free: 12.05 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00015/0.2301, allocations: 243.1 kB / 386.6 MB, free: 11.81 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002083/0.2322, allocations: 0.74 MB / 387.3 MB, free: 11.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003406/0.2325, allocations: 337.2 kB / 387.6 MB, free: 10.75 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.0009533/0.2334, allocations: 0.6197 MB / 388.3 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002502/0.2337, allocations: 266.4 kB / 388.5 MB, free: 9.852 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005859/0.2343, allocations: 482.3 kB / 389 MB, free: 9.375 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.562e-05/0.2343, allocations: 12 kB / 389 MB, free: 9.363 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.2343, allocations: 4 kB / 389 MB, free: 9.359 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.114e-05/0.2343, allocations: 7.984 kB / 389 MB, free: 9.352 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003352/0.2377, allocations: 2.5 MB / 391.5 MB, free: 6.824 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/0.2377, allocations: 4 kB / 391.5 MB, free: 6.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001166/0.2388, allocations: 403.5 kB / 391.9 MB, free: 6.426 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.018e-05/0.2388, allocations: 4 kB / 391.9 MB, free: 6.422 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.24e-05/0.2389, allocations: 31.97 kB / 391.9 MB, free: 6.391 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.37e-06/0.2389, allocations: 11.94 kB / 391.9 MB, free: 6.379 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.2389, allocations: 4 kB / 392 MB, free: 6.375 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001397/0.2403, allocations: 1.755 MB / 393.7 MB, free: 4.594 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001897/0.2405, allocations: 217.9 kB / 393.9 MB, free: 4.383 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000166/0.2407, allocations: 34.62 kB / 394 MB, free: 4.352 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004614/0.2411, allocations: 39.95 kB / 394 MB, free: 4.312 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.632e-05/0.2412, allocations: 55.84 kB / 394 MB, free: 4.258 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.855e-05/0.2413, allocations: 35.98 kB / 394.1 MB, free: 4.223 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001173/0.2425, allocations: 1.115 MB / 395.2 MB, free: 3.098 MB / 346.7 MB Notification: Performance of sort global known variables: time 8e-08/0.2425, allocations: 4 kB / 395.2 MB, free: 3.094 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002576/0.245, allocations: 0.8562 MB / 396.1 MB, free: 2.238 MB / 346.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.0003463/0.2454, allocations: 173.6 kB / 396.2 MB, free: 2.062 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003056/0.2484, allocations: 2.258 MB / 398.5 MB, free: 15.83 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.2484, allocations: 0 / 398.5 MB, free: 15.83 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003562/0.2488, allocations: 310.3 kB / 398.8 MB, free: 15.52 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009584/0.2498, allocations: 229.5 kB / 399 MB, free: 15.31 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006637/0.2564, allocations: 5.537 MB / 404.6 MB, free: 9.695 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006835/0.2571, allocations: 0.8229 MB / 405.4 MB, free: 8.855 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.001912/0.259, allocations: 1.405 MB / 406.8 MB, free: 7.445 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002729/0.2593, allocations: 172.5 kB / 406.9 MB, free: 7.277 MB / 362.7 MB Notification: Performance of SimCode: time 1.683e-06/0.2593, allocations: 0 / 406.9 MB, free: 7.277 MB / 362.7 MB Notification: Performance of Templates: time 0.02467/0.2839, allocations: 15.21 MB / 422.2 MB, free: 8.488 MB / 378.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.6545341941528022]