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.0009279/0.0009279, allocations: 85.05 kB / 21.5 MB, free: 2.992 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.0009414/0.0009414, allocations: 146.1 kB / 24.9 MB, free: 9.16 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.9156/0.9156, allocations: 173.3 MB / 201.5 MB, free: 9.211 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.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 1.563e-06/1.563e-06, allocations: 0 / 268.5 MB, free: 6.148 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.284e-05/2.441e-05, allocations: 6.25 kB / 268.5 MB, free: 6.141 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.007668/0.007692, allocations: 9.916 MB / 278.4 MB, free: 12.17 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0067/0.01439, allocations: 3.865 MB / 282.3 MB, free: 8.293 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00142/0.01581, allocations: 71.62 kB / 282.4 MB, free: 8.223 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002597/0.01841, allocations: 2.425 MB / 284.8 MB, free: 5.789 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00315/0.02156, allocations: 1.777 MB / 286.6 MB, free: 4.004 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001254/0.02281, allocations: 0.6782 MB / 287.3 MB, free: 3.324 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1112/0.134, allocations: 3.814 MB / 291.1 MB, free: 15.73 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003045/0.137, allocations: 2.75 MB / 293.8 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002667/0.1397, allocations: 2.058 MB / 295.9 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002818/0.1425, allocations: 1.904 MB / 297.8 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007579/0.1433, allocations: 300.5 kB / 298.1 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001761/0.145, allocations: 1.131 MB / 299.2 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001329/0.1464, allocations: 1.838 MB / 301 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001252/0.1476, allocations: 1.144 MB / 302.2 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004048/0.1517, allocations: 4.091 MB / 306.3 MB, free: 13.23 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.1517, allocations: 1.312 kB / 306.3 MB, free: 13.23 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1517, allocations: 0 / 306.3 MB, free: 13.23 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001239/0.1518, allocations: 0 / 306.3 MB, free: 13.23 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.004225/0.156, allocations: 3.953 MB / 310.2 MB, free: 11.12 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.1561, allocations: 9.984 kB / 310.2 MB, free: 11.12 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002346/0.1584, allocations: 0.9974 MB / 311.2 MB, free: 10.97 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00175/0.1602, allocations: 1.566 MB / 312.8 MB, free: 10.06 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.798e-05/0.1603, allocations: 218.9 kB / 313 MB, free: 9.988 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004858/0.1607, allocations: 366.5 kB / 313.4 MB, free: 9.883 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004528/0.1653, allocations: 4.461 MB / 317.8 MB, free: 5.691 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.529e-05/0.1653, allocations: 33.62 kB / 317.9 MB, free: 5.676 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002184/0.1656, allocations: 134.5 kB / 318 MB, free: 5.578 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001024/0.1666, allocations: 1.475 MB / 319.5 MB, free: 4.133 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003657/0.1702, allocations: 2.375 MB / 321.9 MB, free: 1.957 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02175/0.192, allocations: 27.5 MB / 349.4 MB, free: 6.484 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00363/0.1956, allocations: 1.643 MB / 351 MB, free: 4.852 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005042/0.1961, allocations: 360.6 kB / 351.3 MB, free: 4.5 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004831/0.201, allocations: 3.583 MB / 354.9 MB, free: 0.9414 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.366e-05/0.201, allocations: 51.2 kB / 355 MB, free: 0.8828 MB / 298.7 MB Notification: Performance of pre-optimization done (n=132): time 3.797e-06/0.201, allocations: 0 / 355 MB, free: 0.8828 MB / 298.7 MB Notification: Performance of matching and sorting (n=139): time 0.00941/0.2104, allocations: 4.042 MB / 359 MB, free: 12.86 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0008268/0.2112, allocations: 1.481 MB / 360.5 MB, free: 11.26 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002467/0.2137, allocations: 2.816 MB / 363.3 MB, free: 8.938 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001343/0.2138, allocations: 43.5 kB / 363.4 MB, free: 8.891 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001347/0.2152, allocations: 2.742 MB / 366.1 MB, free: 6.293 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004778/0.2157, allocations: 0.5889 MB / 366.7 MB, free: 5.734 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008992/0.2166, allocations: 1.031 MB / 367.7 MB, free: 4.816 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.932e-05/0.2166, allocations: 313.1 kB / 368 MB, free: 4.508 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001132/0.2178, allocations: 0.733 MB / 368.8 MB, free: 3.77 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002693/0.2204, allocations: 4.038 MB / 372.8 MB, free: 14.2 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004306/0.2248, allocations: 5.359 MB / 378.2 MB, free: 7.387 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.56e-05/0.2248, allocations: 32 kB / 378.2 MB, free: 7.355 MB / 330.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.007324/0.2321, allocations: 4.204 MB / 382.4 MB, free: 3.129 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.213e-05/0.2322, allocations: 60.06 kB / 382.5 MB, free: 3.07 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003246/0.2354, allocations: 0.9673 MB / 383.4 MB, free: 2.082 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00328/0.2387, allocations: 0.5645 MB / 384 MB, free: 1.5 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002588/0.2413, allocations: 1.256 MB / 385.2 MB, free: 248 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003391/0.2447, allocations: 3.162 MB / 388.4 MB, free: 12.89 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00271/0.2474, allocations: 251.8 kB / 388.6 MB, free: 12.64 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004208/0.2478, allocations: 299.9 kB / 388.9 MB, free: 12.35 MB / 346.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.001367/0.2492, allocations: 0.5758 MB / 389.5 MB, free: 11.76 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004254/0.2496, allocations: 179.8 kB / 389.7 MB, free: 11.59 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001823/0.2514, allocations: 1.079 MB / 390.8 MB, free: 10.47 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001271/0.2527, allocations: 0.6781 MB / 391.5 MB, free: 9.77 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.757e-06/0.2527, allocations: 11.92 kB / 391.5 MB, free: 9.758 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/0.2527, allocations: 7.984 kB / 391.5 MB, free: 9.75 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005864/0.2586, allocations: 3.714 MB / 395.2 MB, free: 5.934 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/0.2586, allocations: 4 kB / 395.2 MB, free: 5.93 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005753/0.2592, allocations: 199.8 kB / 395.4 MB, free: 5.734 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001253/0.2604, allocations: 0.503 MB / 395.9 MB, free: 5.211 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.123e-05/0.2605, allocations: 27.98 kB / 395.9 MB, free: 5.184 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002093/0.2626, allocations: 2.854 MB / 398.8 MB, free: 2.137 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007758/0.2634, allocations: 1.344 MB / 400.1 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002433/0.2658, allocations: 1.854 MB / 402 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004239/0.2663, allocations: 265.9 kB / 402.2 MB, free: 14.52 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000214/0.2665, allocations: 31.98 kB / 402.3 MB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00057/0.267, allocations: 24 kB / 402.3 MB, free: 14.46 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001763/0.2672, allocations: 88.41 kB / 402.4 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.267e-05/0.2673, allocations: 31.98 kB / 402.4 MB, free: 14.34 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0009533/0.2682, allocations: 1.011 MB / 403.4 MB, free: 13.33 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2682, allocations: 0 / 403.4 MB, free: 13.33 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003026/0.2713, allocations: 1.019 MB / 404.4 MB, free: 12.31 MB / 362.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.0003624/0.2716, allocations: 172.6 kB / 404.6 MB, free: 12.13 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003627/0.2753, allocations: 2.697 MB / 407.3 MB, free: 9.418 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 0.0001432/0.2754, allocations: 92.16 kB / 407.4 MB, free: 9.316 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00114/0.2765, allocations: 0.8463 MB / 408.2 MB, free: 8.438 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001741/0.2783, allocations: 0.5338 MB / 408.8 MB, free: 7.914 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00822/0.2865, allocations: 6.584 MB / 415.3 MB, free: 1.227 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008981/0.2874, allocations: 1.056 MB / 416.4 MB, free: 148 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.00106/0.2885, allocations: 435.8 kB / 416.8 MB, free: 15.71 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006941/0.2892, allocations: 0.4933 MB / 417.3 MB, free: 15.22 MB / 378.7 MB Notification: Performance of SimCode: time 2.304e-06/0.2892, allocations: 3.938 kB / 417.3 MB, free: 15.21 MB / 378.7 MB Notification: Performance of Templates: time 0.1434/0.4326, allocations: 34.6 MB / 451.9 MB, free: 114.4 MB / 378.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 -s gbode -gbm=radauIIA3 -emit_protected -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.742660471238196]