Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Bodylight_Bodylight.Hydraulic.Examples.Windkessel_4element.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.002289/0.002289, allocations: 109.5 kB / 18.95 MB, free: 1.176 MB / 13.93 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.002676/0.002676, allocations: 218.3 kB / 22.25 MB, free: 3.574 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 1.786/1.786, allocations: 230.6 MB / 256 MB, free: 9.594 MB / 202.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/package.mo): time 0.1097/0.1097, allocations: 17.16 MB / 329.6 MB, free: 0.6992 MB / 250.7 MB " [Timeout remaining time 180] Using package Bodylight with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Bodylight 1.1.0/package.mo) 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(Bodylight.Hydraulic.Examples.Windkessel_4element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.Hydraulic.Examples.Windkessel_4element") translateModel(Bodylight.Hydraulic.Examples.Windkessel_4element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Bodylight_Bodylight.Hydraulic.Examples.Windkessel_4element") [Timeout 660] "Notification: Bodylight requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.005419/0.005419, allocations: 71.88 kB / 460.7 MB, free: 26.37 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1567/0.1621, allocations: 57.77 MB / 0.5063 GB, free: 0.4961 MB / 362.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Hydraulic.Examples.Windkessel_4element): time 0.005072/0.1672, allocations: 2.637 MB / 0.5089 GB, free: 13.84 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001726/0.1689, allocations: 0.6701 MB / 0.5095 GB, free: 13.17 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002429/0.1691, allocations: 7.938 kB / 0.5095 GB, free: 13.16 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002084/0.1693, allocations: 43.58 kB / 0.5096 GB, free: 13.12 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003802/0.1697, allocations: 91.23 kB / 0.5097 GB, free: 13.03 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002704/0.17, allocations: 79.83 kB / 0.5097 GB, free: 12.95 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005249/0.1705, allocations: 318.5 kB / 0.51 GB, free: 12.64 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001827/0.1707, allocations: 56.55 kB / 0.5101 GB, free: 12.58 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003561/0.1711, allocations: 127.6 kB / 0.5102 GB, free: 12.46 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003182/0.1714, allocations: 107.5 kB / 0.5103 GB, free: 12.35 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 5.379e-05/0.1714, allocations: 23.94 kB / 0.5103 GB, free: 12.33 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.011e-05/0.1715, allocations: 20 kB / 0.5104 GB, free: 12.31 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.243e-05/0.1716, allocations: 47.84 kB / 0.5104 GB, free: 12.26 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001576/0.1717, allocations: 103.6 kB / 0.5105 GB, free: 12.16 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004101/0.1721, allocations: 251 kB / 0.5108 GB, free: 11.91 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.1721, allocations: 4 kB / 0.5108 GB, free: 11.91 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1721, allocations: 4 kB / 0.5108 GB, free: 11.91 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.166e-05/0.1722, allocations: 0 / 0.5108 GB, free: 11.91 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.001095/0.1732, allocations: 468.9 kB / 0.5112 GB, free: 11.42 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.769e-05/0.1733, allocations: 8.031 kB / 0.5112 GB, free: 11.41 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.264e-05/0.1734, allocations: 24.8 kB / 0.5112 GB, free: 11.39 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003727/0.1738, allocations: 190.1 kB / 0.5114 GB, free: 11.18 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001515/0.1739, allocations: 127.4 kB / 0.5115 GB, free: 11.03 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.077e-05/0.174, allocations: 20.31 kB / 0.5116 GB, free: 11.01 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000485/0.1744, allocations: 211.2 kB / 0.5118 GB, free: 10.79 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/0.1745, allocations: 0 / 0.5118 GB, free: 10.79 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.71e-05/0.1745, allocations: 12 kB / 0.5118 GB, free: 10.78 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.407e-06/0.1745, allocations: 4 kB / 0.5118 GB, free: 10.77 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004151/0.1749, allocations: 167.5 kB / 0.5119 GB, free: 10.61 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001374/0.1763, allocations: 495.7 kB / 0.5124 GB, free: 10.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006617/0.1769, allocations: 190.3 kB / 0.5126 GB, free: 9.898 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002896/0.1772, allocations: 100.9 kB / 0.5127 GB, free: 9.797 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.51e-05/0.1773, allocations: 7.938 kB / 0.5127 GB, free: 9.789 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002985/0.1776, allocations: 151.8 kB / 0.5128 GB, free: 9.625 MB / 378.7 MB Notification: Performance of pre-optimization done (n=18): time 1.402e-06/0.1776, allocations: 4 kB / 0.5128 GB, free: 9.621 MB / 378.7 MB Notification: Performance of matching and sorting (n=18): time 0.0007028/0.1783, allocations: 257.7 kB / 0.5131 GB, free: 9.363 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.359e-05/0.1783, allocations: 55.41 kB / 0.5131 GB, free: 9.297 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001988/0.1785, allocations: 175.3 kB / 0.5133 GB, free: 9.113 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.817e-05/0.1785, allocations: 25.7 kB / 0.5133 GB, free: 9.082 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001229/0.1787, allocations: 144.3 kB / 0.5135 GB, free: 8.938 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.772e-05/0.1787, allocations: 59.47 kB / 0.5135 GB, free: 8.879 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.312e-05/0.1788, allocations: 45.7 kB / 0.5136 GB, free: 8.828 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000191/0.179, allocations: 330.8 kB / 0.5139 GB, free: 8.496 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001895/0.1792, allocations: 59.95 kB / 0.5139 GB, free: 8.438 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001951/0.1794, allocations: 87.39 kB / 0.514 GB, free: 8.34 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009517/0.1803, allocations: 326.1 kB / 0.5143 GB, free: 8.008 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.1803, allocations: 0 / 0.5143 GB, free: 8.008 MB / 378.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004937/0.1808, allocations: 212.3 kB / 0.5145 GB, free: 7.797 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/0.1809, allocations: 4 kB / 0.5145 GB, free: 7.793 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.1809, allocations: 7.984 kB / 0.5146 GB, free: 7.785 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.622e-05/0.1809, allocations: 0 / 0.5146 GB, free: 7.785 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004942/0.1814, allocations: 87.94 kB / 0.5146 GB, free: 7.699 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.1814, allocations: 3.938 kB / 0.5146 GB, free: 7.695 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001612/0.1815, allocations: 23.88 kB / 0.5147 GB, free: 7.672 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.92e-05/0.1816, allocations: 8 kB / 0.5147 GB, free: 7.664 MB / 378.7 MB Warning: Assuming fixed start value for the following 3 variables: pulses.HP:DISCRETE(unit = \"s\" fixed = true nominal = 60.0 ) \"duration of cardiac cycle\" type: Real pulses.T0:DISCRETE(unit = \"s\" fixed = true nominal = 60.0 ) \"beginning of cardiac cycle\" type: Real inertia.q_in.q:VARIABLE(flow=true unit = \"m3/s\" fixed = true nominal = 1.6666666666666667e-8 ) \"Volume flow\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 7 ($PRE.pulses.HP,$PRE.pulses.T0,pulses.b,$whenCondition1,pulses.TD2,pulses.HP,pulses.T0) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * Array equations: 0 * 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.0002024/0.1818, allocations: 146.2 kB / 0.5148 GB, free: 7.512 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.355e-05/0.1818, allocations: 15.91 kB / 0.5148 GB, free: 7.496 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005117/0.1823, allocations: 215.2 kB / 0.515 GB, free: 7.281 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.002e-06/0.1823, allocations: 8 kB / 0.515 GB, free: 7.273 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.1823, allocations: 3.938 kB / 0.515 GB, free: 7.27 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.1823, allocations: 0 / 0.515 GB, free: 7.27 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009114/0.1832, allocations: 493.8 kB / 0.5155 GB, free: 6.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.1832, allocations: 0 / 0.5155 GB, free: 6.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004574/0.1837, allocations: 75.88 kB / 0.5156 GB, free: 6.676 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.627e-06/0.1837, allocations: 0 / 0.5156 GB, free: 6.676 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.048e-05/0.1837, allocations: 3.938 kB / 0.5156 GB, free: 6.672 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.033e-06/0.1837, allocations: 0 / 0.5156 GB, free: 6.672 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1837, allocations: 4 kB / 0.5156 GB, free: 6.668 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007671/0.1845, allocations: 381.9 kB / 0.516 GB, free: 6.281 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.86e-05/0.1845, allocations: 19.92 kB / 0.516 GB, free: 6.262 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.765e-05/0.1846, allocations: 7.938 kB / 0.516 GB, free: 6.254 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001643/0.1847, allocations: 15.98 kB / 0.516 GB, free: 6.238 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.823e-05/0.1848, allocations: 23.91 kB / 0.516 GB, free: 6.215 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.055e-05/0.1848, allocations: 4 kB / 0.516 GB, free: 6.211 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000125/0.1849, allocations: 119.2 kB / 0.5161 GB, free: 6.094 MB / 378.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1849, allocations: 64 / 0.5161 GB, free: 6.094 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003082/0.1853, allocations: 75.81 kB / 0.5162 GB, free: 6.02 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (arteries.volume,inertia.q_in.q) * Number of discrete variables: 5 (pulses.b,$whenCondition1,pulses.T0,pulses.HP,pulses.TD2) * Number of discrete states: 2 (pulses.T0,pulses.HP) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001302/0.1854, allocations: 101 kB / 0.5163 GB, free: 5.91 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004444/0.1858, allocations: 147.8 kB / 0.5164 GB, free: 5.766 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.1858, allocations: 4 kB / 0.5165 GB, free: 5.762 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000198/0.186, allocations: 76.03 kB / 0.5165 GB, free: 5.688 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003695/0.1864, allocations: 44.97 kB / 0.5166 GB, free: 5.648 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001045/0.1874, allocations: 0.5104 MB / 0.5171 GB, free: 5.109 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001366/0.1876, allocations: 117.2 kB / 0.5172 GB, free: 4.973 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001091/0.1877, allocations: 25.47 kB / 0.5172 GB, free: 4.945 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.06e-05/0.1878, allocations: 23.42 kB / 0.5172 GB, free: 4.926 MB / 378.7 MB Notification: Performance of SimCode: time 2.8e-07/0.1878, allocations: 0 / 0.5172 GB, free: 4.926 MB / 378.7 MB Notification: Performance of Templates: time 0.006621/0.1944, allocations: 2.394 MB / 0.5196 GB, free: 2.57 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Bodylight_Bodylight.Hydraulic.Examples.Windkessel_4element.makefile [Timeout 660] (rm -f Bodylight_Bodylight.Hydraulic.Examples.Windkessel_4element.pipe ; mkfifo Bodylight_Bodylight.Hydraulic.Examples.Windkessel_4element.pipe ; head -c 1048576 < Bodylight_Bodylight.Hydraulic.Examples.Windkessel_4element.pipe >> ../files/Bodylight_Bodylight.Hydraulic.Examples.Windkessel_4element.sim & ./Bodylight_Bodylight.Hydraulic.Examples.Windkessel_4element -abortSlowSimulation -alarm=240 -lv LOG_STATS > Bodylight_Bodylight.Hydraulic.Examples.Windkessel_4element.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.73415890801698]