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.0009689/0.0009689, allocations: 72.08 kB / 21.69 MB, free: 2.863 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.003199/0.003199, allocations: 138 kB / 24.97 MB, free: 8.898 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.9506/0.9506, allocations: 173.4 MB / 201.5 MB, free: 9.324 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.463e-06/1.463e-06, allocations: 3.938 kB / 268.1 MB, free: 6.719 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.217e-05/2.363e-05, allocations: 6.25 kB / 268.1 MB, free: 6.711 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.008176/0.0082, allocations: 10.15 MB / 278.2 MB, free: 12.51 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005641/0.01384, allocations: 3.753 MB / 282 MB, free: 8.746 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007518/0.01459, allocations: 75.62 kB / 282.1 MB, free: 8.672 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002527/0.01712, allocations: 2.476 MB / 284.5 MB, free: 6.188 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002336/0.01945, allocations: 1.804 MB / 286.3 MB, free: 4.375 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008118/0.02027, allocations: 0.6743 MB / 287 MB, free: 3.699 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1213/0.1416, allocations: 3.806 MB / 290.8 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004611/0.1462, allocations: 2.786 MB / 293.6 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005205/0.1514, allocations: 2.089 MB / 295.7 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003429/0.1548, allocations: 1.988 MB / 297.7 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009889/0.1558, allocations: 296.8 kB / 298 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002059/0.1579, allocations: 1.104 MB / 299.1 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001891/0.1597, allocations: 1.838 MB / 300.9 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002569/0.1623, allocations: 1.149 MB / 302.1 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005303/0.1676, allocations: 4.089 MB / 306.1 MB, free: 12.94 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.1676, allocations: 3.938 kB / 306.2 MB, free: 12.93 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1676, allocations: 0 / 306.2 MB, free: 12.93 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001218/0.1677, allocations: 1.281 kB / 306.2 MB, free: 12.93 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.005307/0.1731, allocations: 4.63 MB / 310.8 MB, free: 10.3 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.1731, allocations: 11.2 kB / 310.8 MB, free: 10.3 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003961/0.1771, allocations: 2.287 MB / 313.1 MB, free: 9.371 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002894/0.18, allocations: 1.842 MB / 314.9 MB, free: 8.289 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.39e-05/0.18, allocations: 210.9 kB / 315.1 MB, free: 8.219 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005373/0.1806, allocations: 367.9 kB / 315.5 MB, free: 8.113 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005887/0.1865, allocations: 5.543 MB / 321 MB, free: 2.031 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.366e-05/0.1865, allocations: 33.91 kB / 321.1 MB, free: 2.016 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002457/0.1868, allocations: 135.7 kB / 321.2 MB, free: 1.914 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001228/0.188, allocations: 1.645 MB / 322.8 MB, free: 304 kB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007309/0.1953, allocations: 3.083 MB / 325.9 MB, free: 13.39 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03265/0.228, allocations: 38.73 MB / 364.7 MB, free: 5.883 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004873/0.2329, allocations: 2.017 MB / 366.7 MB, free: 3.824 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009119/0.2338, allocations: 0.5173 MB / 367.2 MB, free: 3.297 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005488/0.2393, allocations: 4.105 MB / 371.3 MB, free: 15.2 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.588e-05/0.2393, allocations: 57.23 kB / 371.3 MB, free: 15.14 MB / 330.7 MB Notification: Performance of pre-optimization done (n=132): time 5.67e-06/0.2393, allocations: 0 / 371.3 MB, free: 15.14 MB / 330.7 MB Notification: Performance of matching and sorting (n=139): time 0.01624/0.2556, allocations: 8.151 MB / 379.5 MB, free: 6.945 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001231/0.2568, allocations: 2.04 MB / 381.5 MB, free: 4.75 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003667/0.2605, allocations: 3.153 MB / 384.7 MB, free: 1.57 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002748/0.2607, allocations: 45.7 kB / 384.7 MB, free: 1.52 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001551/0.2623, allocations: 3.047 MB / 387.8 MB, free: 14.48 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006161/0.2629, allocations: 0.6203 MB / 388.4 MB, free: 13.88 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001118/0.264, allocations: 1.184 MB / 389.6 MB, free: 12.68 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.00025/0.2643, allocations: 488.4 kB / 390.1 MB, free: 12.21 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001092/0.2654, allocations: 0.6387 MB / 390.7 MB, free: 11.57 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003424/0.2688, allocations: 5.74 MB / 396.4 MB, free: 3.516 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005889/0.2747, allocations: 7.063 MB / 403.5 MB, free: 10.25 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001278/0.2748, allocations: 36 kB / 403.5 MB, free: 10.21 MB / 362.7 MB Notification: Performance of matching and sorting (n=714) (initialization): time 0.01259/0.2874, allocations: 6.182 MB / 409.7 MB, free: 4.012 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.939e-05/0.2875, allocations: 60.88 kB / 409.8 MB, free: 3.953 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.005044/0.2925, allocations: 2.1 MB / 411.9 MB, free: 1.836 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005302/0.2978, allocations: 1.742 MB / 413.6 MB, free: 76 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003218/0.301, allocations: 1.252 MB / 414.9 MB, free: 14.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004781/0.3058, allocations: 4.782 MB / 419.7 MB, free: 9.789 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003111/0.3089, allocations: 415.3 kB / 420.1 MB, free: 9.383 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000621/0.3095, allocations: 347 kB / 420.4 MB, free: 9.047 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.001356/0.3109, allocations: 0.6225 MB / 421 MB, free: 8.41 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004981/0.3114, allocations: 322.1 kB / 421.3 MB, free: 8.094 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002683/0.3141, allocations: 1.5 MB / 422.8 MB, free: 6.566 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001971/0.316, allocations: 1.144 MB / 424 MB, free: 5.398 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.879e-06/0.3161, allocations: 7.938 kB / 424 MB, free: 5.391 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/0.3161, allocations: 7.969 kB / 424 MB, free: 5.383 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1408/0.4568, allocations: 5.575 MB / 429.6 MB, free: 106.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-05/0.4568, allocations: 2.094 kB / 429.6 MB, free: 106.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009108/0.4578, allocations: 225.2 kB / 429.8 MB, free: 106.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001843/0.4596, allocations: 0.5659 MB / 430.4 MB, free: 106.3 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002499/0.4598, allocations: 35.09 kB / 430.4 MB, free: 106.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002655/0.4625, allocations: 4.224 MB / 434.6 MB, free: 102.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0005301/0.463, allocations: 1.907 MB / 436.5 MB, free: 101 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003897/0.4669, allocations: 2.542 MB / 439.1 MB, free: 100.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007098/0.4676, allocations: 288.6 kB / 439.4 MB, free: 100.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003332/0.468, allocations: 32.55 kB / 439.4 MB, free: 100.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008565/0.4688, allocations: 147.1 kB / 439.5 MB, free: 100.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002402/0.4691, allocations: 90.73 kB / 439.6 MB, free: 100.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.747e-05/0.4691, allocations: 44.34 kB / 439.7 MB, free: 100.3 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002124/0.4713, allocations: 1.339 MB / 441 MB, free: 100.1 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4713, allocations: 0 / 441 MB, free: 100.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003642/0.4749, allocations: 1.022 MB / 442 MB, free: 100.1 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.000459/0.4754, allocations: 187.1 kB / 442.2 MB, free: 100 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005399/0.4808, allocations: 3.372 MB / 445.6 MB, free: 99.56 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.4808, allocations: 0 / 445.6 MB, free: 99.56 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001804/0.4826, allocations: 1.319 MB / 446.9 MB, free: 99.16 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001866/0.4844, allocations: 366.5 kB / 447.3 MB, free: 99.14 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008996/0.4934, allocations: 6.862 MB / 454.1 MB, free: 96.19 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009856/0.4944, allocations: 1.059 MB / 455.2 MB, free: 96.04 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002285/0.4967, allocations: 1.441 MB / 456.6 MB, free: 95.91 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004217/0.4971, allocations: 211.4 kB / 456.8 MB, free: 95.89 MB / 378.7 MB Notification: Performance of SimCode: time 1.943e-06/0.4971, allocations: 1.422 kB / 456.8 MB, free: 95.89 MB / 378.7 MB Notification: Performance of Templates: time 0.0393/0.5364, allocations: 32.04 MB / 488.9 MB, free: 68.7 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=240 -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: 4.087465975899249]