Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.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.001378/0.001378, allocations: 109.4 kB / 17.14 MB, free: 6.043 MB / 14.72 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.001491/0.001491, allocations: 207.2 kB / 20.11 MB, free: 3.086 MB / 14.72 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.541/1.541, allocations: 230.6 MB / 253.5 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1121/0.1121, allocations: 24.04 MB / 333.6 MB, free: 1.562 MB / 254.1 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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: "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Heater_power_vs_wTin_heater_wT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_Heater_power_vs_wTin_heater_wT",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: AES 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.002312/0.002312, allocations: 65.66 kB / 468.4 MB, free: 31.57 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1079, allocations: 59.55 MB / 0.5156 GB, free: 12.29 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowOnePort_pwh.mo:4:3-4:45:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowOnePort_pwh.mo:4:3-4:45:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer \"system\" component but an inner \"system\" component is not defined. Drag AES.ProcessComponents.Thermal.System_settings.System_liquid into your model to specify the working fluid properties. Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT): time 0.03835/0.1462, allocations: 23.34 MB / 0.5384 GB, free: 5.062 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001886/0.1481, allocations: 0.7209 MB / 0.5391 GB, free: 4.336 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002689/0.1484, allocations: 3.938 kB / 0.5391 GB, free: 4.332 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002396/0.1486, allocations: 43.64 kB / 0.5391 GB, free: 4.289 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004117/0.1491, allocations: 107.2 kB / 0.5392 GB, free: 4.184 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000546/0.1496, allocations: 111.7 kB / 0.5393 GB, free: 4.074 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.000674/0.1503, allocations: 415.1 kB / 0.5397 GB, free: 3.668 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004564/0.1507, allocations: 207.9 kB / 0.5399 GB, free: 3.465 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004396/0.1512, allocations: 183.4 kB / 0.5401 GB, free: 3.285 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004519/0.1516, allocations: 231.2 kB / 0.5403 GB, free: 3.059 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001028/0.1517, allocations: 40 kB / 0.5404 GB, free: 3.02 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001104/0.1518, allocations: 36 kB / 0.5404 GB, free: 2.984 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001668/0.152, allocations: 127.7 kB / 0.5405 GB, free: 2.859 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00029/0.1523, allocations: 195.1 kB / 0.5407 GB, free: 2.668 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005453/0.1528, allocations: 458.3 kB / 0.5411 GB, free: 2.219 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.1528, allocations: 0 / 0.5411 GB, free: 2.219 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1528, allocations: 0 / 0.5411 GB, free: 2.219 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.441e-05/0.1529, allocations: 0 / 0.5411 GB, free: 2.219 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001633/0.1545, allocations: 0.683 MB / 0.5418 GB, free: 1.488 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.1545, allocations: 8.625 kB / 0.5418 GB, free: 1.48 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.773e-05/0.1546, allocations: 66.72 kB / 0.5419 GB, free: 1.406 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.831e-05/0.1547, allocations: 40.7 kB / 0.5419 GB, free: 1.367 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004822/0.1552, allocations: 302.7 kB / 0.5422 GB, free: 1.035 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.628e-05/0.1552, allocations: 16.94 kB / 0.5422 GB, free: 1.02 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.75e-05/0.1553, allocations: 36.31 kB / 0.5423 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007748/0.1561, allocations: 344.7 kB / 0.5426 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.1561, allocations: 0 / 0.5426 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.935e-05/0.1561, allocations: 12 kB / 0.5426 GB, free: 0.6328 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.1562, allocations: 8 kB / 0.5426 GB, free: 0.625 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000824/0.157, allocations: 322 kB / 0.5429 GB, free: 316 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002295/0.1593, allocations: 1.261 MB / 0.5441 GB, free: 14.93 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006015/0.1599, allocations: 271.4 kB / 0.5444 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004823/0.1604, allocations: 213.2 kB / 0.5446 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.548e-05/0.1604, allocations: 12.23 kB / 0.5446 GB, free: 14.44 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.833e-05/0.1604, allocations: 38.67 kB / 0.5447 GB, free: 14.39 MB / 414.1 MB Notification: Performance of pre-optimization done (n=28): time 1.823e-06/0.1604, allocations: 0 / 0.5447 GB, free: 14.39 MB / 414.1 MB Notification: Performance of matching and sorting (n=29): time 0.005265/0.1657, allocations: 1.965 MB / 0.5466 GB, free: 12.27 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.911e-05/0.1657, allocations: 55.41 kB / 0.5466 GB, free: 12.2 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003103/0.166, allocations: 254.6 kB / 0.5469 GB, free: 11.94 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.752e-05/0.1661, allocations: 29.7 kB / 0.5469 GB, free: 11.9 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001302/0.1662, allocations: 172.7 kB / 0.5471 GB, free: 11.73 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001205/0.1663, allocations: 119 kB / 0.5472 GB, free: 11.61 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000131/0.1665, allocations: 53.7 kB / 0.5472 GB, free: 11.55 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.1666, allocations: 338.8 kB / 0.5476 GB, free: 11.21 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005265/0.1672, allocations: 191.9 kB / 0.5477 GB, free: 11.03 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000532/0.1677, allocations: 229.9 kB / 0.548 GB, free: 10.8 MB / 414.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: $DER.tube.w = 0.0 (if time < w.startTime then 0.0 else if time < w.startTime + w.duration then w.height * w.duration / w.duration ^ 2.0 else 0.0 = 0.0) Notification: Performance of analyzeInitialSystem (initialization): time 0.001896/0.1696, allocations: 0.6511 MB / 0.5486 GB, free: 10.12 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.1696, allocations: 4 kB / 0.5486 GB, free: 10.12 MB / 414.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001765/0.1714, allocations: 0.6338 MB / 0.5492 GB, free: 9.461 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.1714, allocations: 8 kB / 0.5492 GB, free: 9.453 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.326e-06/0.1714, allocations: 4 kB / 0.5492 GB, free: 9.449 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000802/0.1722, allocations: 168.2 kB / 0.5494 GB, free: 9.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000652/0.1728, allocations: 111.8 kB / 0.5495 GB, free: 9.16 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006979/0.1798, allocations: 7.583 MB / 0.5569 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000382/0.1802, allocations: 31.98 kB / 0.5569 GB, free: 0.8086 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.59e-05/0.1802, allocations: 8 kB / 0.5569 GB, free: 0.8008 MB / 414.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.tube.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002652/0.1805, allocations: 164.8 kB / 0.5571 GB, free: 0.6328 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.15e-05/0.1806, allocations: 31.8 kB / 0.5571 GB, free: 0.6016 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00167/0.1823, allocations: 0.6138 MB / 0.5577 GB, free: 15.97 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.1823, allocations: 0 / 0.5577 GB, free: 15.97 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.1823, allocations: 4 kB / 0.5577 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.1823, allocations: 4 kB / 0.5577 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000631/0.1829, allocations: 437.2 kB / 0.5581 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.1829, allocations: 0 / 0.5581 GB, free: 15.48 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006093/0.1835, allocations: 91.92 kB / 0.5582 GB, free: 15.39 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005553/0.1841, allocations: 148.1 kB / 0.5584 GB, free: 15.23 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.03e-05/0.1841, allocations: 8 kB / 0.5584 GB, free: 15.23 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006068/0.1902, allocations: 7.203 MB / 0.5654 GB, free: 7.324 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.1902, allocations: 7.969 kB / 0.5654 GB, free: 7.316 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002168/0.1924, allocations: 0.9017 MB / 0.5663 GB, free: 6.383 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001109/0.1925, allocations: 105 kB / 0.5664 GB, free: 6.262 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.439e-05/0.1926, allocations: 16 kB / 0.5664 GB, free: 6.246 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003872/0.1929, allocations: 27.97 kB / 0.5664 GB, free: 6.219 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001296/0.1931, allocations: 35.94 kB / 0.5665 GB, free: 6.184 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.735e-05/0.1931, allocations: 11.94 kB / 0.5665 GB, free: 6.172 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002093/0.1933, allocations: 186 kB / 0.5667 GB, free: 5.992 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1933, allocations: 4 kB / 0.5667 GB, free: 5.988 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005584/0.1939, allocations: 116 kB / 0.5668 GB, free: 5.875 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (tube.T[1],tube.T[2],tube.T[3],tube.T[4],tube.T[5]) * 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 (25): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,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.002483/0.1963, allocations: 1.443 MB / 0.5682 GB, free: 4.391 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001892/0.1982, allocations: 1.016 MB / 0.5692 GB, free: 3.309 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.1982, allocations: 0 / 0.5692 GB, free: 3.309 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001141/0.1994, allocations: 0.7824 MB / 0.57 GB, free: 2.461 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004965/0.1999, allocations: 74.91 kB / 0.57 GB, free: 2.391 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009468/0.2093, allocations: 4.43 MB / 0.5743 GB, free: 13.84 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004657/0.2098, allocations: 0.7879 MB / 0.5751 GB, free: 13.03 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0002142/0.21, allocations: 54.95 kB / 0.5752 GB, free: 12.98 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002085/0.2102, allocations: 95.39 kB / 0.5753 GB, free: 12.88 MB / 446.1 MB Notification: Performance of SimCode: time 9.21e-07/0.2102, allocations: 0 / 0.5753 GB, free: 12.88 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05187/0.2621, allocations: 9.524 MB / 0.5846 GB, free: 3.473 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.49/10.75, allocations: 4.531 kB / 0.5846 GB, free: 3.469 MB / 446.1 MB " [Timeout remaining time 649] (rm -f AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT_res.csv --start-time 0 --stop-time 1.5e+06 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1500 AES_AES_Coursework_ThermSys_component_models_Heater_power_vs_wTin_heater_wT.fmu > AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.996651384048164] Failed to read output from testmodel.py, exit status != 0: 10.846152798039839 11.081126912 10.925685463 Calling exit ...