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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001292/0.001292, allocations: 108.8 kB / 16.4 MB, free: 6.441 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001351/0.001351, allocations: 191.7 kB / 19.35 MB, free: 3.711 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.448/1.448, allocations: 222.9 MB / 245.1 MB, free: 15.01 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.09721/0.09721, allocations: 22.34 MB / 319.6 MB, free: 6.766 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.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002137/0.002137, allocations: 71.83 kB / 445.3 MB, free: 8.613 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1236, allocations: 54.94 MB / 0.4885 GB, free: 1.621 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.4518/0.5754, allocations: 22.93 MB / 0.5109 GB, free: 5.004 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001314/0.5768, allocations: 0.6619 MB / 0.5115 GB, free: 4.973 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001078/0.5769, allocations: 2.062 kB / 0.5115 GB, free: 4.973 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001405/0.577, allocations: 42.12 kB / 0.5116 GB, free: 4.949 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001913/0.5772, allocations: 111.4 kB / 0.5117 GB, free: 4.898 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003255/0.5776, allocations: 102.2 kB / 0.5118 GB, free: 4.891 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003657/0.5779, allocations: 414.4 kB / 0.5122 GB, free: 4.816 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003164/0.5783, allocations: 249.9 kB / 0.5124 GB, free: 4.781 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001858/0.5785, allocations: 172.6 kB / 0.5126 GB, free: 4.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002968/0.5788, allocations: 234.8 kB / 0.5128 GB, free: 4.715 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.968e-05/0.5788, allocations: 37.44 kB / 0.5128 GB, free: 4.715 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.981e-05/0.5789, allocations: 38.69 kB / 0.5129 GB, free: 4.715 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001259/0.579, allocations: 128.3 kB / 0.513 GB, free: 4.699 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001804/0.5792, allocations: 188.2 kB / 0.5132 GB, free: 4.652 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004531/0.5797, allocations: 459.9 kB / 0.5136 GB, free: 4.582 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.5797, allocations: 0.8906 kB / 0.5136 GB, free: 4.582 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.5797, allocations: 0 / 0.5136 GB, free: 4.582 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.345e-06/0.5797, allocations: 0 / 0.5136 GB, free: 4.582 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.001249/0.581, allocations: 0.6875 MB / 0.5143 GB, free: 4.109 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.581, allocations: 9.781 kB / 0.5143 GB, free: 4.109 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.633e-05/0.5811, allocations: 63.78 kB / 0.5144 GB, free: 4.066 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.148e-05/0.5812, allocations: 41.55 kB / 0.5144 GB, free: 4.047 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000304/0.5815, allocations: 302 kB / 0.5147 GB, free: 3.812 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.491e-05/0.5815, allocations: 21.25 kB / 0.5147 GB, free: 3.812 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.474e-05/0.5816, allocations: 24.73 kB / 0.5147 GB, free: 3.812 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006901/0.5823, allocations: 345.6 kB / 0.5151 GB, free: 3.77 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/0.5823, allocations: 0 / 0.5151 GB, free: 3.77 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.461e-05/0.5823, allocations: 13.23 kB / 0.5151 GB, free: 3.766 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.824e-06/0.5823, allocations: 9.5 kB / 0.5151 GB, free: 3.762 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007518/0.5831, allocations: 332.8 kB / 0.5154 GB, free: 3.758 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001994/0.5851, allocations: 1.257 MB / 0.5166 GB, free: 3.109 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005767/0.5857, allocations: 285.2 kB / 0.5169 GB, free: 3.078 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004661/0.5862, allocations: 229.7 kB / 0.5171 GB, free: 3.07 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.25e-05/0.5862, allocations: 6.078 kB / 0.5171 GB, free: 3.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.228e-05/0.5862, allocations: 41.14 kB / 0.5172 GB, free: 3.027 MB / 382.1 MB Notification: Performance of pre-optimization done (n=28): time 1.453e-06/0.5863, allocations: 0 / 0.5172 GB, free: 3.027 MB / 382.1 MB Notification: Performance of matching and sorting (n=29): time 0.004737/0.591, allocations: 1.971 MB / 0.5191 GB, free: 2.172 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.805e-05/0.591, allocations: 55.12 kB / 0.5191 GB, free: 2.109 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002907/0.5913, allocations: 251 kB / 0.5194 GB, free: 2.004 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.082e-05/0.5914, allocations: 30.61 kB / 0.5194 GB, free: 1.973 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.807e-05/0.5915, allocations: 169.5 kB / 0.5196 GB, free: 1.863 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.067e-05/0.5916, allocations: 115 kB / 0.5197 GB, free: 1.789 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001194/0.5917, allocations: 57.03 kB / 0.5197 GB, free: 1.773 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.216e-05/0.5918, allocations: 340.8 kB / 0.5201 GB, free: 1.461 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004715/0.5923, allocations: 194.4 kB / 0.5202 GB, free: 1.457 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004974/0.5928, allocations: 226.4 kB / 0.5205 GB, free: 1.434 MB / 382.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.001752/0.5945, allocations: 0.6575 MB / 0.5211 GB, free: 1.301 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.5945, allocations: 1.312 kB / 0.5211 GB, free: 1.301 MB / 382.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001614/0.5961, allocations: 0.6359 MB / 0.5217 GB, free: 1.195 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.5962, allocations: 9.156 kB / 0.5217 GB, free: 1.191 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.5962, allocations: 0 / 0.5217 GB, free: 1.191 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007149/0.5969, allocations: 167.5 kB / 0.5219 GB, free: 1.148 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000593/0.5975, allocations: 108.8 kB / 0.522 GB, free: 1.141 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006856/0.6044, allocations: 7.586 MB / 0.5294 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004713/0.6049, allocations: 31.88 kB / 0.5294 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.611e-05/0.605, allocations: 12.94 kB / 0.5294 GB, free: 10.16 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.0002795/0.6052, allocations: 163.9 kB / 0.5296 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.918e-05/0.6053, allocations: 22.92 kB / 0.5296 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001597/0.6069, allocations: 0.605 MB / 0.5302 GB, free: 9.93 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.561e-06/0.607, allocations: 4.109 kB / 0.5302 GB, free: 9.93 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/0.607, allocations: 2.406 kB / 0.5302 GB, free: 9.93 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.153e-06/0.607, allocations: 1.734 kB / 0.5302 GB, free: 9.93 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007704/0.6078, allocations: 454.5 kB / 0.5307 GB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.6078, allocations: 0 / 0.5307 GB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005802/0.6084, allocations: 97.84 kB / 0.5307 GB, free: 9.719 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005449/0.6089, allocations: 141.8 kB / 0.5309 GB, free: 9.676 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.152e-05/0.609, allocations: 8.125 kB / 0.5309 GB, free: 9.676 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006493/0.6155, allocations: 7.216 MB / 0.5379 GB, free: 2.859 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.6155, allocations: 0 / 0.5379 GB, free: 2.859 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002351/0.6179, allocations: 0.8968 MB / 0.5388 GB, free: 2.652 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001795/0.6181, allocations: 109.8 kB / 0.5389 GB, free: 2.539 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.247e-05/0.6182, allocations: 11.31 kB / 0.5389 GB, free: 2.535 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000356/0.6185, allocations: 28.28 kB / 0.539 GB, free: 2.535 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001617/0.6187, allocations: 32.88 kB / 0.539 GB, free: 2.535 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.161e-05/0.6187, allocations: 6.422 kB / 0.539 GB, free: 2.535 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002275/0.619, allocations: 185.4 kB / 0.5392 GB, free: 2.461 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.619, allocations: 0 / 0.5392 GB, free: 2.461 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006329/0.6196, allocations: 118.9 kB / 0.5393 GB, free: 2.457 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 (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.002425/0.622, allocations: 1.45 MB / 0.5407 GB, free: 1.719 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001937/0.624, allocations: 1.03 MB / 0.5417 GB, free: 1.145 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.576e-06/0.624, allocations: 0 / 0.5417 GB, free: 1.145 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001128/0.6251, allocations: 0.7905 MB / 0.5425 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005237/0.6257, allocations: 75.92 kB / 0.5426 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009576/0.6353, allocations: 4.428 MB / 0.5469 GB, free: 14.38 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005022/0.6358, allocations: 0.7928 MB / 0.5476 GB, free: 13.63 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002626/0.6361, allocations: 53.33 kB / 0.5477 GB, free: 13.61 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002088/0.6363, allocations: 95 kB / 0.5478 GB, free: 13.54 MB / 414.1 MB Notification: Performance of SimCode: time 4.91e-07/0.6363, allocations: 0 / 0.5478 GB, free: 13.54 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04824/0.6846, allocations: 9.461 MB / 0.557 GB, free: 8.875 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.22/10.91, allocations: 13.41 kB / 0.557 GB, free: 8.867 MB / 414.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.70315540698357] Failed to read output from testmodel.py, exit status != 0: 10.99441256094724 11.014561232 10.431202032 Calling exit ...