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.001823/0.001823, allocations: 84.66 kB / 20.95 MB, free: 3.453 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.0015/0.0015, allocations: 149.1 kB / 24.25 MB, free: 160 kB / 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 1.493/1.493, allocations: 173.3 MB / 200.8 MB, free: 9.293 MB / 186.7 MB " [Timeout remaining time 178] 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.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.|body.v_0.1.|body.v_0.2.|body.v_0.3.",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.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.|body.v_0.1.|body.v_0.2.|body.v_0.3.",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 267.3 MB, free: 6.699 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.777e-05/2.929e-05, allocations: 6.25 kB / 267.3 MB, free: 6.691 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.01328/0.01331, allocations: 9.191 MB / 276.5 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.008353/0.02166, allocations: 3.641 MB / 280.2 MB, free: 9.797 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001405/0.02307, allocations: 75.56 kB / 280.2 MB, free: 9.723 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005453/0.02852, allocations: 2.394 MB / 282.6 MB, free: 7.32 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004507/0.03303, allocations: 1.8 MB / 284.4 MB, free: 5.512 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001466/0.03449, allocations: 0.6821 MB / 285.1 MB, free: 4.828 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00525/0.03974, allocations: 3.816 MB / 288.9 MB, free: 1.008 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1119/0.1517, allocations: 2.77 MB / 291.7 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002967/0.1546, allocations: 2.082 MB / 293.8 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003264/0.1579, allocations: 1.927 MB / 295.7 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008212/0.1587, allocations: 296 kB / 296 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002402/0.1611, allocations: 1.102 MB / 297.1 MB, free: 15.22 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001709/0.1628, allocations: 1.819 MB / 298.9 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00128/0.1641, allocations: 1.143 MB / 300.1 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006035/0.1701, allocations: 6.295 MB / 306.4 MB, free: 12.84 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.1701, allocations: 3.938 kB / 306.4 MB, free: 12.83 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1701, allocations: 1.906 kB / 306.4 MB, free: 12.83 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001661/0.1703, allocations: 0 / 306.4 MB, free: 12.83 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.006831/0.1771, allocations: 4.292 MB / 310.7 MB, free: 9.902 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/0.1772, allocations: 10.17 kB / 310.7 MB, free: 9.902 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00625/0.1834, allocations: 2.338 MB / 313 MB, free: 8.797 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003068/0.1865, allocations: 1.985 MB / 315 MB, free: 7.684 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001058/0.1866, allocations: 221.7 kB / 315.2 MB, free: 7.531 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006769/0.1873, allocations: 374.3 kB / 315.6 MB, free: 7.207 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01139/0.1987, allocations: 8.919 MB / 324.5 MB, free: 13.82 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.295e-05/0.1987, allocations: 29.72 kB / 324.5 MB, free: 13.8 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003859/0.1991, allocations: 140.7 kB / 324.7 MB, free: 13.7 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002758/0.2019, allocations: 1.639 MB / 326.3 MB, free: 12.09 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01533/0.2172, allocations: 7.488 MB / 333.8 MB, free: 4.762 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04688/0.2641, allocations: 33.06 MB / 366.8 MB, free: 3.184 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008955/0.2731, allocations: 3.01 MB / 369.8 MB, free: 156 kB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002228/0.2753, allocations: 1.383 MB / 371.2 MB, free: 14.77 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01051/0.2858, allocations: 5.468 MB / 376.7 MB, free: 9.305 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.165e-05/0.2858, allocations: 50.11 kB / 376.7 MB, free: 9.25 MB / 330.7 MB Notification: Performance of pre-optimization done (n=132): time 4.438e-06/0.2858, allocations: 4 kB / 376.8 MB, free: 9.246 MB / 330.7 MB Notification: Performance of matching and sorting (n=139): time 0.03004/0.3159, allocations: 11.29 MB / 388 MB, free: 13.92 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001865/0.3177, allocations: 1.577 MB / 389.6 MB, free: 12.21 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006063/0.3238, allocations: 3.494 MB / 393.1 MB, free: 8.707 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004073/0.3242, allocations: 46.89 kB / 393.2 MB, free: 8.656 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002721/0.3269, allocations: 2.89 MB / 396 MB, free: 5.781 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008955/0.3278, allocations: 0.5859 MB / 396.6 MB, free: 5.203 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001735/0.3296, allocations: 1.104 MB / 397.7 MB, free: 4.094 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.3297, allocations: 301.1 kB / 398 MB, free: 3.797 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003313/0.333, allocations: 1.939 MB / 400 MB, free: 1.852 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006952/0.34, allocations: 5.387 MB / 405.4 MB, free: 10.79 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01204/0.352, allocations: 7.849 MB / 413.2 MB, free: 1.367 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001202/0.3521, allocations: 32 kB / 413.2 MB, free: 1.336 MB / 362.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.02331/0.3755, allocations: 9.08 MB / 422.3 MB, free: 8.238 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001424/0.3756, allocations: 59.94 kB / 422.4 MB, free: 8.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01146/0.3871, allocations: 3.466 MB / 425.8 MB, free: 4.707 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01103/0.3981, allocations: 2.238 MB / 428.1 MB, free: 2.453 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004374/0.4025, allocations: 1.255 MB / 429.3 MB, free: 1.195 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1457/0.5482, allocations: 7.07 MB / 436.4 MB, free: 116.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004383/0.5526, allocations: 417.5 kB / 436.8 MB, free: 116.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008515/0.5534, allocations: 349 kB / 437.2 MB, free: 116.1 MB / 378.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.002957/0.5564, allocations: 1.853 MB / 439 MB, free: 115.4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006191/0.557, allocations: 323.6 kB / 439.3 MB, free: 115.4 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004896/0.5619, allocations: 2.73 MB / 442.1 MB, free: 114.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00396/0.5659, allocations: 2.348 MB / 444.4 MB, free: 113.7 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.128e-05/0.5659, allocations: 5.625 kB / 444.4 MB, free: 113.7 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.388e-05/0.5659, allocations: 5.25 kB / 444.4 MB, free: 113.7 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01142/0.5773, allocations: 6.971 MB / 451.4 MB, free: 111.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.071e-05/0.5773, allocations: 4.938 kB / 451.4 MB, free: 111.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009607/0.5783, allocations: 226.6 kB / 451.6 MB, free: 111.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002706/0.581, allocations: 1.058 MB / 452.7 MB, free: 111 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001418/0.5811, allocations: 41.97 kB / 452.7 MB, free: 110.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004398/0.5855, allocations: 5.021 MB / 457.7 MB, free: 107.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0007204/0.5862, allocations: 1.44 MB / 459.2 MB, free: 106.4 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006484/0.5927, allocations: 4.983 MB / 464.1 MB, free: 104.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007385/0.5935, allocations: 285.7 kB / 464.4 MB, free: 104.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004956/0.594, allocations: 28.58 kB / 464.5 MB, free: 104.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001315/0.5953, allocations: 153 kB / 464.6 MB, free: 104.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002438/0.5955, allocations: 88.05 kB / 464.7 MB, free: 104.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001048/0.5956, allocations: 41.3 kB / 464.7 MB, free: 104.5 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00249/0.5981, allocations: 2.011 MB / 466.7 MB, free: 103.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 8e-08/0.5981, allocations: 0 / 466.7 MB, free: 103.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00417/0.6023, allocations: 1.016 MB / 467.8 MB, free: 102.3 MB / 378.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.0004251/0.6027, allocations: 192 kB / 467.9 MB, free: 102.1 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006511/0.6092, allocations: 4.907 MB / 472.9 MB, free: 97.37 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.6092, allocations: 0 / 472.9 MB, free: 97.37 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002864/0.6121, allocations: 1.782 MB / 474.6 MB, free: 95.57 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001836/0.6139, allocations: 378.9 kB / 475 MB, free: 95.23 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00912/0.623, allocations: 8.461 MB / 483.5 MB, free: 86.72 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002092/0.6251, allocations: 2.356 MB / 485.8 MB, free: 84.33 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002839/0.628, allocations: 1.667 MB / 487.5 MB, free: 82.66 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004668/0.6284, allocations: 208.4 kB / 487.7 MB, free: 82.46 MB / 378.7 MB Notification: Performance of SimCode: time 1.262e-06/0.6284, allocations: 1.75 kB / 487.7 MB, free: 82.46 MB / 378.7 MB Notification: Performance of Templates: time 0.04726/0.6757, allocations: 31.65 MB / 0.5072 GB, free: 51.29 MB / 378.7 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.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.304559479933232]