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.002002/0.002002, allocations: 106.1 kB / 16.45 MB, free: 6.453 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.002065/0.002065, allocations: 213.7 kB / 19.43 MB, free: 3.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.497/1.497, allocations: 230.6 MB / 252.8 MB, free: 8.957 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.1122/0.1122, allocations: 24.11 MB / 333 MB, free: 12.62 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.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: 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.002059/0.002059, allocations: 63.91 kB / 467.9 MB, free: 9.082 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3644/0.3665, allocations: 59.57 MB / 0.5151 GB, free: 9.633 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.003593/0.3701, allocations: 2.592 MB / 0.5176 GB, free: 7.891 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007752/0.3709, allocations: 376.3 kB / 0.518 GB, free: 7.625 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001723/0.371, allocations: 16.41 kB / 0.518 GB, free: 7.617 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 8.46e-05/0.3711, allocations: 38.7 kB / 0.518 GB, free: 7.594 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002951/0.3714, allocations: 124.1 kB / 0.5181 GB, free: 7.508 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00025/0.3717, allocations: 72.25 kB / 0.5182 GB, free: 7.469 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003424/0.372, allocations: 365.9 kB / 0.5185 GB, free: 7.281 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002832/0.3723, allocations: 149.7 kB / 0.5187 GB, free: 7.215 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002232/0.3725, allocations: 157.4 kB / 0.5188 GB, free: 7.152 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001908/0.3727, allocations: 123.3 kB / 0.519 GB, free: 7.094 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.261e-05/0.3728, allocations: 18.62 kB / 0.519 GB, free: 7.094 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001304/0.3729, allocations: 54.47 kB / 0.519 GB, free: 7.082 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.135e-05/0.3729, allocations: 49.84 kB / 0.5191 GB, free: 7.047 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001448/0.3731, allocations: 143.6 kB / 0.5192 GB, free: 6.965 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004233/0.3735, allocations: 303.6 kB / 0.5195 GB, free: 6.848 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.3735, allocations: 1.219 kB / 0.5195 GB, free: 6.848 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.3735, allocations: 0 / 0.5195 GB, free: 6.848 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.27e-05/0.3735, allocations: 0 / 0.5195 GB, free: 6.848 MB / 382.1 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.0008302/0.3744, allocations: 0.5775 MB / 0.5201 GB, free: 6.336 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.609e-05/0.3744, allocations: 14.19 kB / 0.5201 GB, free: 6.332 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.963e-05/0.3744, allocations: 53.08 kB / 0.5201 GB, free: 6.281 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.271e-05/0.3745, allocations: 31.53 kB / 0.5202 GB, free: 6.266 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004103/0.3749, allocations: 289 kB / 0.5204 GB, free: 6.016 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.307e-05/0.3749, allocations: 17.16 kB / 0.5204 GB, free: 6.008 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.113e-05/0.375, allocations: 16.53 kB / 0.5205 GB, free: 6.004 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003509/0.3753, allocations: 212.5 kB / 0.5207 GB, free: 5.875 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.3753, allocations: 3.938 kB / 0.5207 GB, free: 5.871 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.135e-05/0.3754, allocations: 10.47 kB / 0.5207 GB, free: 5.863 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.169e-05/0.3754, allocations: 5.156 kB / 0.5207 GB, free: 5.863 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002511/0.3756, allocations: 125.5 kB / 0.5208 GB, free: 5.82 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009953/0.3766, allocations: 0.8342 MB / 0.5216 GB, free: 5.141 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002579/0.3769, allocations: 94.39 kB / 0.5217 GB, free: 5.086 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.09e-05/0.377, allocations: 43.42 kB / 0.5217 GB, free: 5.062 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.079e-05/0.377, allocations: 2.688 kB / 0.5218 GB, free: 5.062 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.459e-05/0.377, allocations: 31.78 kB / 0.5218 GB, free: 5.023 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.363e-06/0.377, allocations: 0 / 0.5218 GB, free: 5.023 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003443/0.3773, allocations: 150.7 kB / 0.5219 GB, free: 4.941 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.401e-05/0.3774, allocations: 52.59 kB / 0.522 GB, free: 4.879 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002627/0.3776, allocations: 286.4 kB / 0.5222 GB, free: 4.727 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.143e-05/0.3776, allocations: 30.73 kB / 0.5223 GB, free: 4.691 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.759e-05/0.3777, allocations: 176.4 kB / 0.5224 GB, free: 4.539 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.57e-05/0.3778, allocations: 40.61 kB / 0.5225 GB, free: 4.508 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.451e-05/0.3778, allocations: 35.48 kB / 0.5225 GB, free: 4.48 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.131e-05/0.3779, allocations: 337.7 kB / 0.5228 GB, free: 4.156 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.728e-05/0.3779, allocations: 38.25 kB / 0.5229 GB, free: 4.141 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.277e-05/0.378, allocations: 59.39 kB / 0.5229 GB, free: 4.102 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001198/0.3792, allocations: 253.7 kB / 0.5232 GB, free: 4.012 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.215e-06/0.3792, allocations: 0 / 0.5232 GB, free: 4.012 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002742/0.3795, allocations: 168 kB / 0.5233 GB, free: 3.922 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/0.3795, allocations: 6.438 kB / 0.5233 GB, free: 3.922 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.3795, allocations: 448 / 0.5233 GB, free: 3.922 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.3795, allocations: 10.03 kB / 0.5234 GB, free: 3.914 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002198/0.3798, allocations: 42.67 kB / 0.5234 GB, free: 3.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.478e-06/0.3798, allocations: 1.406 kB / 0.5234 GB, free: 3.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001242/0.3799, allocations: 20.34 kB / 0.5234 GB, free: 3.895 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.382e-05/0.3799, allocations: 8.469 kB / 0.5234 GB, free: 3.891 MB / 382.1 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.000164/0.3801, allocations: 137.3 kB / 0.5236 GB, free: 3.758 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.477e-05/0.3801, allocations: 28.45 kB / 0.5236 GB, free: 3.742 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003593/0.3805, allocations: 167 kB / 0.5237 GB, free: 3.648 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.3805, allocations: 6.375 kB / 0.5237 GB, free: 3.645 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.3805, allocations: 5.453 kB / 0.5238 GB, free: 3.641 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.929e-06/0.3805, allocations: 0 / 0.5238 GB, free: 3.641 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003583/0.3809, allocations: 273.9 kB / 0.524 GB, free: 3.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.287e-06/0.3809, allocations: 1.062 kB / 0.524 GB, free: 3.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002056/0.3811, allocations: 32.94 kB / 0.524 GB, free: 3.406 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.3811, allocations: 0 / 0.524 GB, free: 3.406 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.839e-05/0.3811, allocations: 9.094 kB / 0.5241 GB, free: 3.398 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.3811, allocations: 1 kB / 0.5241 GB, free: 3.398 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.3811, allocations: 0 / 0.5241 GB, free: 3.398 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004495/0.3816, allocations: 281.6 kB / 0.5243 GB, free: 3.203 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.548e-05/0.3816, allocations: 110.2 kB / 0.5244 GB, free: 3.086 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.251e-05/0.3817, allocations: 5.312 kB / 0.5244 GB, free: 3.082 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001178/0.3818, allocations: 3.938 kB / 0.5244 GB, free: 3.078 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.804e-05/0.3818, allocations: 10.48 kB / 0.5244 GB, free: 3.074 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.506e-06/0.3819, allocations: 4.188 kB / 0.5245 GB, free: 3.074 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002408/0.3821, allocations: 209.1 kB / 0.5246 GB, free: 2.961 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3821, allocations: 0 / 0.5246 GB, free: 2.961 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003485/0.3824, allocations: 54.45 kB / 0.5247 GB, free: 2.953 MB / 382.1 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.0005904/0.383, allocations: 0.8171 MB / 0.5255 GB, free: 2.223 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002564/0.3833, allocations: 94.28 kB / 0.5256 GB, free: 2.191 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3833, allocations: 1.094 kB / 0.5256 GB, free: 2.191 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.667e-05/0.3834, allocations: 46.16 kB / 0.5256 GB, free: 2.176 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004/0.3838, allocations: 61.25 kB / 0.5257 GB, free: 2.148 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003008/0.3868, allocations: 2.514 MB / 0.5281 GB, free: 416 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000333/0.3871, allocations: 0.7534 MB / 0.5289 GB, free: 15.71 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000151/0.3873, allocations: 38.19 kB / 0.5289 GB, free: 15.7 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001385/0.3874, allocations: 90.56 kB / 0.529 GB, free: 15.63 MB / 398.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3874, allocations: 0 / 0.529 GB, free: 15.63 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04481/0.4322, allocations: 5.506 MB / 0.5344 GB, free: 15.01 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.244/8.677, allocations: 11.66 kB / 0.5344 GB, free: 15 MB / 398.1 MB " [Timeout remaining time 651] (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: 11.44642453501001] Failed to read output from testmodel.py, exit status != 0: 8.750535805011168 8.772196048 8.394371723 Calling exit ...