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.00187/0.00187, allocations: 101.5 kB / 16.45 MB, free: 6.449 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.002327/0.002327, allocations: 210.4 kB / 19.43 MB, free: 3.637 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.621/1.621, allocations: 230.6 MB / 252.8 MB, free: 9.121 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.1056/0.1056, allocations: 24.11 MB / 333 MB, free: 12.64 MB / 270.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.002265/0.002265, allocations: 60.84 kB / 467.9 MB, free: 9.09 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3637/0.366, allocations: 59.57 MB / 0.5151 GB, free: 9.621 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.03905/0.405, allocations: 23.14 MB / 0.5377 GB, free: 1.379 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001664/0.4067, allocations: 0.7334 MB / 0.5384 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001311/0.4068, allocations: 2.75 kB / 0.5384 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001743/0.407, allocations: 38.95 kB / 0.5384 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002221/0.4072, allocations: 107.3 kB / 0.5385 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003538/0.4076, allocations: 104.5 kB / 0.5386 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003976/0.408, allocations: 412.3 kB / 0.539 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000293/0.4082, allocations: 216.7 kB / 0.5392 GB, free: 436 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002626/0.4085, allocations: 178.8 kB / 0.5394 GB, free: 360 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002728/0.4088, allocations: 237.4 kB / 0.5396 GB, free: 256 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.046e-05/0.4088, allocations: 42.28 kB / 0.5397 GB, free: 252 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.798e-05/0.4089, allocations: 38 kB / 0.5397 GB, free: 252 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.983e-05/0.409, allocations: 121.9 kB / 0.5398 GB, free: 196 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001809/0.4092, allocations: 198.4 kB / 0.54 GB, free: 76 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005034/0.4097, allocations: 452.6 kB / 0.5404 GB, free: 15.91 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.4097, allocations: 0 / 0.5404 GB, free: 15.91 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4097, allocations: 0 / 0.5404 GB, free: 15.91 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.269e-05/0.4097, allocations: 0 / 0.5404 GB, free: 15.91 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.001522/0.4112, allocations: 0.6917 MB / 0.5411 GB, free: 15.39 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.4113, allocations: 9.438 kB / 0.5411 GB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.697e-05/0.4114, allocations: 60.97 kB / 0.5412 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.596e-05/0.4114, allocations: 39.72 kB / 0.5412 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004343/0.4119, allocations: 305.8 kB / 0.5415 GB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.496e-05/0.4119, allocations: 19.06 kB / 0.5415 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.489e-05/0.412, allocations: 38.14 kB / 0.5416 GB, free: 15.02 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008128/0.4128, allocations: 341.8 kB / 0.5419 GB, free: 14.89 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.4128, allocations: 1.312 kB / 0.5419 GB, free: 14.89 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.063e-05/0.4128, allocations: 17.14 kB / 0.5419 GB, free: 14.87 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.118e-05/0.4129, allocations: 6.406 kB / 0.5419 GB, free: 14.87 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008957/0.4138, allocations: 333.9 kB / 0.5422 GB, free: 14.77 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002235/0.416, allocations: 1.243 MB / 0.5434 GB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006689/0.4167, allocations: 280 kB / 0.5437 GB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005262/0.4172, allocations: 214.8 kB / 0.5439 GB, free: 13.28 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.464e-05/0.4172, allocations: 5.172 kB / 0.5439 GB, free: 13.28 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.274e-05/0.4173, allocations: 34.8 kB / 0.544 GB, free: 13.23 MB / 398.1 MB Notification: Performance of pre-optimization done (n=28): time 1.353e-06/0.4173, allocations: 0 / 0.544 GB, free: 13.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.005304/0.4226, allocations: 1.964 MB / 0.5459 GB, free: 11.36 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.124e-05/0.4226, allocations: 59.95 kB / 0.5459 GB, free: 11.29 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003026/0.4229, allocations: 253.2 kB / 0.5462 GB, free: 11.05 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.37e-05/0.423, allocations: 33.64 kB / 0.5462 GB, free: 11.02 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001333/0.4231, allocations: 175.4 kB / 0.5464 GB, free: 10.85 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001122/0.4232, allocations: 104.2 kB / 0.5465 GB, free: 10.76 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001316/0.4233, allocations: 55.95 kB / 0.5465 GB, free: 10.7 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.4235, allocations: 340.1 kB / 0.5468 GB, free: 10.37 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005044/0.424, allocations: 194.6 kB / 0.547 GB, free: 10.21 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005142/0.4245, allocations: 224.9 kB / 0.5472 GB, free: 10.03 MB / 398.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.001953/0.4265, allocations: 0.6591 MB / 0.5479 GB, free: 9.461 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.4265, allocations: 4 kB / 0.5479 GB, free: 9.457 MB / 398.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001804/0.4283, allocations: 0.6299 MB / 0.5485 GB, free: 8.906 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.4283, allocations: 4 kB / 0.5485 GB, free: 8.902 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.4283, allocations: 4 kB / 0.5485 GB, free: 8.898 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008214/0.4291, allocations: 179.3 kB / 0.5487 GB, free: 8.742 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006294/0.4298, allocations: 105.2 kB / 0.5488 GB, free: 8.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007366/0.4371, allocations: 7.589 MB / 0.5562 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004534/0.4376, allocations: 38.17 kB / 0.5562 GB, free: 0.5625 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.577e-05/0.4376, allocations: 9.312 kB / 0.5562 GB, free: 0.5547 MB / 398.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.0002753/0.4379, allocations: 159.7 kB / 0.5564 GB, free: 404 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.58e-05/0.438, allocations: 31.81 kB / 0.5564 GB, free: 372 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001714/0.4397, allocations: 0.6066 MB / 0.557 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.4397, allocations: 0 / 0.557 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.143e-06/0.4397, allocations: 4.75 kB / 0.557 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.199e-06/0.4397, allocations: 0.9844 kB / 0.557 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006184/0.4403, allocations: 448.3 kB / 0.5575 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/0.4403, allocations: 0 / 0.5575 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006237/0.4409, allocations: 93 kB / 0.5575 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005449/0.4415, allocations: 150.4 kB / 0.5577 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.652e-05/0.4415, allocations: 10.67 kB / 0.5577 GB, free: 15.24 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006199/0.4477, allocations: 7.2 MB / 0.5647 GB, free: 7.547 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/0.4477, allocations: 4.031 kB / 0.5647 GB, free: 7.543 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002189/0.4499, allocations: 0.8886 MB / 0.5656 GB, free: 6.746 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001165/0.45, allocations: 103.9 kB / 0.5657 GB, free: 6.629 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.138e-05/0.4501, allocations: 12.73 kB / 0.5657 GB, free: 6.617 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003382/0.4504, allocations: 34.17 kB / 0.5657 GB, free: 6.594 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001445/0.4506, allocations: 40.83 kB / 0.5658 GB, free: 6.566 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.683e-05/0.4506, allocations: 4.891 kB / 0.5658 GB, free: 6.562 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002375/0.4508, allocations: 187.6 kB / 0.566 GB, free: 6.398 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4508, allocations: 0 / 0.566 GB, free: 6.398 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005731/0.4514, allocations: 116 kB / 0.5661 GB, free: 6.285 MB / 414.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.002478/0.4539, allocations: 1.457 MB / 0.5675 GB, free: 4.871 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001854/0.4557, allocations: 1.005 MB / 0.5685 GB, free: 3.801 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.4557, allocations: 0 / 0.5685 GB, free: 3.801 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001158/0.4569, allocations: 0.7864 MB / 0.5692 GB, free: 2.949 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004601/0.4574, allocations: 72.77 kB / 0.5693 GB, free: 2.879 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009255/0.4666, allocations: 4.428 MB / 0.5736 GB, free: 14.33 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004588/0.4671, allocations: 0.7996 MB / 0.5744 GB, free: 13.51 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002082/0.4673, allocations: 54.94 kB / 0.5745 GB, free: 13.46 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002062/0.4675, allocations: 99.41 kB / 0.5746 GB, free: 13.36 MB / 430.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4675, allocations: 4 kB / 0.5746 GB, free: 13.36 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04816/0.5156, allocations: 9.511 MB / 0.5839 GB, free: 3.957 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.85/11.36, allocations: 12.28 kB / 0.5839 GB, free: 3.949 MB / 430.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: 14.327430966077372] Failed to read output from testmodel.py, exit status != 0: 11.455465028993785 11.479781471 11.065424996 Calling exit ...