Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.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.0009366/0.0009366, allocations: 76.52 kB / 19.95 MB, free: 4.598 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.0009401/0.0009401, allocations: 169.2 kB / 23.23 MB, free: 1.316 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.9521/0.9521, 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.06318/0.06318, allocations: 18.12 MB / 278.1 MB, free: 11.55 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.HeatExchanger_1vol_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 415.1 MB, free: 12.68 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.22e-05/2.385e-05, allocations: 2.281 kB / 415.1 MB, free: 12.68 MB / 330.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Liquid/HE_LiquidLiquid_1vol.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/Liquid/HE_LiquidLiquid_1vol.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.HeatExchanger_1vol_case_003): time 0.02467/0.02469, allocations: 23.73 MB / 438.8 MB, free: 15.37 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001759/0.02645, allocations: 407.4 kB / 439.2 MB, free: 15.02 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002635/0.02671, allocations: 19.88 kB / 439.2 MB, free: 15 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001094/0.02682, allocations: 42.98 kB / 439.3 MB, free: 14.97 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000431/0.02725, allocations: 156.7 kB / 439.4 MB, free: 14.84 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002516/0.0275, allocations: 88.59 kB / 439.5 MB, free: 14.78 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003997/0.0279, allocations: 444.9 kB / 439.9 MB, free: 14.38 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003813/0.02829, allocations: 206.2 kB / 440.1 MB, free: 14.24 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002219/0.02851, allocations: 192.1 kB / 440.3 MB, free: 14.07 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002237/0.02873, allocations: 145.2 kB / 440.5 MB, free: 13.96 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 4.324e-05/0.02877, allocations: 28 kB / 440.5 MB, free: 13.94 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00012/0.02889, allocations: 56.81 kB / 440.5 MB, free: 13.89 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.356e-05/0.02896, allocations: 76.56 kB / 440.6 MB, free: 13.83 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001095/0.02907, allocations: 124.5 kB / 440.7 MB, free: 13.72 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005052/0.02957, allocations: 421.7 kB / 441.1 MB, free: 13.44 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.02958, allocations: 0 / 441.1 MB, free: 13.44 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.02958, allocations: 0 / 441.1 MB, free: 13.44 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.896e-06/0.02959, allocations: 0 / 441.1 MB, free: 13.44 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: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.0008744/0.03046, allocations: 0.5588 MB / 441.7 MB, free: 12.89 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.987e-05/0.03051, allocations: 13.58 kB / 441.7 MB, free: 12.88 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.633e-05/0.03058, allocations: 56.28 kB / 441.8 MB, free: 12.82 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.3e-05/0.03064, allocations: 40.7 kB / 441.8 MB, free: 12.78 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003371/0.03098, allocations: 267.5 kB / 442.1 MB, free: 12.52 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.216e-05/0.031, allocations: 20.88 kB / 442.1 MB, free: 12.5 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.137e-05/0.03104, allocations: 24.38 kB / 442.1 MB, free: 12.47 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004004/0.03144, allocations: 275.4 kB / 442.4 MB, free: 12.24 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.03145, allocations: 192 / 442.4 MB, free: 12.24 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.134e-05/0.03148, allocations: 8.375 kB / 442.4 MB, free: 12.23 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.314e-05/0.03149, allocations: 16.11 kB / 442.4 MB, free: 12.21 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002994/0.03179, allocations: 199.6 kB / 442.6 MB, free: 12.05 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001011/0.0328, allocations: 0.8113 MB / 443.4 MB, free: 11.27 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002727/0.03307, allocations: 149.1 kB / 443.6 MB, free: 11.13 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001522/0.03322, allocations: 93.14 kB / 443.7 MB, free: 11.05 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.476e-05/0.03325, allocations: 0.8906 kB / 443.7 MB, free: 11.05 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.324e-05/0.03327, allocations: 42.5 kB / 443.7 MB, free: 11 MB / 346.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001574/0.03343, allocations: 50.31 kB / 443.7 MB, free: 10.95 MB / 346.7 MB Notification: Performance of pre-optimization done (n=18): time 1.433e-06/0.03343, allocations: 0 / 443.7 MB, free: 10.95 MB / 346.7 MB Notification: Performance of matching and sorting (n=18): time 0.0009243/0.03435, allocations: 369.2 kB / 444.1 MB, free: 10.64 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.734e-05/0.03439, allocations: 55.41 kB / 444.2 MB, free: 10.57 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002879/0.03468, allocations: 303.8 kB / 444.5 MB, free: 10.3 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.947e-05/0.0347, allocations: 29.7 kB / 444.5 MB, free: 10.26 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.0348, allocations: 181.2 kB / 444.7 MB, free: 10.09 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.094e-05/0.03485, allocations: 71.56 kB / 444.7 MB, free: 10.03 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.444e-05/0.03491, allocations: 53.62 kB / 444.8 MB, free: 9.977 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.03502, allocations: 344.8 kB / 445.1 MB, free: 9.641 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.66e-05/0.03512, allocations: 59.45 kB / 445.2 MB, free: 9.59 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001045/0.03522, allocations: 88.5 kB / 445.3 MB, free: 9.508 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002051/0.03727, allocations: 0.6961 MB / 446 MB, free: 8.996 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.03728, allocations: 4 kB / 446 MB, free: 8.992 MB / 346.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0005092/0.03779, allocations: 311.4 kB / 446.3 MB, free: 8.715 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.097e-05/0.03781, allocations: 4.562 kB / 446.3 MB, free: 8.711 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.03782, allocations: 4 kB / 446.3 MB, free: 8.707 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004194/0.03823, allocations: 103.2 kB / 446.4 MB, free: 8.629 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001501/0.03838, allocations: 49.36 kB / 446.4 MB, free: 8.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004181/0.0388, allocations: 0.5809 MB / 447 MB, free: 7.992 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.556e-05/0.03888, allocations: 8.719 kB / 447 MB, free: 7.984 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.807e-05/0.0389, allocations: 10.34 kB / 447 MB, free: 7.977 MB / 346.7 MB Warning: Assuming fixed start value for the following 2 variables: HE.Tho:VARIABLE(min = 0.0 start = 339.5666268514094 unit = \"K\" fixed = true nominal = 300.0 ) type: Real HE.Tco:VARIABLE(min = 0.0 start = 299.958408982322 unit = \"K\" fixed = true nominal = 300.0 ) type: Real 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 (21): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.000211/0.03911, allocations: 148.2 kB / 447.2 MB, free: 7.824 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.552e-05/0.03914, allocations: 27.81 kB / 447.2 MB, free: 7.797 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006379/0.03978, allocations: 354.4 kB / 447.5 MB, free: 7.5 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.03978, allocations: 4 kB / 447.5 MB, free: 7.496 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.03979, allocations: 4.062 kB / 447.6 MB, free: 7.492 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.563e-06/0.0398, allocations: 6.062 kB / 447.6 MB, free: 7.488 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008285/0.04063, allocations: 0.6688 MB / 448.2 MB, free: 6.84 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.04063, allocations: 0 / 448.2 MB, free: 6.84 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001333/0.04076, allocations: 54.09 kB / 448.3 MB, free: 6.793 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002682/0.04103, allocations: 96.66 kB / 448.4 MB, free: 6.719 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.63e-05/0.04105, allocations: 8.609 kB / 448.4 MB, free: 6.711 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003259/0.04137, allocations: 0.5813 MB / 449 MB, free: 6.113 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.04137, allocations: 3.938 kB / 449 MB, free: 6.109 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007034/0.04208, allocations: 0.5098 MB / 449.5 MB, free: 5.613 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.005e-05/0.04212, allocations: 29.95 kB / 449.5 MB, free: 5.586 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.148e-05/0.04215, allocations: 12.8 kB / 449.5 MB, free: 5.574 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.979e-05/0.04223, allocations: 0 / 449.5 MB, free: 5.574 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.082e-05/0.04229, allocations: 21.38 kB / 449.5 MB, free: 5.562 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.242e-05/0.0423, allocations: 9.312 kB / 449.6 MB, free: 5.555 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001826/0.04249, allocations: 215.1 kB / 449.8 MB, free: 5.367 MB / 346.7 MB Notification: Performance of sort global known variables: time 7e-08/0.04249, allocations: 0 / 449.8 MB, free: 5.367 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002361/0.04272, allocations: 75.89 kB / 449.8 MB, free: 5.293 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (HE.Tho,HE.Tco) * 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 (21): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008094/0.04353, allocations: 1.029 MB / 450.9 MB, free: 4.262 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003852/0.04392, allocations: 191.2 kB / 451.1 MB, free: 4.098 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.04392, allocations: 0 / 451.1 MB, free: 4.098 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001498/0.04407, allocations: 105.4 kB / 451.2 MB, free: 4.008 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003253/0.04439, allocations: 79.39 kB / 451.2 MB, free: 3.941 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003068/0.04746, allocations: 2.943 MB / 454.2 MB, free: 1.117 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001294/0.04759, allocations: 171 kB / 454.3 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001221/0.04771, allocations: 44.09 kB / 454.4 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001341/0.04785, allocations: 125.4 kB / 454.5 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of SimCode: time 8.62e-07/0.04785, allocations: 0 / 454.5 MB, free: 0.8242 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02077/0.06862, allocations: 8.063 MB / 462.6 MB, free: 9.094 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.908/7.976, allocations: 11.91 kB / 462.6 MB, free: 9.082 MB / 362.7 MB " [Timeout remaining time 652] (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003_res.csv --start-time 0 --stop-time 1000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2 AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003.fmu > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.132101211696863] Failed to read output from testmodel.py, exit status != 0: 8.07172021549195 8.0820844 8.050255212 Calling exit ...