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.001302/0.001302, allocations: 100.3 kB / 19.72 MB, free: 1.785 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.002219/0.002219, allocations: 206.9 kB / 23.01 MB, free: 4.625 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.537/1.537, allocations: 230.6 MB / 256.8 MB, free: 7.785 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.1106/0.1106, allocations: 24.04 MB / 337.2 MB, free: 11.36 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.003065/0.003065, allocations: 75.88 kB / 473.8 MB, free: 6.391 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3639/0.3669, allocations: 59.58 MB / 0.5209 GB, free: 10.07 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.07078/0.4377, allocations: 23.19 MB / 0.5436 GB, free: 1.805 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001457/0.4392, allocations: 0.6878 MB / 0.5442 GB, free: 1.328 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001209/0.4393, allocations: 6.25 kB / 0.5442 GB, free: 1.324 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001646/0.4394, allocations: 38.73 kB / 0.5443 GB, free: 1.301 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002253/0.4397, allocations: 113.7 kB / 0.5444 GB, free: 1.227 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000383/0.4401, allocations: 102.2 kB / 0.5445 GB, free: 1.172 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003684/0.4404, allocations: 424.9 kB / 0.5449 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000253/0.4407, allocations: 195 kB / 0.5451 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002363/0.4409, allocations: 184.6 kB / 0.5453 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002707/0.4412, allocations: 208.5 kB / 0.5455 GB, free: 456 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.421e-05/0.4412, allocations: 40 kB / 0.5455 GB, free: 416 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.622e-05/0.4413, allocations: 40 kB / 0.5455 GB, free: 376 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001007/0.4414, allocations: 130.4 kB / 0.5457 GB, free: 280 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001317/0.4415, allocations: 163.3 kB / 0.5458 GB, free: 136 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004709/0.442, allocations: 453.1 kB / 0.5462 GB, free: 15.84 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.442, allocations: 4 kB / 0.5462 GB, free: 15.84 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.442, allocations: 0 / 0.5462 GB, free: 15.84 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.442, allocations: 0 / 0.5462 GB, free: 15.84 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.001381/0.4434, allocations: 0.6162 MB / 0.5469 GB, free: 15.25 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.4434, allocations: 12.92 kB / 0.5469 GB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.812e-05/0.4435, allocations: 56.52 kB / 0.5469 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.221e-05/0.4436, allocations: 40.7 kB / 0.547 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004211/0.444, allocations: 246.3 kB / 0.5472 GB, free: 14.9 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.564e-05/0.4441, allocations: 20.88 kB / 0.5472 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.64e-05/0.4441, allocations: 28.33 kB / 0.5472 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007347/0.4449, allocations: 344.5 kB / 0.5476 GB, free: 14.58 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.1e-05/0.4449, allocations: 0 / 0.5476 GB, free: 14.58 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.535e-05/0.4449, allocations: 11.98 kB / 0.5476 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.056e-05/0.4449, allocations: 8 kB / 0.5476 GB, free: 14.56 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007911/0.4457, allocations: 336.6 kB / 0.5479 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002021/0.4477, allocations: 0.8821 MB / 0.5488 GB, free: 13.5 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005799/0.4483, allocations: 274.1 kB / 0.549 GB, free: 13.26 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004633/0.4488, allocations: 217.6 kB / 0.5492 GB, free: 13.07 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.441e-05/0.4488, allocations: 4.234 kB / 0.5492 GB, free: 13.07 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.872e-05/0.4488, allocations: 34.8 kB / 0.5493 GB, free: 13.03 MB / 398.1 MB Notification: Performance of pre-optimization done (n=28): time 1.483e-06/0.4488, allocations: 0 / 0.5493 GB, free: 13.03 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.004692/0.4535, allocations: 1.513 MB / 0.5508 GB, free: 11.71 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.202e-05/0.4536, allocations: 55.41 kB / 0.5508 GB, free: 11.64 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003016/0.4539, allocations: 256.3 kB / 0.551 GB, free: 11.41 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.892e-05/0.4539, allocations: 30.31 kB / 0.5511 GB, free: 11.37 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001267/0.454, allocations: 167.2 kB / 0.5512 GB, free: 11.21 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001076/0.4541, allocations: 112.3 kB / 0.5513 GB, free: 11.11 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001296/0.4543, allocations: 63.38 kB / 0.5514 GB, free: 11.05 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.4544, allocations: 339.9 kB / 0.5517 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005046/0.4549, allocations: 194.4 kB / 0.5519 GB, free: 10.56 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005252/0.4555, allocations: 228.4 kB / 0.5521 GB, free: 10.37 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.001805/0.4573, allocations: 0.5775 MB / 0.5527 GB, free: 9.902 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.4573, allocations: 0 / 0.5527 GB, free: 9.902 MB / 398.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001724/0.459, allocations: 0.6375 MB / 0.5533 GB, free: 9.344 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.459, allocations: 4 kB / 0.5533 GB, free: 9.34 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.459, allocations: 4.781 kB / 0.5533 GB, free: 9.336 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007832/0.4598, allocations: 163 kB / 0.5535 GB, free: 9.195 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006016/0.4604, allocations: 113.4 kB / 0.5536 GB, free: 9.105 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006487/0.4669, allocations: 7.05 MB / 0.5605 GB, free: 1.691 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004256/0.4673, allocations: 29.5 kB / 0.5605 GB, free: 1.672 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.796e-05/0.4673, allocations: 17.64 kB / 0.5605 GB, free: 1.656 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.0002436/0.4676, allocations: 155.1 kB / 0.5607 GB, free: 1.5 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.866e-05/0.4677, allocations: 27.86 kB / 0.5607 GB, free: 1.473 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001606/0.4693, allocations: 0.6064 MB / 0.5613 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.4693, allocations: 4.703 kB / 0.5613 GB, free: 0.957 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.4693, allocations: 3.938 kB / 0.5613 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.4693, allocations: 5.312 kB / 0.5613 GB, free: 0.9492 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005587/0.4699, allocations: 361 kB / 0.5616 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.4699, allocations: 0 / 0.5616 GB, free: 0.5977 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005868/0.4704, allocations: 97.31 kB / 0.5617 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005305/0.471, allocations: 141.8 kB / 0.5619 GB, free: 404 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.069e-05/0.471, allocations: 10.25 kB / 0.5619 GB, free: 396 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005822/0.4768, allocations: 6.67 MB / 0.5684 GB, free: 9.332 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.4768, allocations: 0.6094 kB / 0.5684 GB, free: 9.332 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00204/0.4789, allocations: 0.9003 MB / 0.5693 GB, free: 8.469 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.867e-05/0.4789, allocations: 31.86 kB / 0.5693 GB, free: 8.438 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.182e-05/0.479, allocations: 15.94 kB / 0.5693 GB, free: 8.422 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003297/0.4793, allocations: 27.95 kB / 0.5693 GB, free: 8.395 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001366/0.4795, allocations: 31.94 kB / 0.5694 GB, free: 8.363 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.432e-05/0.4795, allocations: 8 kB / 0.5694 GB, free: 8.355 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000208/0.4797, allocations: 189.2 kB / 0.5696 GB, free: 8.172 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4797, allocations: 0 / 0.5696 GB, free: 8.172 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005222/0.4802, allocations: 120 kB / 0.5697 GB, free: 8.055 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.002377/0.4826, allocations: 1.451 MB / 0.5711 GB, free: 6.562 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001854/0.4845, allocations: 1.012 MB / 0.5721 GB, free: 5.484 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.4845, allocations: 4.062 kB / 0.5721 GB, free: 5.48 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001157/0.4856, allocations: 0.7901 MB / 0.5729 GB, free: 4.625 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004822/0.4861, allocations: 68.53 kB / 0.5729 GB, free: 4.559 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009237/0.4953, allocations: 4.418 MB / 0.5772 GB, free: 28 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002446/0.4956, allocations: 195.1 kB / 0.5774 GB, free: 15.82 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002258/0.4958, allocations: 50.95 kB / 0.5775 GB, free: 15.77 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001912/0.496, allocations: 99.34 kB / 0.5776 GB, free: 15.67 MB / 430.1 MB Notification: Performance of SimCode: time 1.272e-06/0.496, allocations: 0 / 0.5776 GB, free: 15.67 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05599/0.552, allocations: 10.7 MB / 0.588 GB, free: 5.152 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.01/12.56, allocations: 5.688 kB / 0.588 GB, free: 5.148 MB / 430.1 MB " [Timeout remaining time 647] (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: 15.498793315142393] Failed to read output from testmodel.py, exit status != 0: 12.703113259281963 12.719607786 12.274143814 Calling exit ...