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.0007646/0.0007646, allocations: 72.52 kB / 19.95 MB, free: 4.613 MB / 18.57 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.001081/0.001081, allocations: 169.2 kB / 23.23 MB, free: 1.332 MB / 18.57 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 0.9214/0.9214, allocations: 177.1 MB / 203.5 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] 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.06237/0.06237, allocations: 18.13 MB / 278.1 MB, free: 11.54 MB / 266.7 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: Performance of FrontEnd - loaded program: time 2.144e-06/2.144e-06, allocations: 0 / 415.1 MB, free: 12.7 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.281e-05/2.496e-05, allocations: 2.281 kB / 415.1 MB, free: 12.7 MB / 330.7 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.02663/0.02665, allocations: 23.48 MB / 438.6 MB, free: 15.59 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001506/0.02816, allocations: 0.6828 MB / 439.2 MB, free: 14.98 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001579/0.02832, allocations: 3.938 kB / 439.2 MB, free: 14.98 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001713/0.02849, allocations: 43.31 kB / 439.3 MB, free: 14.95 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002444/0.02873, allocations: 115.6 kB / 439.4 MB, free: 14.85 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004438/0.02917, allocations: 103.2 kB / 439.5 MB, free: 14.78 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004642/0.02964, allocations: 430 kB / 439.9 MB, free: 14.41 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003172/0.02996, allocations: 197.2 kB / 440.1 MB, free: 14.27 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003046/0.03026, allocations: 170.7 kB / 440.3 MB, free: 14.12 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002776/0.03054, allocations: 197.2 kB / 440.5 MB, free: 13.98 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.527e-05/0.03059, allocations: 43.98 kB / 440.5 MB, free: 13.94 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.413e-05/0.03064, allocations: 40 kB / 440.5 MB, free: 13.9 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001143/0.03075, allocations: 129.6 kB / 440.7 MB, free: 13.8 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001294/0.03088, allocations: 147 kB / 440.8 MB, free: 13.68 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004472/0.03133, allocations: 465.8 kB / 441.3 MB, free: 13.39 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.03133, allocations: 0.5156 kB / 441.3 MB, free: 13.39 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.03134, allocations: 4 kB / 441.3 MB, free: 13.39 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.594e-06/0.03134, allocations: 0 / 441.3 MB, free: 13.39 MB / 346.7 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.001027/0.03237, allocations: 0.616 MB / 441.9 MB, free: 12.8 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/0.03242, allocations: 8.922 kB / 441.9 MB, free: 12.79 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.205e-05/0.03249, allocations: 56.61 kB / 442 MB, free: 12.73 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.471e-05/0.03256, allocations: 40.7 kB / 442 MB, free: 12.7 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003364/0.03289, allocations: 241.8 kB / 442.2 MB, free: 12.45 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.551e-05/0.03292, allocations: 20.88 kB / 442.3 MB, free: 12.43 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.98e-05/0.03297, allocations: 28.94 kB / 442.3 MB, free: 12.4 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005739/0.03354, allocations: 348.2 kB / 442.6 MB, free: 12.13 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.03355, allocations: 0.9844 kB / 442.6 MB, free: 12.13 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.642e-05/0.03358, allocations: 15.94 kB / 442.6 MB, free: 12.11 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.335e-06/0.03359, allocations: 4 kB / 442.6 MB, free: 12.11 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005274/0.03412, allocations: 327.9 kB / 443 MB, free: 11.85 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001407/0.03552, allocations: 0.8951 MB / 443.9 MB, free: 11.04 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003923/0.03592, allocations: 270.7 kB / 444.1 MB, free: 10.81 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003075/0.03622, allocations: 219 kB / 444.3 MB, free: 10.62 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.558e-05/0.03625, allocations: 0.9844 kB / 444.3 MB, free: 10.62 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.562e-05/0.03627, allocations: 38.8 kB / 444.4 MB, free: 10.57 MB / 346.7 MB Notification: Performance of pre-optimization done (n=28): time 1.964e-06/0.03628, allocations: 0 / 444.4 MB, free: 10.57 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.002872/0.03915, allocations: 1.512 MB / 445.9 MB, free: 9.262 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.336e-05/0.03918, allocations: 59.41 kB / 445.9 MB, free: 9.191 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002268/0.03941, allocations: 260.6 kB / 446.2 MB, free: 8.953 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.647e-05/0.03944, allocations: 33.7 kB / 446.2 MB, free: 8.914 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.779e-05/0.03952, allocations: 171.3 kB / 446.4 MB, free: 8.754 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.095e-05/0.03959, allocations: 102.9 kB / 446.5 MB, free: 8.66 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.635e-05/0.03968, allocations: 63.81 kB / 446.6 MB, free: 8.598 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.03978, allocations: 340.2 kB / 446.9 MB, free: 8.266 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002823/0.04006, allocations: 190.6 kB / 447.1 MB, free: 8.113 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002932/0.04036, allocations: 219.4 kB / 447.3 MB, free: 7.93 MB / 346.7 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.00106/0.04142, allocations: 0.5785 MB / 447.9 MB, free: 7.461 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.04142, allocations: 0 / 447.9 MB, free: 7.461 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001068/0.04249, allocations: 0.6295 MB / 448.5 MB, free: 6.91 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.739e-05/0.04251, allocations: 8.75 kB / 448.5 MB, free: 6.902 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.789e-06/0.04252, allocations: 7.922 kB / 448.5 MB, free: 6.895 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005083/0.04303, allocations: 171.4 kB / 448.7 MB, free: 6.746 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003964/0.04343, allocations: 101.6 kB / 448.8 MB, free: 6.668 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004262/0.04769, allocations: 7.05 MB / 455.8 MB, free: 15.26 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002377/0.04793, allocations: 33.69 kB / 455.9 MB, free: 15.24 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.08e-05/0.04795, allocations: 9.438 kB / 455.9 MB, free: 15.23 MB / 362.7 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.0001986/0.04815, allocations: 158.4 kB / 456 MB, free: 15.07 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.743e-05/0.04819, allocations: 28.92 kB / 456.1 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008864/0.04908, allocations: 0.6186 MB / 456.7 MB, free: 14.44 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.426e-06/0.04908, allocations: 4 kB / 456.7 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.04909, allocations: 0 / 456.7 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/0.04909, allocations: 3.984 kB / 456.7 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003611/0.04945, allocations: 353.3 kB / 457 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.04946, allocations: 3.938 kB / 457 MB, free: 14.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002952/0.04975, allocations: 99.92 kB / 457.1 MB, free: 13.94 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002561/0.05001, allocations: 148.1 kB / 457.3 MB, free: 13.78 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.303e-05/0.05003, allocations: 8 kB / 457.3 MB, free: 13.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003027/0.05306, allocations: 6.663 MB / 463.9 MB, free: 6.539 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.574e-06/0.05306, allocations: 3.938 kB / 464 MB, free: 6.535 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001164/0.05422, allocations: 0.8937 MB / 464.8 MB, free: 5.609 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.202e-05/0.05428, allocations: 31.86 kB / 464.9 MB, free: 5.578 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.105e-05/0.05431, allocations: 11.98 kB / 464.9 MB, free: 5.566 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001606/0.05447, allocations: 27.97 kB / 464.9 MB, free: 5.539 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/0.05457, allocations: 39.88 kB / 465 MB, free: 5.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.585e-05/0.05458, allocations: 7.984 kB / 465 MB, free: 5.492 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001372/0.05472, allocations: 185.2 kB / 465.1 MB, free: 5.312 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.05472, allocations: 0 / 465.1 MB, free: 5.312 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004026/0.05512, allocations: 116 kB / 465.3 MB, free: 5.199 MB / 362.7 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.001362/0.05649, allocations: 1.455 MB / 466.7 MB, free: 3.699 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00109/0.05758, allocations: 0.997 MB / 467.7 MB, free: 2.637 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.05758, allocations: 0 / 467.7 MB, free: 2.637 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005781/0.05816, allocations: 0.7863 MB / 468.5 MB, free: 1.785 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003659/0.05852, allocations: 72.62 kB / 468.6 MB, free: 1.715 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00532/0.06384, allocations: 4.307 MB / 472.9 MB, free: 13.29 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000174/0.06402, allocations: 183.1 kB / 473.1 MB, free: 13.09 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001838/0.0642, allocations: 50.95 kB / 473.1 MB, free: 13.04 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001485/0.06435, allocations: 108.4 kB / 473.2 MB, free: 12.93 MB / 378.7 MB Notification: Performance of SimCode: time 1.593e-06/0.06435, allocations: 0 / 473.2 MB, free: 12.93 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03496/0.09931, allocations: 10.85 MB / 484.1 MB, free: 2.281 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.66/7.76, allocations: 7.875 kB / 484.1 MB, free: 2.273 MB / 378.7 MB " [Timeout remaining time 652] (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: 9.839469238184392] Failed to read output from testmodel.py, exit status != 0: 7.849702131003141 7.865906983 7.831552197 Calling exit ...