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.001449/0.001449, allocations: 110.6 kB / 18.94 MB, free: 2.949 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.001695/0.001695, allocations: 220.3 kB / 22.26 MB, free: 5.125 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.556/1.556, allocations: 230.6 MB / 256 MB, free: 7.961 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.1054/0.1054, allocations: 24.13 MB / 336.6 MB, free: 11.42 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.002687/0.002687, allocations: 71.89 kB / 473.3 MB, free: 6.371 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3601/0.3628, allocations: 59.61 MB / 0.5204 GB, free: 10.12 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.0367/0.3995, allocations: 23.16 MB / 0.543 GB, free: 1.73 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001563/0.4011, allocations: 0.728 MB / 0.5438 GB, free: 1.211 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001275/0.4012, allocations: 2.906 kB / 0.5438 GB, free: 1.211 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001649/0.4014, allocations: 37.64 kB / 0.5438 GB, free: 1.188 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002172/0.4016, allocations: 108.4 kB / 0.5439 GB, free: 1.117 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003442/0.4019, allocations: 110.8 kB / 0.544 GB, free: 1.055 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003829/0.4023, allocations: 417.7 kB / 0.5444 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003016/0.4026, allocations: 202.1 kB / 0.5446 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002563/0.4029, allocations: 177.6 kB / 0.5448 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000278/0.4031, allocations: 230.5 kB / 0.545 GB, free: 452 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.961e-05/0.4032, allocations: 40 kB / 0.545 GB, free: 412 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.542e-05/0.4033, allocations: 40 kB / 0.5451 GB, free: 372 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001092/0.4034, allocations: 121 kB / 0.5452 GB, free: 284 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001502/0.4035, allocations: 203.2 kB / 0.5454 GB, free: 100 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005662/0.4041, allocations: 457 kB / 0.5458 GB, free: 15.81 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.4041, allocations: 0 / 0.5458 GB, free: 15.81 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.4041, allocations: 0 / 0.5458 GB, free: 15.81 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.257e-05/0.4041, allocations: 4 kB / 0.5458 GB, free: 15.8 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.001457/0.4056, allocations: 0.6118 MB / 0.5464 GB, free: 15.22 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.4056, allocations: 9.578 kB / 0.5464 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.051e-05/0.4057, allocations: 64.23 kB / 0.5465 GB, free: 15.15 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.325e-05/0.4058, allocations: 40.7 kB / 0.5465 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004228/0.4062, allocations: 249.8 kB / 0.5468 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.594e-05/0.4062, allocations: 16.88 kB / 0.5468 GB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.699e-05/0.4063, allocations: 32.92 kB / 0.5468 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007555/0.407, allocations: 347.9 kB / 0.5471 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.341e-05/0.407, allocations: 0 / 0.5471 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.677e-05/0.4071, allocations: 12.8 kB / 0.5471 GB, free: 14.53 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.154e-06/0.4071, allocations: 8 kB / 0.5472 GB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008204/0.4079, allocations: 328.4 kB / 0.5475 GB, free: 14.25 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002218/0.4101, allocations: 1.213 MB / 0.5487 GB, free: 13.13 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005974/0.4107, allocations: 275.4 kB / 0.5489 GB, free: 12.89 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004856/0.4112, allocations: 216.2 kB / 0.5491 GB, free: 12.71 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.844e-05/0.4112, allocations: 4.234 kB / 0.5491 GB, free: 12.7 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.998e-05/0.4113, allocations: 38.8 kB / 0.5492 GB, free: 12.66 MB / 398.1 MB Notification: Performance of pre-optimization done (n=28): time 1.783e-06/0.4113, allocations: 0 / 0.5492 GB, free: 12.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=29): time 0.004913/0.4162, allocations: 1.516 MB / 0.5506 GB, free: 11.34 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.38e-05/0.4162, allocations: 60.09 kB / 0.5507 GB, free: 11.27 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003257/0.4166, allocations: 252.4 kB / 0.5509 GB, free: 11.03 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.932e-05/0.4166, allocations: 29.7 kB / 0.551 GB, free: 11 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001332/0.4167, allocations: 175 kB / 0.5511 GB, free: 10.83 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001173/0.4168, allocations: 112.3 kB / 0.5512 GB, free: 10.73 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001284/0.417, allocations: 60.19 kB / 0.5513 GB, free: 10.67 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001718/0.4171, allocations: 339.8 kB / 0.5516 GB, free: 10.34 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000505/0.4177, allocations: 186.3 kB / 0.5518 GB, free: 10.19 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005193/0.4182, allocations: 231.5 kB / 0.552 GB, free: 9.996 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.001866/0.42, allocations: 0.5817 MB / 0.5526 GB, free: 9.523 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.42, allocations: 0 / 0.5526 GB, free: 9.523 MB / 398.1 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001717/0.4218, allocations: 0.6263 MB / 0.5532 GB, free: 8.977 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.962e-05/0.4218, allocations: 12 kB / 0.5532 GB, free: 8.965 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.4218, allocations: 0 / 0.5532 GB, free: 8.965 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000766/0.4225, allocations: 171.6 kB / 0.5534 GB, free: 8.816 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006091/0.4232, allocations: 105.1 kB / 0.5535 GB, free: 8.734 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006483/0.4296, allocations: 7.074 MB / 0.5604 GB, free: 1.309 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003932/0.43, allocations: 30.08 kB / 0.5604 GB, free: 1.289 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.197e-05/0.4301, allocations: 9.312 kB / 0.5604 GB, free: 1.281 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.000237/0.4303, allocations: 166.8 kB / 0.5606 GB, free: 1.113 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.92e-05/0.4304, allocations: 23.86 kB / 0.5606 GB, free: 1.09 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001602/0.432, allocations: 0.5992 MB / 0.5612 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.432, allocations: 4 kB / 0.5612 GB, free: 0.582 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.006e-06/0.432, allocations: 0 / 0.5612 GB, free: 0.582 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.432, allocations: 2.109 kB / 0.5612 GB, free: 0.582 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005639/0.4326, allocations: 426.5 kB / 0.5616 GB, free: 212 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.4326, allocations: 0 / 0.5616 GB, free: 212 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006041/0.4332, allocations: 89.28 kB / 0.5617 GB, free: 144 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005462/0.4337, allocations: 156.2 kB / 0.5618 GB, free: 0 / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.111e-05/0.4338, allocations: 13.38 kB / 0.5618 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00565/0.4394, allocations: 6.69 MB / 0.5684 GB, free: 8.863 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.4394, allocations: 0 / 0.5684 GB, free: 8.863 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002066/0.4415, allocations: 0.8976 MB / 0.5693 GB, free: 7.934 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.471e-05/0.4416, allocations: 31.86 kB / 0.5693 GB, free: 7.902 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.441e-05/0.4416, allocations: 11.94 kB / 0.5693 GB, free: 7.891 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003309/0.4419, allocations: 27.97 kB / 0.5693 GB, free: 7.863 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001197/0.4421, allocations: 39.86 kB / 0.5694 GB, free: 7.824 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.933e-05/0.4421, allocations: 8 kB / 0.5694 GB, free: 7.816 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002069/0.4423, allocations: 185.2 kB / 0.5695 GB, free: 7.637 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4423, allocations: 0 / 0.5695 GB, free: 7.637 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005292/0.4428, allocations: 120 kB / 0.5697 GB, free: 7.52 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.002409/0.4452, allocations: 1.451 MB / 0.5711 GB, free: 6.027 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001843/0.4471, allocations: 1.009 MB / 0.5721 GB, free: 4.953 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.337e-06/0.4471, allocations: 0 / 0.5721 GB, free: 4.953 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001123/0.4482, allocations: 0.7825 MB / 0.5728 GB, free: 4.105 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004651/0.4487, allocations: 68.7 kB / 0.5729 GB, free: 4.039 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009474/0.4581, allocations: 4.427 MB / 0.5772 GB, free: 15.5 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005503/0.4587, allocations: 0.7996 MB / 0.578 GB, free: 14.68 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002604/0.459, allocations: 50.95 kB / 0.578 GB, free: 14.63 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002045/0.4592, allocations: 99.39 kB / 0.5781 GB, free: 14.54 MB / 430.1 MB Notification: Performance of SimCode: time 8.72e-07/0.4592, allocations: 0 / 0.5781 GB, free: 14.54 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05411/0.5133, allocations: 9.778 MB / 0.5877 GB, free: 4.891 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.93/12.45, allocations: 9.141 kB / 0.5877 GB, free: 4.883 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.381795450004574] Failed to read output from testmodel.py, exit status != 0: 12.566330608999124 12.593322982 12.183936474 Calling exit ...