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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008027/0.008027, allocations: 99.95 kB / 15.73 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001735/0.001735, allocations: 189.4 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09487/0.09487, allocations: 22.32 MB / 312.9 MB, free: 8.887 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 55.91 kB / 436.6 MB, free: 12.27 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1227, allocations: 54.97 MB / 491.5 MB, free: 5.242 MB / 366.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.4784/0.6011, allocations: 21.99 MB / 0.5015 GB, free: 5.289 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001291/0.6024, allocations: 0.6725 MB / 0.5021 GB, free: 5.277 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000168/0.6026, allocations: 5.031 kB / 0.5021 GB, free: 5.277 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001522/0.6028, allocations: 40.16 kB / 0.5022 GB, free: 5.277 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001919/0.603, allocations: 114.8 kB / 0.5023 GB, free: 5.273 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003049/0.6033, allocations: 101.4 kB / 0.5024 GB, free: 5.266 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003845/0.6037, allocations: 414.2 kB / 0.5028 GB, free: 5.191 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002797/0.6039, allocations: 247.5 kB / 0.503 GB, free: 5.172 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001707/0.6041, allocations: 174.7 kB / 0.5032 GB, free: 5.141 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003005/0.6044, allocations: 230.6 kB / 0.5034 GB, free: 5.109 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.826e-05/0.6045, allocations: 38.06 kB / 0.5034 GB, free: 5.109 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.764e-05/0.6046, allocations: 39.78 kB / 0.5035 GB, free: 5.109 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001171/0.6047, allocations: 130.3 kB / 0.5036 GB, free: 5.09 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001741/0.6049, allocations: 194.3 kB / 0.5038 GB, free: 5.043 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005686/0.6055, allocations: 448.8 kB / 0.5042 GB, free: 4.98 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.6055, allocations: 2.688 kB / 0.5042 GB, free: 4.98 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.6055, allocations: 0 / 0.5042 GB, free: 4.98 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.254e-06/0.6055, allocations: 0 / 0.5042 GB, free: 4.98 MB / 382.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.001384/0.6069, allocations: 0.6883 MB / 0.5049 GB, free: 4.512 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.6069, allocations: 11.06 kB / 0.5049 GB, free: 4.512 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001419/0.6071, allocations: 59.06 kB / 0.505 GB, free: 4.473 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.591e-05/0.6071, allocations: 40.12 kB / 0.505 GB, free: 4.453 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003488/0.6075, allocations: 305.1 kB / 0.5053 GB, free: 4.219 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.255e-05/0.6075, allocations: 16.84 kB / 0.5053 GB, free: 4.219 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.056e-05/0.6076, allocations: 26.42 kB / 0.5053 GB, free: 4.219 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006912/0.6083, allocations: 346 kB / 0.5057 GB, free: 4.18 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.6083, allocations: 2.625 kB / 0.5057 GB, free: 4.18 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.415e-05/0.6084, allocations: 15.06 kB / 0.5057 GB, free: 4.18 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.6084, allocations: 2.656 kB / 0.5057 GB, free: 4.18 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007744/0.6091, allocations: 335 kB / 0.506 GB, free: 4.172 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001962/0.6111, allocations: 1.246 MB / 0.5072 GB, free: 3.539 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005999/0.6117, allocations: 314.3 kB / 0.5075 GB, free: 3.508 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004336/0.6122, allocations: 233 kB / 0.5077 GB, free: 3.5 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.607e-05/0.6122, allocations: 2.656 kB / 0.5077 GB, free: 3.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.575e-05/0.6122, allocations: 35.19 kB / 0.5078 GB, free: 3.461 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.352e-06/0.6122, allocations: 0 / 0.5078 GB, free: 3.461 MB / 382.1 MB Notification: Performance of matching and sorting (n=28): time 0.00307/0.6153, allocations: 1.238 MB / 0.509 GB, free: 2.891 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.443e-05/0.6153, allocations: 59.12 kB / 0.509 GB, free: 2.824 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000262/0.6156, allocations: 254.9 kB / 0.5093 GB, free: 2.715 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.95e-05/0.6157, allocations: 30.48 kB / 0.5093 GB, free: 2.684 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.003e-05/0.6157, allocations: 166.8 kB / 0.5095 GB, free: 2.574 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.182e-05/0.6158, allocations: 106.4 kB / 0.5096 GB, free: 2.508 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001126/0.616, allocations: 58.55 kB / 0.5096 GB, free: 2.492 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.103e-05/0.616, allocations: 338.4 kB / 0.5099 GB, free: 2.18 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004525/0.6165, allocations: 178.9 kB / 0.5101 GB, free: 2.176 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004019/0.6169, allocations: 182.9 kB / 0.5103 GB, free: 2.176 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008588/0.6178, allocations: 385.4 kB / 0.5107 GB, free: 2.16 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.6178, allocations: 5.281 kB / 0.5107 GB, free: 2.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001629/0.6194, allocations: 0.6093 MB / 0.5113 GB, free: 2.055 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.6194, allocations: 9 kB / 0.5113 GB, free: 2.055 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.143e-06/0.6195, allocations: 0 / 0.5113 GB, free: 2.055 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007965/0.6203, allocations: 167.6 kB / 0.5114 GB, free: 2.016 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005744/0.6208, allocations: 97.19 kB / 0.5115 GB, free: 2.012 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006362/0.6272, allocations: 7.604 MB / 0.5189 GB, free: 11.06 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004976/0.6279, allocations: 40.41 kB / 0.519 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.592e-05/0.6279, allocations: 14.48 kB / 0.519 GB, free: 11.04 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (31): * Single equations (assignments): 26 * 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.0002642/0.6282, allocations: 161.4 kB / 0.5192 GB, free: 10.92 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.104e-05/0.6283, allocations: 25.67 kB / 0.5192 GB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001722/0.63, allocations: 0.5819 MB / 0.5197 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.052e-06/0.63, allocations: 3.125 kB / 0.5198 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.63, allocations: 1.156 kB / 0.5198 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.128e-05/0.63, allocations: 7.297 kB / 0.5198 GB, free: 10.81 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008119/0.6309, allocations: 463.8 kB / 0.5202 GB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.6309, allocations: 1.188 kB / 0.5202 GB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006019/0.6315, allocations: 83.89 kB / 0.5203 GB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006432/0.6321, allocations: 147 kB / 0.5204 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.868e-05/0.6322, allocations: 9.219 kB / 0.5204 GB, free: 10.55 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005549/0.6377, allocations: 7.199 MB / 0.5275 GB, free: 3.793 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.6378, allocations: 1.5 kB / 0.5275 GB, free: 3.793 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00209/0.6399, allocations: 0.868 MB / 0.5283 GB, free: 3.574 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001177/0.64, allocations: 107.4 kB / 0.5284 GB, free: 3.465 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.071e-05/0.6401, allocations: 11.67 kB / 0.5284 GB, free: 3.461 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003083/0.6404, allocations: 26.34 kB / 0.5284 GB, free: 3.461 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001194/0.6405, allocations: 30.69 kB / 0.5285 GB, free: 3.461 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.644e-05/0.6405, allocations: 9.188 kB / 0.5285 GB, free: 3.461 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002554/0.6408, allocations: 185.8 kB / 0.5287 GB, free: 3.383 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.6408, allocations: 0 / 0.5287 GB, free: 3.383 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006159/0.6414, allocations: 124 kB / 0.5288 GB, free: 3.371 MB / 398.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 (24): * Single equations (assignments): 19 * 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.002277/0.6437, allocations: 1.407 MB / 0.5302 GB, free: 2.645 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001788/0.6455, allocations: 0.9958 MB / 0.5311 GB, free: 2.078 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.6455, allocations: 7.188 kB / 0.5311 GB, free: 2.074 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001104/0.6466, allocations: 0.7802 MB / 0.5319 GB, free: 1.516 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005251/0.6472, allocations: 71.53 kB / 0.532 GB, free: 1.512 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008469/0.6557, allocations: 4.234 MB / 0.5361 GB, free: 15.55 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004246/0.6561, allocations: 0.787 MB / 0.5369 GB, free: 14.84 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002558/0.6564, allocations: 51.23 kB / 0.5369 GB, free: 14.84 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001971/0.6566, allocations: 99.91 kB / 0.537 GB, free: 14.77 MB / 414.1 MB Notification: Performance of SimCode: time 5.91e-07/0.6566, allocations: 3.938 kB / 0.537 GB, free: 14.77 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05319/0.7098, allocations: 9.337 MB / 0.5461 GB, free: 10.78 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.875/10.58, allocations: 6.688 kB / 0.5461 GB, free: 10.78 MB / 414.1 MB (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)