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.0008832/0.0008832, allocations: 73.09 kB / 20.65 MB, free: 3.844 MB / 18.57 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.001445/0.001445, allocations: 169 kB / 24.06 MB, free: 452 kB / 18.57 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 0.9399/0.9399, allocations: 177.1 MB / 204.5 MB, free: 5.484 MB / 186.7 MB " [Timeout remaining time 179] 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.05709/0.05709, allocations: 12.76 MB / 273.8 MB, free: 104 kB / 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: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 347.1 MB, free: 2.855 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.571e-05/2.735e-05, allocations: 6.312 kB / 347.1 MB, free: 2.848 MB / 314.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Hydraulic.Examples.Windkessel_4element): time 0.003949/0.003976, allocations: 2.838 MB / 349.9 MB, free: 0 / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001388/0.005364, allocations: 0.6933 MB / 350.6 MB, free: 15.3 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001268/0.00549, allocations: 7.938 kB / 350.6 MB, free: 15.3 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001545/0.005645, allocations: 35.62 kB / 350.7 MB, free: 15.26 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003243/0.005969, allocations: 99.11 kB / 350.8 MB, free: 15.16 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002354/0.006205, allocations: 83.77 kB / 350.9 MB, free: 15.08 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.000406/0.006611, allocations: 334.2 kB / 351.2 MB, free: 14.75 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001516/0.006762, allocations: 44.56 kB / 351.2 MB, free: 14.71 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003042/0.007066, allocations: 179.6 kB / 351.4 MB, free: 14.54 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001505/0.007217, allocations: 95.72 kB / 351.5 MB, free: 14.44 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.952e-05/0.007246, allocations: 20 kB / 351.5 MB, free: 14.42 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.076e-05/0.007277, allocations: 20 kB / 351.5 MB, free: 14.4 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 4.717e-05/0.007324, allocations: 51.77 kB / 351.6 MB, free: 14.35 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 9.79e-05/0.007422, allocations: 87.83 kB / 351.7 MB, free: 14.27 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000306/0.007728, allocations: 187.4 kB / 351.8 MB, free: 14.08 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.237e-06/0.007731, allocations: 0 / 351.8 MB, free: 14.08 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.007732, allocations: 0 / 351.8 MB, free: 14.08 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.007738, allocations: 0 / 351.8 MB, free: 14.08 MB / 330.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.0007121/0.00845, allocations: 0.5578 MB / 352.4 MB, free: 13.49 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.008488, allocations: 15.98 kB / 352.4 MB, free: 13.47 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.948e-05/0.008567, allocations: 48.73 kB / 352.5 MB, free: 13.43 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002976/0.008865, allocations: 204.2 kB / 352.7 MB, free: 13.2 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001058/0.008971, allocations: 115.4 kB / 352.8 MB, free: 13.06 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.218e-05/0.009013, allocations: 24.36 kB / 352.8 MB, free: 13.04 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002893/0.009302, allocations: 172.5 kB / 353 MB, free: 12.86 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.009315, allocations: 4.188 kB / 353 MB, free: 12.85 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.28e-05/0.009338, allocations: 11.94 kB / 353 MB, free: 12.84 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.009345, allocations: 4 kB / 353 MB, free: 12.84 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001128/0.009458, allocations: 71.5 kB / 353.1 MB, free: 12.77 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007556/0.01021, allocations: 495.6 kB / 353.5 MB, free: 12.25 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004066/0.01062, allocations: 134.8 kB / 353.7 MB, free: 12.11 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001167/0.01074, allocations: 63.58 kB / 353.7 MB, free: 12.04 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.454e-05/0.01076, allocations: 7.984 kB / 353.7 MB, free: 12.04 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001559/0.01092, allocations: 118.7 kB / 353.9 MB, free: 11.9 MB / 330.7 MB Notification: Performance of pre-optimization done (n=18): time 2.595e-06/0.01092, allocations: 0 / 353.9 MB, free: 11.9 MB / 330.7 MB Notification: Performance of matching and sorting (n=18): time 0.000347/0.01127, allocations: 160.8 kB / 354 MB, free: 11.74 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.72e-05/0.0113, allocations: 55.41 kB / 354.1 MB, free: 11.67 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00015/0.01145, allocations: 217.8 kB / 354.3 MB, free: 11.44 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.282e-05/0.01148, allocations: 37.7 kB / 354.3 MB, free: 11.4 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.831e-05/0.01158, allocations: 191 kB / 354.5 MB, free: 11.21 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.152e-05/0.01163, allocations: 59.52 kB / 354.6 MB, free: 11.15 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.687e-05/0.0117, allocations: 47.34 kB / 354.6 MB, free: 11.09 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.01182, allocations: 0.5001 MB / 355.1 MB, free: 10.58 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.644e-05/0.01186, allocations: 19.84 kB / 355.1 MB, free: 10.56 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.418e-05/0.01191, allocations: 74.64 kB / 355.2 MB, free: 10.47 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001651/0.01208, allocations: 122.9 kB / 355.3 MB, free: 10.33 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.01208, allocations: 4 kB / 355.3 MB, free: 10.33 MB / 330.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002374/0.01232, allocations: 147.5 kB / 355.5 MB, free: 10.18 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.01233, allocations: 8 kB / 355.5 MB, free: 10.17 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.01234, allocations: 0 / 355.5 MB, free: 10.17 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.278e-05/0.01235, allocations: 0 / 355.5 MB, free: 10.17 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003745/0.01273, allocations: 87.88 kB / 355.6 MB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.609e-06/0.01273, allocations: 0 / 355.6 MB, free: 10.09 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001107/0.01284, allocations: 19.89 kB / 355.6 MB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.654e-05/0.01286, allocations: 11.98 kB / 355.6 MB, free: 10.05 MB / 330.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.0001418/0.013, allocations: 177 kB / 355.8 MB, free: 9.867 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.461e-05/0.01304, allocations: 27.86 kB / 355.8 MB, free: 9.84 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002688/0.0133, allocations: 151.3 kB / 355.9 MB, free: 9.688 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.01331, allocations: 0 / 355.9 MB, free: 9.688 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-06/0.01331, allocations: 0 / 355.9 MB, free: 9.688 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.199e-06/0.01331, allocations: 0 / 355.9 MB, free: 9.688 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005995/0.01391, allocations: 448.4 kB / 356.4 MB, free: 9.219 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.01392, allocations: 4.047 kB / 356.4 MB, free: 9.215 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002359/0.01415, allocations: 71.95 kB / 356.5 MB, free: 9.145 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.01416, allocations: 0 / 356.5 MB, free: 9.145 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.268e-05/0.01417, allocations: 0 / 356.5 MB, free: 9.145 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.729e-06/0.01418, allocations: 4 kB / 356.5 MB, free: 9.141 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.01418, allocations: 0 / 356.5 MB, free: 9.141 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004047/0.01458, allocations: 319.6 kB / 356.8 MB, free: 8.809 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.726e-05/0.01461, allocations: 15.91 kB / 356.8 MB, free: 8.793 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.919e-05/0.01464, allocations: 4 kB / 356.8 MB, free: 8.789 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001293/0.01477, allocations: 11.98 kB / 356.8 MB, free: 8.777 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.475e-05/0.01482, allocations: 16.02 kB / 356.8 MB, free: 8.762 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.509e-05/0.01485, allocations: 7.984 kB / 356.8 MB, free: 8.754 MB / 330.7 MB Notification: Performance of sorting global known variables: time 9.18e-05/0.01494, allocations: 168.2 kB / 357 MB, free: 8.59 MB / 330.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01494, allocations: 0 / 357 MB, free: 8.59 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000265/0.0152, allocations: 63.83 kB / 357.1 MB, free: 8.527 MB / 330.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.0001103/0.01531, allocations: 99.28 kB / 357.2 MB, free: 8.422 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00021/0.01552, allocations: 102 kB / 357.3 MB, free: 8.32 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.01553, allocations: 0 / 357.3 MB, free: 8.32 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 9.232e-05/0.01562, allocations: 55.59 kB / 357.3 MB, free: 8.262 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003829/0.016, allocations: 27.98 kB / 357.3 MB, free: 8.234 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00171/0.01771, allocations: 0.5233 MB / 357.9 MB, free: 7.68 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001084/0.01782, allocations: 125.2 kB / 358 MB, free: 7.539 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001799/0.018, allocations: 110.2 kB / 358.1 MB, free: 7.43 MB / 330.7 MB Notification: Performance of SimCode: time 1.853e-06/0.018, allocations: 0 / 358.1 MB, free: 7.43 MB / 330.7 MB Notification: Performance of Templates: time 0.004388/0.02239, allocations: 2.676 MB / 360.8 MB, free: 4.766 MB / 330.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 > Bodylight_Bodylight.Hydraulic.Examples.Windkessel_4element.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.6678868420422077]