Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.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.001028/0.001028, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001504/0.002532, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.0009842/0.0009842, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00141/0.002394, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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.8366/0.8366, allocations: 173.4 MB / 186 MB, free: 7.539 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1363/0.9728, allocations: 52.5 MB / 238.5 MB, free: 7.629 MB / 234.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.FreeBody,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body.body.frame_a.r_0.[0-9,]+.|body.body.w_a.[0-9,]+.|body.v_0.[0-9,]+.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|body.body.frame_a.r_0.[0-9,]+.|body.body.w_a.[0-9,]+.|body.v_0.[0-9,]+.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 8.11e-07/8.11e-07, allocations: 0 / 239.7 MB, free: 6.359 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 7.104e-06/7.915e-06, allocations: 2.312 kB / 239.7 MB, free: 6.355 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.007272/0.00728, allocations: 9.989 MB / 249.7 MB, free: 12.34 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.00532/0.0126, allocations: 3.889 MB / 253.6 MB, free: 8.453 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006945/0.01329, allocations: 72.31 kB / 253.7 MB, free: 8.383 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002254/0.01555, allocations: 2.347 MB / 256 MB, free: 6.031 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002116/0.01766, allocations: 1.775 MB / 257.8 MB, free: 4.254 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007432/0.01841, allocations: 0.6197 MB / 258.4 MB, free: 3.633 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002369/0.02078, allocations: 3.708 MB / 262.1 MB, free: 15.91 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001691/0.02247, allocations: 2.572 MB / 264.7 MB, free: 13.28 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001589/0.02406, allocations: 2.186 MB / 266.9 MB, free: 11.09 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001628/0.02568, allocations: 1.898 MB / 268.8 MB, free: 9.188 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003612/0.02605, allocations: 296 kB / 269.1 MB, free: 8.898 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00126/0.02731, allocations: 1.135 MB / 270.2 MB, free: 7.762 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008885/0.02819, allocations: 1.648 MB / 271.9 MB, free: 6.109 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007361/0.02893, allocations: 0.9387 MB / 272.8 MB, free: 5.168 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00281/0.03174, allocations: 3.794 MB / 276.6 MB, free: 1.359 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.297e-06/0.03175, allocations: 0 / 276.6 MB, free: 1.359 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.03175, allocations: 0 / 276.6 MB, free: 1.359 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.809e-05/0.0318, allocations: 0 / 276.6 MB, free: 1.359 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: 1330 * Number of variables: 1330 Notification: Performance of Generate backend data structure: time 0.003858/0.03566, allocations: 4.795 MB / 281.4 MB, free: 12.5 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.874e-05/0.03569, allocations: 8.031 kB / 281.4 MB, free: 12.49 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002361/0.03805, allocations: 0.984 MB / 282.4 MB, free: 11.5 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001464/0.03951, allocations: 1.574 MB / 284 MB, free: 9.883 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.048e-05/0.0396, allocations: 213.6 kB / 284.2 MB, free: 9.672 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004425/0.04004, allocations: 363.7 kB / 284.5 MB, free: 9.316 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004132/0.04418, allocations: 4.455 MB / 289 MB, free: 4.215 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.715e-05/0.04423, allocations: 35.64 kB / 289 MB, free: 4.18 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002127/0.04445, allocations: 147.8 kB / 289.2 MB, free: 4.035 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001102/0.04555, allocations: 1.38 MB / 290.5 MB, free: 2.652 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0031/0.04865, allocations: 2.34 MB / 292.9 MB, free: 308 kB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01754/0.06618, allocations: 27.48 MB / 320.4 MB, free: 3.809 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002958/0.06914, allocations: 1.622 MB / 322 MB, free: 2.152 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003832/0.06953, allocations: 358.7 kB / 322.3 MB, free: 1.793 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004078/0.0736, allocations: 3.57 MB / 325.9 MB, free: 14.2 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.043e-05/0.07363, allocations: 51.16 kB / 326 MB, free: 14.14 MB / 330.7 MB Notification: Performance of pre-optimization done (n=132): time 3.026e-06/0.07364, allocations: 4 kB / 326 MB, free: 14.13 MB / 330.7 MB Notification: Performance of matching and sorting (n=139): time 0.008177/0.08181, allocations: 4.012 MB / 330 MB, free: 10.07 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0006821/0.0825, allocations: 1.487 MB / 331.5 MB, free: 8.434 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002281/0.08478, allocations: 2.814 MB / 334.3 MB, free: 5.598 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.009e-05/0.08487, allocations: 41.7 kB / 334.3 MB, free: 5.551 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00113/0.086, allocations: 2.74 MB / 337.1 MB, free: 2.781 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003652/0.08636, allocations: 0.5933 MB / 337.7 MB, free: 2.184 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008368/0.0872, allocations: 1.037 MB / 338.7 MB, free: 1.137 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.834e-05/0.08726, allocations: 305.1 kB / 339 MB, free: 0.8359 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001227/0.08849, allocations: 0.7251 MB / 339.7 MB, free: 108 kB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1091/0.1976, allocations: 4.034 MB / 343.7 MB, free: 76.32 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003992/0.2016, allocations: 5.697 MB / 349.4 MB, free: 71.75 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.812e-05/0.2017, allocations: 34.5 kB / 349.5 MB, free: 71.75 MB / 330.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.007212/0.2089, allocations: 4.2 MB / 353.7 MB, free: 70.75 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.345e-05/0.2089, allocations: 58.59 kB / 353.7 MB, free: 70.75 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001025/0.209, allocations: 132.2 kB / 353.9 MB, free: 70.75 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003307/0.2124, allocations: 0.5657 MB / 354.4 MB, free: 70.69 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002072/0.2144, allocations: 1.342 MB / 355.8 MB, free: 70.57 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00278/0.2172, allocations: 3.15 MB / 358.9 MB, free: 68.1 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002236/0.2194, allocations: 248.4 kB / 359.2 MB, free: 68.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002723/0.2197, allocations: 298.2 kB / 359.5 MB, free: 68.09 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 557 * Number of states: 0 () * Number of discrete variables: 36 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (676): * Single equations (assignments): 667 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009106/0.2206, allocations: 0.5661 MB / 360 MB, free: 67.86 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002583/0.2209, allocations: 181.9 kB / 360.2 MB, free: 67.86 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001527/0.2224, allocations: 1.082 MB / 361.3 MB, free: 67.7 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001106/0.2235, allocations: 0.6768 MB / 362 MB, free: 67.57 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.401e-06/0.2235, allocations: 6.656 kB / 362 MB, free: 67.57 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.416e-06/0.2235, allocations: 8.547 kB / 362 MB, free: 67.57 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004391/0.2279, allocations: 3.71 MB / 365.7 MB, free: 66.34 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.576e-05/0.2279, allocations: 11 kB / 365.7 MB, free: 66.33 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005199/0.2285, allocations: 213.8 kB / 365.9 MB, free: 66.15 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002569/0.2287, allocations: 270.5 kB / 366.2 MB, free: 66.08 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001099/0.2298, allocations: 0.4974 MB / 366.7 MB, free: 65.81 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.393e-05/0.2299, allocations: 32.61 kB / 366.7 MB, free: 65.8 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001509/0.2314, allocations: 2.845 MB / 369.5 MB, free: 63.03 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0003087/0.2317, allocations: 1.345 MB / 370.9 MB, free: 61.63 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001835/0.2335, allocations: 1.867 MB / 372.8 MB, free: 59.82 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002175/0.2337, allocations: 27.98 kB / 372.8 MB, free: 59.79 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005383/0.2343, allocations: 24 kB / 372.8 MB, free: 59.77 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001391/0.2344, allocations: 96.41 kB / 372.9 MB, free: 59.67 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.646e-05/0.2345, allocations: 35.81 kB / 372.9 MB, free: 59.64 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006687/0.2351, allocations: 1.014 MB / 373.9 MB, free: 58.75 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.2351, allocations: 0 / 373.9 MB, free: 58.75 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.003042/0.2382, allocations: 1.022 MB / 375 MB, free: 57.74 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.v_0[1],body.v_0[2],body.v_0[3],body.body.frame_a.r_0[1],body.body.frame_a.r_0[2],body.body.frame_a.r_0[3],body.body.w_a[1],body.body.w_a[2],body.body.w_a[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 (105): * Single equations (assignments): 98 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 1 system {4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000324/0.2385, allocations: 176.9 kB / 375.1 MB, free: 57.57 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003352/0.2419, allocations: 2.798 MB / 377.9 MB, free: 54.96 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001489/0.242, allocations: 98.78 kB / 378 MB, free: 54.86 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001573/0.2436, allocations: 1.271 MB / 379.3 MB, free: 53.57 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001692/0.2453, allocations: 2.677 MB / 382 MB, free: 50.5 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007632/0.2529, allocations: 6.793 MB / 388.8 MB, free: 43.67 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006507/0.2536, allocations: 1.072 MB / 389.8 MB, free: 42.58 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0009216/0.2545, allocations: 431.9 kB / 390.3 MB, free: 42.15 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005708/0.2551, allocations: 485.1 kB / 390.7 MB, free: 41.68 MB / 330.7 MB Notification: Performance of SimCode: time 1.503e-06/0.2551, allocations: 0 / 390.7 MB, free: 41.68 MB / 330.7 MB Notification: Performance of Templates: time 0.03899/0.294, allocations: 33.81 MB / 424.6 MB, free: 8.043 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/FreeBody/FreeBody.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.1169083565473557]