Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.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.0008203/0.0008203, 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.0008062/0.0008062, 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.9101/0.9101, allocations: 177.1 MB / 203.5 MB, free: 5.73 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.06222/0.06222, allocations: 18.13 MB / 278.1 MB, free: 11.53 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_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.763e-06/1.763e-06, allocations: 0 / 415.1 MB, free: 14.47 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.35e-05/2.526e-05, allocations: 2.281 kB / 415.1 MB, free: 14.47 MB / 394.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.004219/0.004244, allocations: 2.413 MB / 417.5 MB, free: 12.04 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.001102/0.005346, allocations: 354.6 kB / 417.8 MB, free: 11.7 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001893/0.005535, allocations: 23.81 kB / 417.8 MB, free: 11.67 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001008/0.005636, allocations: 39.62 kB / 417.9 MB, free: 11.63 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003777/0.006014, allocations: 123 kB / 418 MB, free: 11.51 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003222/0.006336, allocations: 83.69 kB / 418.1 MB, free: 11.43 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003744/0.006711, allocations: 374 kB / 418.5 MB, free: 11.06 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003063/0.007017, allocations: 142 kB / 418.6 MB, free: 10.93 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002785/0.007295, allocations: 151.5 kB / 418.7 MB, free: 10.78 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001623/0.007458, allocations: 83.73 kB / 418.8 MB, free: 10.7 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 4.22e-05/0.0075, allocations: 20 kB / 418.8 MB, free: 10.68 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001199/0.00762, allocations: 55.95 kB / 418.9 MB, free: 10.62 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 4.148e-05/0.007661, allocations: 43.77 kB / 418.9 MB, free: 10.58 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001005/0.007762, allocations: 99.75 kB / 419 MB, free: 10.48 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003736/0.008135, allocations: 303 kB / 419.3 MB, free: 10.18 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.008139, allocations: 7.984 kB / 419.3 MB, free: 10.18 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.00814, allocations: 0 / 419.3 MB, free: 10.18 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.008145, allocations: 0 / 419.3 MB, free: 10.18 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.0007357/0.008881, allocations: 0.4931 MB / 419.8 MB, free: 9.645 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.008927, allocations: 12.92 kB / 419.8 MB, free: 9.633 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.121e-05/0.008988, allocations: 50.73 kB / 419.9 MB, free: 9.574 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.897e-05/0.009047, allocations: 32.75 kB / 419.9 MB, free: 9.543 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003731/0.009421, allocations: 228.7 kB / 420.1 MB, free: 9.289 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.98e-05/0.00944, allocations: 12.75 kB / 420.2 MB, free: 9.277 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.488e-05/0.009475, allocations: 20.36 kB / 420.2 MB, free: 9.258 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003329/0.009808, allocations: 204.8 kB / 420.4 MB, free: 9.039 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.009819, allocations: 192 / 420.4 MB, free: 9.039 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.143e-05/0.00984, allocations: 12.38 kB / 420.4 MB, free: 9.027 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.568e-06/0.00985, allocations: 8.125 kB / 420.4 MB, free: 9.02 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002473/0.0101, allocations: 124.9 kB / 420.5 MB, free: 8.898 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000984/0.01108, allocations: 0.763 MB / 421.3 MB, free: 8.078 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002632/0.01134, allocations: 90.67 kB / 421.4 MB, free: 7.98 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.598e-05/0.01142, allocations: 36.84 kB / 421.4 MB, free: 7.941 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.256e-05/0.01144, allocations: 8 kB / 421.4 MB, free: 7.934 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.27e-05/0.01147, allocations: 30.56 kB / 421.4 MB, free: 7.895 MB / 394.7 MB Notification: Performance of pre-optimization done (n=10): time 1.603e-06/0.01147, allocations: 0 / 421.4 MB, free: 7.895 MB / 394.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003535/0.01182, allocations: 153.4 kB / 421.6 MB, free: 7.738 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.678e-05/0.01186, allocations: 51.41 kB / 421.6 MB, free: 7.676 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003028/0.01216, allocations: 296.5 kB / 421.9 MB, free: 7.375 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.022e-05/0.01218, allocations: 29.7 kB / 422 MB, free: 7.34 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001222/0.0123, allocations: 175.7 kB / 422.1 MB, free: 7.164 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.176e-05/0.01233, allocations: 39.62 kB / 422.2 MB, free: 7.125 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.5e-05/0.0124, allocations: 37.67 kB / 422.2 MB, free: 7.082 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000117/0.01252, allocations: 334.8 kB / 422.5 MB, free: 6.746 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.988e-05/0.01261, allocations: 43.97 kB / 422.6 MB, free: 6.703 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.959e-05/0.0127, allocations: 61.84 kB / 422.6 MB, free: 6.637 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001031/0.01373, allocations: 256.1 kB / 422.9 MB, free: 6.383 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.01373, allocations: 0 / 422.9 MB, free: 6.383 MB / 394.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002909/0.01402, allocations: 168.1 kB / 423.1 MB, free: 6.215 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.01404, allocations: 8 kB / 423.1 MB, free: 6.207 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.01405, allocations: 0 / 423.1 MB, free: 6.207 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.01406, allocations: 0 / 423.1 MB, free: 6.207 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001839/0.01425, allocations: 39.98 kB / 423.1 MB, free: 6.168 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.162e-05/0.01426, allocations: 11.98 kB / 423.1 MB, free: 6.156 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001072/0.01436, allocations: 15.84 kB / 423.1 MB, free: 6.141 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.29e-05/0.01438, allocations: 4 kB / 423.1 MB, free: 6.137 MB / 394.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: 3 * 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 (18): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001966/0.01457, allocations: 149.7 kB / 423.3 MB, free: 5.98 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.068e-05/0.01462, allocations: 27.81 kB / 423.3 MB, free: 5.953 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003187/0.01494, allocations: 155.5 kB / 423.5 MB, free: 5.797 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.01495, allocations: 4 kB / 423.5 MB, free: 5.793 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.01495, allocations: 0 / 423.5 MB, free: 5.793 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.01496, allocations: 7.922 kB / 423.5 MB, free: 5.785 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002855/0.01525, allocations: 236.5 kB / 423.7 MB, free: 5.512 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.01525, allocations: 7.938 kB / 423.7 MB, free: 5.504 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001678/0.01542, allocations: 27.98 kB / 423.7 MB, free: 5.477 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.01542, allocations: 0 / 423.7 MB, free: 5.477 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.717e-05/0.01544, allocations: 8 kB / 423.7 MB, free: 5.469 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.01544, allocations: 0 / 423.7 MB, free: 5.469 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.01544, allocations: 0 / 423.7 MB, free: 5.469 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003666/0.01581, allocations: 271.3 kB / 424 MB, free: 5.188 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.082e-05/0.01586, allocations: 27.81 kB / 424 MB, free: 5.16 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.765e-05/0.0159, allocations: 12.31 kB / 424.1 MB, free: 5.148 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001232/0.01602, allocations: 0 / 424.1 MB, free: 5.148 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.448e-05/0.01606, allocations: 11.92 kB / 424.1 MB, free: 5.137 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.809e-06/0.01607, allocations: 4 kB / 424.1 MB, free: 5.133 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002073/0.01628, allocations: 219.1 kB / 424.3 MB, free: 4.918 MB / 394.7 MB Notification: Performance of sort global known variables: time 1e-07/0.01628, allocations: 0 / 424.3 MB, free: 4.918 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003478/0.01663, allocations: 59.89 kB / 424.3 MB, free: 4.859 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006756/0.01731, allocations: 0.8099 MB / 425.1 MB, free: 4.02 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000233/0.01754, allocations: 94.72 kB / 425.2 MB, free: 3.93 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.01754, allocations: 3.938 kB / 425.2 MB, free: 3.926 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 7.9e-05/0.01762, allocations: 43.98 kB / 425.3 MB, free: 3.883 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004292/0.01805, allocations: 56.75 kB / 425.3 MB, free: 3.828 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003166/0.02121, allocations: 2.461 MB / 427.8 MB, free: 1.281 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001266/0.02134, allocations: 146.9 kB / 427.9 MB, free: 1.117 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001529/0.02149, allocations: 34.95 kB / 428 MB, free: 1.082 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001383/0.02163, allocations: 92.47 kB / 428.1 MB, free: 0.9922 MB / 394.7 MB Notification: Performance of SimCode: time 6.51e-07/0.02163, allocations: 0 / 428.1 MB, free: 0.9922 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02357/0.0452, allocations: 6.468 MB / 434.5 MB, free: 10.7 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.857/6.902, allocations: 3.438 kB / 434.5 MB, free: 10.7 MB / 410.7 MB " [Timeout remaining time 653] (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002_res.csv --start-time 0 --stop-time 1500 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3 AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002.fmu > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 8.99954889062792] Failed to read output from testmodel.py, exit status != 0: 6.985301924869418 7.1504940569999995 7.140512632 Calling exit ...