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.001863/0.001863, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.001961/0.001961, allocations: 165.3 kB / 24.27 MB, free: 156 kB / 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 1.53/1.53, allocations: 177.1 MB / 204.6 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] 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.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.",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.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.",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.983e-06/1.983e-06, allocations: 0 / 272.3 MB, free: 1.84 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.07e-05/3.268e-05, allocations: 6.312 kB / 272.3 MB, free: 1.832 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.01964/0.01967, allocations: 7.692 MB / 280 MB, free: 10.11 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.009757/0.02942, allocations: 2.504 MB / 282.5 MB, free: 7.598 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00133/0.03076, allocations: 39.88 kB / 282.6 MB, free: 7.559 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005825/0.03658, allocations: 1.534 MB / 284.1 MB, free: 6.02 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004741/0.04132, allocations: 1.053 MB / 285.2 MB, free: 4.961 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001458/0.04278, allocations: 283.2 kB / 285.4 MB, free: 4.684 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.005531/0.04831, allocations: 2.207 MB / 287.6 MB, free: 2.469 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003238/0.05155, allocations: 1.395 MB / 289 MB, free: 1.043 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1326/0.1841, allocations: 1.229 MB / 290.3 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002194/0.1863, allocations: 1.222 MB / 291.5 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004312/0.1868, allocations: 160.8 kB / 291.6 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001279/0.188, allocations: 0.6115 MB / 292.3 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001058/0.1891, allocations: 1.222 MB / 293.5 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009642/0.1901, allocations: 0.7228 MB / 294.2 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004598/0.1947, allocations: 4.217 MB / 298.4 MB, free: 15.22 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.1947, allocations: 3.062 kB / 298.4 MB, free: 15.22 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1947, allocations: 0 / 298.4 MB, free: 15.22 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.039e-05/0.1948, allocations: 0 / 298.4 MB, free: 15.22 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.005111/0.1999, allocations: 3.494 MB / 301.9 MB, free: 13.65 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.1999, allocations: 10.16 kB / 301.9 MB, free: 13.65 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00746/0.2074, allocations: 2.241 MB / 304.2 MB, free: 12.95 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002694/0.2101, allocations: 1.069 MB / 305.2 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001007/0.2102, allocations: 153 kB / 305.4 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003777/0.2105, allocations: 207.7 kB / 305.6 MB, free: 12.23 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01369/0.2242, allocations: 5.865 MB / 311.4 MB, free: 8.133 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.47e-05/0.2243, allocations: 37.92 kB / 311.5 MB, free: 8.129 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00028/0.2246, allocations: 104.7 kB / 311.6 MB, free: 8.09 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002185/0.2268, allocations: 1.557 MB / 313.1 MB, free: 7.086 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01262/0.2394, allocations: 3.503 MB / 316.6 MB, free: 3.746 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04587/0.2853, allocations: 36.24 MB / 352.9 MB, free: 14.74 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02081/0.3061, allocations: 4.026 MB / 356.9 MB, free: 10.64 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001083/0.3072, allocations: 423.5 kB / 357.3 MB, free: 10.2 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0063/0.3135, allocations: 2.702 MB / 360 MB, free: 7.488 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.194e-05/0.3135, allocations: 48.25 kB / 360.1 MB, free: 7.434 MB / 314.7 MB Notification: Performance of pre-optimization done (n=111): time 3.947e-06/0.3135, allocations: 4 kB / 360.1 MB, free: 7.43 MB / 314.7 MB Notification: Performance of matching and sorting (n=111): time 0.04228/0.3558, allocations: 7.625 MB / 367.7 MB, free: 15.81 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000145/0.356, allocations: 187.9 kB / 367.9 MB, free: 15.58 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005821/0.3618, allocations: 3.498 MB / 371.4 MB, free: 12.06 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001663/0.362, allocations: 43.73 kB / 371.4 MB, free: 12.01 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00279/0.3647, allocations: 2.826 MB / 374.3 MB, free: 9.199 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009731/0.3657, allocations: 0.554 MB / 374.8 MB, free: 8.652 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002118/0.3678, allocations: 1.364 MB / 376.2 MB, free: 7.277 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0003403/0.3682, allocations: 0.5277 MB / 376.7 MB, free: 6.742 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00139/0.3696, allocations: 0.5493 MB / 377.3 MB, free: 6.188 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007205/0.3768, allocations: 6.01 MB / 383.3 MB, free: 13.72 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01005/0.3868, allocations: 7.215 MB / 390.5 MB, free: 4.078 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001617/0.387, allocations: 39.81 kB / 390.5 MB, free: 4.043 MB / 346.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01066/0.3976, allocations: 4.627 MB / 395.1 MB, free: 15.41 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001013/0.3977, allocations: 60 kB / 395.2 MB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000168/0.3979, allocations: 132 kB / 395.3 MB, free: 15.22 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001975/0.3981, allocations: 168 kB / 395.5 MB, free: 15.06 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005404/0.4035, allocations: 1.45 MB / 396.9 MB, free: 13.61 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002642/0.4038, allocations: 247 kB / 397.2 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00359/0.4074, allocations: 0.7367 MB / 397.9 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005651/0.4079, allocations: 350.6 kB / 398.3 MB, free: 12.29 MB / 362.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.001897/0.4098, allocations: 0.6835 MB / 398.9 MB, free: 11.59 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000578/0.4104, allocations: 270.3 kB / 399.2 MB, free: 11.32 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005925/0.411, allocations: 241.1 kB / 399.4 MB, free: 11.08 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.558e-05/0.411, allocations: 12 kB / 399.5 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/0.411, allocations: 0 / 399.5 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.242e-05/0.411, allocations: 7.984 kB / 399.5 MB, free: 11.06 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007479/0.4185, allocations: 3.109 MB / 402.6 MB, free: 7.926 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.816e-06/0.4185, allocations: 0 / 402.6 MB, free: 7.926 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002641/0.4212, allocations: 399.5 kB / 403 MB, free: 7.535 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.145e-05/0.4212, allocations: 4 kB / 403 MB, free: 7.531 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001127/0.4213, allocations: 31.98 kB / 403 MB, free: 7.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.677e-06/0.4213, allocations: 8 kB / 403 MB, free: 7.492 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.063e-06/0.4213, allocations: 7.922 kB / 403 MB, free: 7.484 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002952/0.4243, allocations: 1.868 MB / 404.9 MB, free: 5.594 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006413/0.4249, allocations: 214.1 kB / 405.1 MB, free: 5.383 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002462/0.4251, allocations: 27.98 kB / 405.1 MB, free: 5.355 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008496/0.426, allocations: 43.95 kB / 405.2 MB, free: 5.312 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000155/0.4262, allocations: 55.83 kB / 405.2 MB, free: 5.258 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.723e-05/0.4262, allocations: 28 kB / 405.2 MB, free: 5.23 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.003267/0.4295, allocations: 1.342 MB / 406.6 MB, free: 3.879 MB / 362.7 MB Notification: Performance of sort global known variables: time 9e-08/0.4295, allocations: 0 / 406.6 MB, free: 3.879 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004727/0.4342, allocations: 0.8442 MB / 407.4 MB, free: 3.035 MB / 362.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.0004477/0.4347, allocations: 157.8 kB / 407.6 MB, free: 2.875 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.005683/0.4404, allocations: 2.517 MB / 410.1 MB, free: 388 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/0.4404, allocations: 0 / 410.1 MB, free: 388 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007336/0.4411, allocations: 354.1 kB / 410.5 MB, free: 32 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001764/0.4429, allocations: 226.5 kB / 410.7 MB, free: 15.81 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01154/0.4544, allocations: 5.585 MB / 416.3 MB, free: 10.16 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002488/0.4569, allocations: 1.645 MB / 417.9 MB, free: 8.473 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.003664/0.4606, allocations: 1.405 MB / 419.3 MB, free: 7.062 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004797/0.461, allocations: 180.4 kB / 419.5 MB, free: 6.887 MB / 378.7 MB Notification: Performance of SimCode: time 2.826e-06/0.461, allocations: 0 / 419.5 MB, free: 6.887 MB / 378.7 MB Notification: Performance of Templates: time 0.0422/0.5032, allocations: 15.15 MB / 434.6 MB, free: 8.18 MB / 394.7 MB " [Timeout remaining time 659] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 6.121519814012572]