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.0009877/0.0009877, allocations: 100.4 kB / 19.7 MB, free: 440 kB / 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.001146/0.001146, allocations: 219.6 kB / 23 MB, free: 2.973 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.035/1.035, allocations: 230.6 MB / 256.8 MB, free: 9.602 MB / 202.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.05928/0.05928, allocations: 17.17 MB / 330.4 MB, free: 0.707 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.001365/0.001365, allocations: 67.89 kB / 460.7 MB, free: 27.16 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09341/0.09478, allocations: 57.77 MB / 0.5063 GB, free: 1.293 MB / 362.7 MB Notification: Performance of NFInst.instantiate(Bodylight.Hydraulic.Examples.Windkessel_4element): time 0.002772/0.09755, allocations: 2.647 MB / 0.5089 GB, free: 14.63 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008231/0.09837, allocations: 0.67 MB / 0.5095 GB, free: 13.96 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001055/0.09848, allocations: 7.938 kB / 0.5095 GB, free: 13.95 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001343/0.09861, allocations: 51.56 kB / 0.5096 GB, free: 13.9 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001993/0.09881, allocations: 95.22 kB / 0.5097 GB, free: 13.8 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001619/0.09898, allocations: 75.84 kB / 0.5097 GB, free: 13.73 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.000254/0.09923, allocations: 322.4 kB / 0.51 GB, free: 13.41 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000137/0.09937, allocations: 48.58 kB / 0.5101 GB, free: 13.37 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001944/0.09956, allocations: 135.5 kB / 0.5102 GB, free: 13.23 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001455/0.09971, allocations: 99.55 kB / 0.5103 GB, free: 13.14 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.332e-05/0.09973, allocations: 23.94 kB / 0.5103 GB, free: 13.11 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.798e-05/0.09976, allocations: 20 kB / 0.5103 GB, free: 13.09 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.515e-05/0.09979, allocations: 51.77 kB / 0.5104 GB, free: 13.04 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 7.352e-05/0.09987, allocations: 99.59 kB / 0.5105 GB, free: 12.95 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002229/0.1001, allocations: 254.9 kB / 0.5107 GB, free: 12.7 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.1001, allocations: 4 kB / 0.5107 GB, free: 12.69 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1001, allocations: 4 kB / 0.5107 GB, free: 12.69 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.1001, allocations: 0 / 0.5107 GB, free: 12.69 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.0006255/0.1007, allocations: 465 kB / 0.5112 GB, free: 12.2 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.392e-05/0.1008, allocations: 8.031 kB / 0.5112 GB, free: 12.2 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.162e-05/0.1008, allocations: 28.78 kB / 0.5112 GB, free: 12.17 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002398/0.1011, allocations: 198.1 kB / 0.5114 GB, free: 11.95 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.845e-05/0.1011, allocations: 123.4 kB / 0.5115 GB, free: 11.8 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.016e-05/0.1012, allocations: 16.36 kB / 0.5115 GB, free: 11.79 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002696/0.1014, allocations: 215.2 kB / 0.5117 GB, free: 11.57 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.1015, allocations: 0 / 0.5117 GB, free: 11.57 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.838e-05/0.1015, allocations: 11.98 kB / 0.5118 GB, free: 11.55 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.1015, allocations: 8 kB / 0.5118 GB, free: 11.55 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002401/0.1017, allocations: 163.5 kB / 0.5119 GB, free: 11.39 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006458/0.1024, allocations: 487.8 kB / 0.5124 GB, free: 10.88 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004078/0.1028, allocations: 194 kB / 0.5126 GB, free: 10.68 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001688/0.1029, allocations: 96.8 kB / 0.5127 GB, free: 10.59 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.887e-05/0.103, allocations: 4 kB / 0.5127 GB, free: 10.58 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001972/0.1032, allocations: 155.9 kB / 0.5128 GB, free: 10.41 MB / 378.7 MB Notification: Performance of pre-optimization done (n=18): time 1.683e-06/0.1032, allocations: 7.938 kB / 0.5128 GB, free: 10.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=18): time 0.0004145/0.1036, allocations: 253.7 kB / 0.5131 GB, free: 10.15 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.849e-05/0.1036, allocations: 55.41 kB / 0.5131 GB, free: 10.09 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000112/0.1037, allocations: 175.3 kB / 0.5133 GB, free: 9.902 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.651e-05/0.1037, allocations: 29.7 kB / 0.5133 GB, free: 9.867 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.632e-05/0.1038, allocations: 140.3 kB / 0.5135 GB, free: 9.727 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.521e-05/0.1038, allocations: 63.55 kB / 0.5135 GB, free: 9.664 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.011e-05/0.1039, allocations: 45.69 kB / 0.5136 GB, free: 9.613 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.579e-05/0.104, allocations: 326.8 kB / 0.5139 GB, free: 9.285 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.745e-05/0.1041, allocations: 63.89 kB / 0.5139 GB, free: 9.223 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001053/0.1042, allocations: 87.39 kB / 0.514 GB, free: 9.125 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005238/0.1047, allocations: 314.7 kB / 0.5143 GB, free: 8.805 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/0.1047, allocations: 0 / 0.5143 GB, free: 8.805 MB / 378.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002667/0.105, allocations: 209.5 kB / 0.5145 GB, free: 8.594 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.105, allocations: 7.984 kB / 0.5145 GB, free: 8.586 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.99e-06/0.105, allocations: 64 / 0.5145 GB, free: 8.586 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.105, allocations: 8 kB / 0.5145 GB, free: 8.578 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002535/0.1053, allocations: 83.89 kB / 0.5146 GB, free: 8.496 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.127e-06/0.1053, allocations: 7.922 kB / 0.5146 GB, free: 8.488 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.223e-05/0.1053, allocations: 23.89 kB / 0.5146 GB, free: 8.465 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.272e-05/0.1054, allocations: 7.984 kB / 0.5146 GB, free: 8.457 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.0001342/0.1055, allocations: 146.1 kB / 0.5148 GB, free: 8.305 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.695e-05/0.1055, allocations: 15.91 kB / 0.5148 GB, free: 8.289 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002918/0.1058, allocations: 213.8 kB / 0.515 GB, free: 8.078 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.1058, allocations: 8 kB / 0.515 GB, free: 8.07 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.1058, allocations: 3.938 kB / 0.515 GB, free: 8.066 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.1058, allocations: 8.016 kB / 0.515 GB, free: 8.059 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004957/0.1063, allocations: 493.9 kB / 0.5155 GB, free: 7.539 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.1063, allocations: 0 / 0.5155 GB, free: 7.539 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002301/0.1065, allocations: 67.89 kB / 0.5156 GB, free: 7.473 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.1065, allocations: 4 kB / 0.5156 GB, free: 7.469 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.452e-05/0.1066, allocations: 11.92 kB / 0.5156 GB, free: 7.457 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.1066, allocations: 0 / 0.5156 GB, free: 7.457 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.1066, allocations: 4 kB / 0.5156 GB, free: 7.453 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004135/0.107, allocations: 373.9 kB / 0.5159 GB, free: 7.074 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.032e-05/0.107, allocations: 27.75 kB / 0.516 GB, free: 7.047 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.358e-05/0.107, allocations: 11.94 kB / 0.516 GB, free: 7.035 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.691e-05/0.1071, allocations: 11.98 kB / 0.516 GB, free: 7.023 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.831e-05/0.1071, allocations: 11.98 kB / 0.516 GB, free: 7.012 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.634e-05/0.1072, allocations: 11.98 kB / 0.516 GB, free: 7 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.143e-05/0.1072, allocations: 119.2 kB / 0.5161 GB, free: 6.883 MB / 378.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1072, allocations: 4.062 kB / 0.5161 GB, free: 6.879 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001813/0.1074, allocations: 63.89 kB / 0.5162 GB, free: 6.816 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 8.683e-05/0.1075, allocations: 109 kB / 0.5163 GB, free: 6.699 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002527/0.1077, allocations: 143.9 kB / 0.5164 GB, free: 6.559 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.312e-06/0.1077, allocations: 0 / 0.5164 GB, free: 6.559 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001127/0.1079, allocations: 84.02 kB / 0.5165 GB, free: 6.477 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002359/0.1081, allocations: 42.31 kB / 0.5165 GB, free: 6.438 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006198/0.1087, allocations: 0.5344 MB / 0.5171 GB, free: 5.871 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.364e-05/0.1088, allocations: 125.2 kB / 0.5172 GB, free: 5.727 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.628e-05/0.1088, allocations: 23.44 kB / 0.5172 GB, free: 5.703 MB / 378.7 MB Notification: Performance of SimCode: time 5.31e-07/0.1088, allocations: 3.938 kB / 0.5172 GB, free: 5.699 MB / 378.7 MB Notification: Performance of Templates: time 0.002883/0.1117, allocations: 2.632 MB / 0.5198 GB, free: 3.07 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 > Bodylight_Bodylight.Hydraulic.Examples.Windkessel_4element.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.861784406937659]