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.002137/0.002137, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.007681/0.007681, allocations: 165.9 kB / 22.45 MB, free: 2.105 MB / 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 1.534/1.534, allocations: 177.1 MB / 202.8 MB, free: 5.723 MB / 186.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.1114/0.1114, allocations: 12.74 MB / 271.9 MB, free: 476 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.933e-06/1.933e-06, allocations: 0 / 403.1 MB, free: 8.121 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.989e-05/3.182e-05, allocations: 2.281 kB / 403.1 MB, free: 8.117 MB / 330.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Hydraulic.Examples.Windkessel_4element): time 0.004591/0.004623, allocations: 2.656 MB / 405.7 MB, free: 5.449 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001405/0.006028, allocations: 0.666 MB / 406.4 MB, free: 4.781 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001216/0.00615, allocations: 11.94 kB / 406.4 MB, free: 4.77 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001589/0.006308, allocations: 43.56 kB / 406.5 MB, free: 4.727 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002819/0.00659, allocations: 95.17 kB / 406.6 MB, free: 4.633 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002189/0.006809, allocations: 83.69 kB / 406.6 MB, free: 4.551 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.000444/0.007253, allocations: 334.2 kB / 407 MB, free: 4.223 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001706/0.007424, allocations: 48.58 kB / 407 MB, free: 4.176 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003606/0.007784, allocations: 179.6 kB / 407.2 MB, free: 4 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002258/0.00801, allocations: 91.72 kB / 407.3 MB, free: 3.91 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 4.529e-05/0.008055, allocations: 20 kB / 407.3 MB, free: 3.891 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.201e-05/0.008107, allocations: 20 kB / 407.3 MB, free: 3.871 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 6.186e-05/0.008169, allocations: 47.81 kB / 407.4 MB, free: 3.824 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001433/0.008313, allocations: 91.77 kB / 407.4 MB, free: 3.734 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003654/0.008678, allocations: 255.2 kB / 407.7 MB, free: 3.484 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.008684, allocations: 4 kB / 407.7 MB, free: 3.48 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.008685, allocations: 7.875 kB / 407.7 MB, free: 3.473 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.428e-06/0.008689, allocations: 0 / 407.7 MB, free: 3.473 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.0009453/0.009634, allocations: 461 kB / 408.2 MB, free: 2.992 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.009674, allocations: 15.98 kB / 408.2 MB, free: 2.977 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.606e-05/0.00975, allocations: 32.75 kB / 408.2 MB, free: 2.945 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003483/0.0101, allocations: 201.4 kB / 408.4 MB, free: 2.723 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001368/0.01024, allocations: 115.4 kB / 408.5 MB, free: 2.586 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.637e-05/0.01028, allocations: 20.38 kB / 408.5 MB, free: 2.566 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004517/0.01073, allocations: 207.8 kB / 408.7 MB, free: 2.352 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.557e-05/0.01075, allocations: 4.188 kB / 408.7 MB, free: 2.348 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.33e-05/0.01077, allocations: 11.94 kB / 408.8 MB, free: 2.336 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.01078, allocations: 4 kB / 408.8 MB, free: 2.332 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004447/0.01122, allocations: 163.5 kB / 408.9 MB, free: 2.172 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001027/0.01225, allocations: 487.8 kB / 409.4 MB, free: 1.664 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006937/0.01295, allocations: 201.6 kB / 409.6 MB, free: 1.461 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003091/0.01326, allocations: 96.8 kB / 409.7 MB, free: 1.363 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.531e-05/0.01328, allocations: 4 kB / 409.7 MB, free: 1.359 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003026/0.01358, allocations: 153 kB / 409.8 MB, free: 1.191 MB / 330.7 MB Notification: Performance of pre-optimization done (n=18): time 1.443e-06/0.01358, allocations: 0 / 409.8 MB, free: 1.191 MB / 330.7 MB Notification: Performance of matching and sorting (n=18): time 0.000705/0.01429, allocations: 257.6 kB / 410.1 MB, free: 0.9336 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.12e-05/0.01434, allocations: 55.41 kB / 410.1 MB, free: 0.8672 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001952/0.01454, allocations: 175.2 kB / 410.3 MB, free: 0.6836 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.293e-05/0.01457, allocations: 33.7 kB / 410.3 MB, free: 0.6445 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001106/0.01468, allocations: 140.3 kB / 410.5 MB, free: 0.5039 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.326e-05/0.01474, allocations: 55.53 kB / 410.5 MB, free: 460 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.98e-05/0.01482, allocations: 41.66 kB / 410.6 MB, free: 412 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001847/0.01501, allocations: 334.8 kB / 410.9 MB, free: 68 kB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001857/0.01519, allocations: 59.83 kB / 411 MB, free: 8 kB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1875/0.2027, allocations: 87.27 kB / 411.1 MB, free: 21.51 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009525/0.2036, allocations: 310.5 kB / 411.4 MB, free: 21.47 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.2036, allocations: 2.438 kB / 411.4 MB, free: 21.47 MB / 330.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004654/0.2041, allocations: 216.5 kB / 411.6 MB, free: 21.44 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.2041, allocations: 5.719 kB / 411.6 MB, free: 21.44 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.2041, allocations: 1.906 kB / 411.6 MB, free: 21.44 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.145e-05/0.2041, allocations: 2.781 kB / 411.6 MB, free: 21.44 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004823/0.2046, allocations: 82.73 kB / 411.7 MB, free: 21.44 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.2046, allocations: 2.906 kB / 411.7 MB, free: 21.44 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001498/0.2048, allocations: 22.22 kB / 411.7 MB, free: 21.44 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.771e-05/0.2048, allocations: 7.672 kB / 411.7 MB, free: 21.44 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.0001727/0.205, allocations: 149.5 kB / 411.8 MB, free: 21.32 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.722e-05/0.205, allocations: 18.86 kB / 411.9 MB, free: 21.32 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004609/0.2055, allocations: 212.2 kB / 412.1 MB, free: 21.29 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.2055, allocations: 10.36 kB / 412.1 MB, free: 21.29 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.2055, allocations: 1.797 kB / 412.1 MB, free: 21.29 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.179e-06/0.2055, allocations: 8.625 kB / 412.1 MB, free: 21.29 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007339/0.2062, allocations: 494.5 kB / 412.6 MB, free: 20.98 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2062, allocations: 0 / 412.6 MB, free: 20.98 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004459/0.2067, allocations: 70.02 kB / 412.6 MB, free: 20.98 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.2067, allocations: 1.281 kB / 412.6 MB, free: 20.98 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.916e-05/0.2067, allocations: 14.39 kB / 412.7 MB, free: 20.97 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.464e-06/0.2067, allocations: 1.438 kB / 412.7 MB, free: 20.97 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2067, allocations: 0 / 412.7 MB, free: 20.97 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006318/0.2073, allocations: 375.7 kB / 413 MB, free: 20.77 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.621e-05/0.2074, allocations: 13.94 kB / 413 MB, free: 20.77 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.116e-05/0.2074, allocations: 6.781 kB / 413 MB, free: 20.77 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001528/0.2075, allocations: 13.53 kB / 413.1 MB, free: 20.77 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.894e-05/0.2076, allocations: 16.52 kB / 413.1 MB, free: 20.76 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.572e-05/0.2076, allocations: 13.11 kB / 413.1 MB, free: 20.76 MB / 330.7 MB Notification: Performance of sorting global known variables: time 8.441e-05/0.2077, allocations: 126.5 kB / 413.2 MB, free: 20.67 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.2077, allocations: 0 / 413.2 MB, free: 20.67 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003018/0.208, allocations: 62.22 kB / 413.3 MB, free: 20.67 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.0001008/0.2081, allocations: 102.2 kB / 413.4 MB, free: 20.57 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004279/0.2085, allocations: 157.9 kB / 413.5 MB, free: 20.54 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.2085, allocations: 0 / 413.5 MB, free: 20.54 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001949/0.2087, allocations: 76.12 kB / 413.6 MB, free: 20.52 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003674/0.2091, allocations: 38.72 kB / 413.6 MB, free: 20.5 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007461/0.2099, allocations: 459.1 kB / 414.1 MB, free: 20.21 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.701e-05/0.21, allocations: 120.5 kB / 414.2 MB, free: 20.14 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 9.747e-05/0.21, allocations: 24.48 kB / 414.2 MB, free: 20.14 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.602e-05/0.2101, allocations: 21.2 kB / 414.2 MB, free: 20.13 MB / 330.7 MB Notification: Performance of SimCode: time 4.81e-07/0.2101, allocations: 6.406 kB / 414.2 MB, free: 20.12 MB / 330.7 MB Notification: Performance of Templates: time 0.006019/0.2161, allocations: 2.07 MB / 416.3 MB, free: 19.89 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 -abortSlowSimulation -alarm=240 -lv LOG_STATS > Bodylight_Bodylight.Hydraulic.Examples.Windkessel_4element.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.295105144847184]