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.0007593/0.0007593, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001014/0.001774, allocations: 449.8 kB / 10.44 MB, free: 252 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.0006918/0.0006918, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008734/0.001565, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.9237/0.9237, allocations: 177.2 MB / 189.8 MB, free: 5.23 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08837/1.012, allocations: 53.66 MB / 243.4 MB, free: 15.48 MB / 250.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.342e-06/1.342e-06, allocations: 0 / 244.7 MB, free: 14.2 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.08e-05/1.214e-05, allocations: 5.969 kB / 244.7 MB, free: 14.2 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.007863/0.007876, allocations: 7.639 MB / 252.4 MB, free: 6.516 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00347/0.01135, allocations: 2.616 MB / 255 MB, free: 3.891 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004413/0.01179, allocations: 39.88 kB / 255 MB, free: 3.852 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001427/0.01321, allocations: 1.471 MB / 256.5 MB, free: 2.375 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001538/0.01475, allocations: 1.042 MB / 257.5 MB, free: 1.328 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004397/0.01519, allocations: 279.2 kB / 257.8 MB, free: 1.055 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00183/0.01702, allocations: 2.192 MB / 260 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001145/0.01817, allocations: 1.353 MB / 261.3 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00114/0.01931, allocations: 1.289 MB / 262.6 MB, free: 12.18 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009771/0.02028, allocations: 1.145 MB / 263.8 MB, free: 11.04 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001676/0.02045, allocations: 160 kB / 263.9 MB, free: 10.88 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00076/0.02121, allocations: 0.6201 MB / 264.6 MB, free: 10.26 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007197/0.02193, allocations: 1.126 MB / 265.7 MB, free: 9.129 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005259/0.02246, allocations: 0.6073 MB / 266.3 MB, free: 8.52 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001863/0.02432, allocations: 2.591 MB / 268.9 MB, free: 5.918 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.182e-05/0.02433, allocations: 0 / 268.9 MB, free: 5.918 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.02433, allocations: 0 / 268.9 MB, free: 5.918 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.547e-05/0.02437, allocations: 0 / 268.9 MB, free: 5.918 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.00254/0.02691, allocations: 3.338 MB / 272.2 MB, free: 2.535 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.809e-05/0.02694, allocations: 8.031 kB / 272.2 MB, free: 2.527 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00263/0.02957, allocations: 1.032 MB / 273.3 MB, free: 1.477 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008505/0.03042, allocations: 0.8864 MB / 274.1 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.74e-05/0.03048, allocations: 159.9 kB / 274.3 MB, free: 412 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002127/0.0307, allocations: 207.8 kB / 274.5 MB, free: 204 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.122/0.1527, allocations: 3.882 MB / 278.4 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001185/0.1528, allocations: 42.03 kB / 278.4 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002208/0.153, allocations: 99.45 kB / 278.5 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001471/0.1545, allocations: 1.298 MB / 279.8 MB, free: 11.97 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004107/0.1586, allocations: 2.017 MB / 281.8 MB, free: 11.93 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01271/0.1713, allocations: 23.57 MB / 305.4 MB, free: 10.25 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00368/0.175, allocations: 1.709 MB / 307.1 MB, free: 9.902 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002959/0.1753, allocations: 405.3 kB / 307.5 MB, free: 9.695 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002076/0.1774, allocations: 2.293 MB / 309.8 MB, free: 8.195 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.292e-05/0.1774, allocations: 46.06 kB / 309.9 MB, free: 8.148 MB / 282.7 MB Notification: Performance of pre-optimization done (n=111): time 2.675e-06/0.1774, allocations: 0 / 309.9 MB, free: 8.148 MB / 282.7 MB Notification: Performance of matching and sorting (n=111): time 0.006762/0.1842, allocations: 2.619 MB / 312.5 MB, free: 6.105 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.198e-05/0.1842, allocations: 190.5 kB / 312.7 MB, free: 5.879 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001377/0.1856, allocations: 2.188 MB / 314.8 MB, free: 4.121 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.477e-05/0.1857, allocations: 45.7 kB / 314.9 MB, free: 4.07 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001265/0.1869, allocations: 2.465 MB / 317.4 MB, free: 1.738 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002665/0.1872, allocations: 0.5071 MB / 317.9 MB, free: 1.258 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007192/0.1879, allocations: 1.022 MB / 318.9 MB, free: 352 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 8.202e-05/0.188, allocations: 341.2 kB / 319.2 MB, free: 20 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005668/0.1886, allocations: 0.5414 MB / 319.8 MB, free: 15.47 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002061/0.1906, allocations: 3.984 MB / 323.7 MB, free: 9.902 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003887/0.1945, allocations: 5.613 MB / 329.4 MB, free: 2.879 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.07e-05/0.1945, allocations: 36 kB / 329.4 MB, free: 2.844 MB / 298.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.003545/0.1981, allocations: 3.632 MB / 333 MB, free: 15.19 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.814e-05/0.1981, allocations: 60 kB / 333.1 MB, free: 15.13 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001066/0.1982, allocations: 135.9 kB / 333.2 MB, free: 15 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.637e-05/0.1983, allocations: 168 kB / 333.4 MB, free: 14.83 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002692/0.201, allocations: 1.574 MB / 335 MB, free: 13.26 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001437/0.2012, allocations: 247 kB / 335.2 MB, free: 13.02 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001804/0.203, allocations: 0.7204 MB / 335.9 MB, free: 12.3 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002423/0.2032, allocations: 294.3 kB / 336.2 MB, free: 12.01 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.0006969/0.2039, allocations: 0.572 MB / 336.8 MB, free: 11.43 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001885/0.2041, allocations: 151.7 kB / 336.9 MB, free: 11.28 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002286/0.2043, allocations: 245.1 kB / 337.2 MB, free: 11.04 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.254e-05/0.2044, allocations: 12 kB / 337.2 MB, free: 11.02 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.2044, allocations: 1.094 kB / 337.2 MB, free: 11.02 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.546e-06/0.2044, allocations: 7.984 kB / 337.2 MB, free: 11.02 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001999/0.2064, allocations: 1.608 MB / 338.8 MB, free: 9.574 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.381e-05/0.2064, allocations: 15.12 kB / 338.8 MB, free: 9.562 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001172/0.2076, allocations: 410.4 kB / 339.2 MB, free: 9.164 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001557/0.2077, allocations: 206.2 kB / 339.4 MB, free: 8.961 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.244e-06/0.2077, allocations: 8 kB / 339.4 MB, free: 8.953 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.731e-05/0.2078, allocations: 23.98 kB / 339.4 MB, free: 8.93 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.77e-06/0.2078, allocations: 7.984 kB / 339.4 MB, free: 8.922 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.2078, allocations: 4 kB / 339.4 MB, free: 8.918 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009306/0.2087, allocations: 1.4 MB / 340.8 MB, free: 7.52 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001293/0.2088, allocations: 31.98 kB / 340.9 MB, free: 7.488 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003657/0.2092, allocations: 25.52 kB / 340.9 MB, free: 7.465 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.673e-05/0.2093, allocations: 62.75 kB / 341 MB, free: 7.406 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.939e-05/0.2093, allocations: 27.97 kB / 341 MB, free: 7.379 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005855/0.2099, allocations: 0.8163 MB / 341.8 MB, free: 6.652 MB / 314.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2099, allocations: 0 / 341.8 MB, free: 6.652 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001953/0.2119, allocations: 0.8447 MB / 342.7 MB, free: 5.809 MB / 314.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.0002456/0.2121, allocations: 146.8 kB / 342.8 MB, free: 5.66 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001943/0.2141, allocations: 2.078 MB / 344.9 MB, free: 3.797 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001364/0.2142, allocations: 98.48 kB / 345 MB, free: 3.691 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002811/0.2145, allocations: 291.7 kB / 345.3 MB, free: 3.414 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001337/0.2158, allocations: 1.599 MB / 346.9 MB, free: 1.625 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006072/0.2219, allocations: 5.18 MB / 352 MB, free: 12.39 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006378/0.2225, allocations: 0.8248 MB / 352.9 MB, free: 11.55 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0008337/0.2234, allocations: 393.1 kB / 353.2 MB, free: 11.16 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004406/0.2238, allocations: 397.3 kB / 353.6 MB, free: 10.77 MB / 330.7 MB Notification: Performance of SimCode: time 8.92e-07/0.2238, allocations: 0 / 353.6 MB, free: 10.77 MB / 330.7 MB Notification: Performance of Templates: time 0.0302/0.254, allocations: 15.12 MB / 368.7 MB, free: 11.73 MB / 346.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 -ignoreHideResult -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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.928668132983148]