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.001441/0.001441, allocations: 114.5 kB / 18.94 MB, free: 2.934 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.001521/0.001521, allocations: 217 kB / 22.25 MB, free: 5.082 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.446/1.446, allocations: 230.6 MB / 256 MB, free: 8.023 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.1785/0.1785, allocations: 24.14 MB / 336.6 MB, free: 11.46 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.002027/0.002027, allocations: 63.91 kB / 473.3 MB, free: 6.438 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3225/0.3245, allocations: 59.61 MB / 0.5204 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.003074/0.3276, allocations: 2.605 MB / 0.523 GB, free: 8.227 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006567/0.3283, allocations: 360.6 kB / 0.5233 GB, free: 7.973 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001281/0.3284, allocations: 16.88 kB / 0.5233 GB, free: 7.965 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 8.118e-05/0.3285, allocations: 34.44 kB / 0.5234 GB, free: 7.945 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002535/0.3287, allocations: 129.5 kB / 0.5235 GB, free: 7.855 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002092/0.3289, allocations: 80.14 kB / 0.5236 GB, free: 7.809 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002927/0.3292, allocations: 360.8 kB / 0.5239 GB, free: 7.625 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000239/0.3295, allocations: 150.6 kB / 0.524 GB, free: 7.559 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002097/0.3297, allocations: 156.6 kB / 0.5242 GB, free: 7.496 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001768/0.3299, allocations: 126.8 kB / 0.5243 GB, free: 7.434 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.473e-05/0.3299, allocations: 19.22 kB / 0.5243 GB, free: 7.434 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000117/0.33, allocations: 54.14 kB / 0.5244 GB, free: 7.422 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.708e-05/0.33, allocations: 50.22 kB / 0.5244 GB, free: 7.387 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001143/0.3302, allocations: 139.2 kB / 0.5246 GB, free: 7.309 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003099/0.3305, allocations: 307.6 kB / 0.5249 GB, free: 7.188 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.3305, allocations: 1.156 kB / 0.5249 GB, free: 7.188 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.3305, allocations: 0 / 0.5249 GB, free: 7.188 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.483e-06/0.3305, allocations: 0 / 0.5249 GB, free: 7.188 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.0007151/0.3312, allocations: 0.5024 MB / 0.5253 GB, free: 6.77 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.405e-05/0.3312, allocations: 10.42 kB / 0.5254 GB, free: 6.77 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.963e-05/0.3313, allocations: 53.39 kB / 0.5254 GB, free: 6.719 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.933e-05/0.3313, allocations: 32.58 kB / 0.5254 GB, free: 6.703 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000329/0.3317, allocations: 224.1 kB / 0.5257 GB, free: 6.52 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.587e-05/0.3317, allocations: 20.91 kB / 0.5257 GB, free: 6.508 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.536e-05/0.3317, allocations: 16.25 kB / 0.5257 GB, free: 6.504 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003102/0.332, allocations: 209.4 kB / 0.5259 GB, free: 6.379 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.332, allocations: 3.938 kB / 0.5259 GB, free: 6.375 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.749e-05/0.332, allocations: 6.109 kB / 0.5259 GB, free: 6.371 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/0.332, allocations: 4.188 kB / 0.5259 GB, free: 6.371 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000226/0.3323, allocations: 125 kB / 0.526 GB, free: 6.328 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008601/0.3331, allocations: 0.7955 MB / 0.5268 GB, free: 5.688 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002181/0.3334, allocations: 98.45 kB / 0.5269 GB, free: 5.629 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.059e-05/0.3334, allocations: 42.75 kB / 0.5269 GB, free: 5.605 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.898e-05/0.3334, allocations: 6.266 kB / 0.5269 GB, free: 5.602 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.246e-05/0.3335, allocations: 32.34 kB / 0.527 GB, free: 5.562 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.132e-06/0.3335, allocations: 0 / 0.527 GB, free: 5.562 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.000303/0.3338, allocations: 149.7 kB / 0.5271 GB, free: 5.48 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.856e-05/0.3338, allocations: 57.28 kB / 0.5272 GB, free: 5.414 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002519/0.334, allocations: 286.6 kB / 0.5274 GB, free: 5.254 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.159e-05/0.334, allocations: 38.73 kB / 0.5275 GB, free: 5.211 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.634e-05/0.3341, allocations: 176.6 kB / 0.5276 GB, free: 5.059 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.181e-05/0.3341, allocations: 40.45 kB / 0.5277 GB, free: 5.027 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.138e-05/0.3342, allocations: 31.48 kB / 0.5277 GB, free: 5.004 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.299e-05/0.3342, allocations: 337 kB / 0.528 GB, free: 4.68 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.395e-05/0.3343, allocations: 35.23 kB / 0.5281 GB, free: 4.668 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.191e-05/0.3344, allocations: 58.88 kB / 0.5281 GB, free: 4.629 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001173/0.3356, allocations: 260.2 kB / 0.5284 GB, free: 4.531 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.3356, allocations: 1.062 kB / 0.5284 GB, free: 4.531 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002676/0.3358, allocations: 169.2 kB / 0.5285 GB, free: 4.441 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.3359, allocations: 5.25 kB / 0.5285 GB, free: 4.441 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.3359, allocations: 5.562 kB / 0.5285 GB, free: 4.438 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/0.3359, allocations: 8.578 kB / 0.5286 GB, free: 4.434 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002158/0.3361, allocations: 31.69 kB / 0.5286 GB, free: 4.434 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.704e-06/0.3361, allocations: 6.25 kB / 0.5286 GB, free: 4.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001298/0.3362, allocations: 23.56 kB / 0.5286 GB, free: 4.414 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.152e-05/0.3362, allocations: 3.469 kB / 0.5286 GB, free: 4.414 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.0001382/0.3364, allocations: 145.1 kB / 0.5288 GB, free: 4.273 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.468e-05/0.3364, allocations: 30.53 kB / 0.5288 GB, free: 4.258 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002709/0.3367, allocations: 164.7 kB / 0.5289 GB, free: 4.168 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.366e-06/0.3367, allocations: 1.094 kB / 0.5289 GB, free: 4.168 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.3367, allocations: 9.25 kB / 0.5289 GB, free: 4.16 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.676e-06/0.3367, allocations: 1.125 kB / 0.529 GB, free: 4.16 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002438/0.3369, allocations: 245.3 kB / 0.5292 GB, free: 3.965 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.3369, allocations: 0 / 0.5292 GB, free: 3.965 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001934/0.3371, allocations: 31.09 kB / 0.5292 GB, free: 3.961 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.3371, allocations: 1.094 kB / 0.5292 GB, free: 3.961 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.301e-05/0.3372, allocations: 6.422 kB / 0.5292 GB, free: 3.957 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.3372, allocations: 0 / 0.5292 GB, free: 3.957 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.3372, allocations: 1.125 kB / 0.5292 GB, free: 3.957 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002904/0.3375, allocations: 279.8 kB / 0.5295 GB, free: 3.758 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.248e-05/0.3375, allocations: 33.77 kB / 0.5295 GB, free: 3.734 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.748e-05/0.3375, allocations: 5.875 kB / 0.5295 GB, free: 3.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000128/0.3377, allocations: 4.516 kB / 0.5295 GB, free: 3.727 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.826e-05/0.3377, allocations: 8.328 kB / 0.5295 GB, free: 3.727 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.566e-06/0.3377, allocations: 3.203 kB / 0.5295 GB, free: 3.727 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000172/0.3379, allocations: 213.2 kB / 0.5297 GB, free: 3.609 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3379, allocations: 0 / 0.5297 GB, free: 3.609 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002961/0.3382, allocations: 57.98 kB / 0.5298 GB, free: 3.598 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.0004296/0.3386, allocations: 0.812 MB / 0.5306 GB, free: 2.867 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002129/0.3388, allocations: 102.9 kB / 0.5307 GB, free: 2.832 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.3388, allocations: 0 / 0.5307 GB, free: 2.832 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 7.586e-05/0.3389, allocations: 53.67 kB / 0.5307 GB, free: 2.816 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003763/0.3393, allocations: 57.28 kB / 0.5308 GB, free: 2.793 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002527/0.3418, allocations: 2.507 MB / 0.5332 GB, free: 1.051 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001733/0.342, allocations: 0.7536 MB / 0.534 GB, free: 360 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001359/0.3421, allocations: 39.23 kB / 0.534 GB, free: 344 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001092/0.3422, allocations: 86.89 kB / 0.5341 GB, free: 280 kB / 382.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3422, allocations: 0 / 0.5341 GB, free: 280 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.035/0.3772, allocations: 5.684 MB / 0.5397 GB, free: 15.37 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.74, allocations: 3.891 kB / 0.5397 GB, free: 15.37 MB / 398.1 MB " [Timeout remaining time 648] (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: 14.523837282002205] Failed to read output from testmodel.py, exit status != 0: 11.848771814002248 11.865599397 11.531784133 Calling exit ...