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.001737/0.001737, allocations: 100.3 kB / 19.72 MB, free: 1.785 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.00198/0.00198, allocations: 208.7 kB / 23.01 MB, free: 4.621 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.47/1.47, allocations: 230.6 MB / 256.8 MB, free: 7.785 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.1118/0.1118, allocations: 24.03 MB / 337.2 MB, free: 11.42 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.002086/0.002086, allocations: 63.91 kB / 473.8 MB, free: 6.395 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3301/0.3322, allocations: 59.58 MB / 0.5209 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.003573/0.3358, allocations: 2.41 MB / 0.5233 GB, free: 8.426 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007925/0.3366, allocations: 347.3 kB / 0.5236 GB, free: 8.188 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001454/0.3367, allocations: 16.03 kB / 0.5236 GB, free: 8.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.706e-05/0.3368, allocations: 42.61 kB / 0.5236 GB, free: 8.152 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003509/0.3372, allocations: 129 kB / 0.5238 GB, free: 8.062 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002815/0.3375, allocations: 71.02 kB / 0.5238 GB, free: 8.023 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000395/0.3378, allocations: 364.8 kB / 0.5242 GB, free: 7.836 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003307/0.3382, allocations: 142.5 kB / 0.5243 GB, free: 7.777 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002548/0.3384, allocations: 162.1 kB / 0.5245 GB, free: 7.711 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001911/0.3386, allocations: 114.2 kB / 0.5246 GB, free: 7.66 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.564e-05/0.3387, allocations: 19.75 kB / 0.5246 GB, free: 7.66 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001421/0.3388, allocations: 45.98 kB / 0.5246 GB, free: 7.656 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.744e-05/0.3389, allocations: 50.47 kB / 0.5247 GB, free: 7.621 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001475/0.339, allocations: 114.4 kB / 0.5248 GB, free: 7.566 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004019/0.3394, allocations: 313.7 kB / 0.5251 GB, free: 7.445 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3394, allocations: 3.938 kB / 0.5251 GB, free: 7.441 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.3394, allocations: 1.156 kB / 0.5251 GB, free: 7.441 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.268e-05/0.3394, allocations: 4 kB / 0.5251 GB, free: 7.438 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.0007304/0.3402, allocations: 0.4959 MB / 0.5256 GB, free: 7.023 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.3402, allocations: 10.33 kB / 0.5256 GB, free: 7.023 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.862e-05/0.3402, allocations: 55.14 kB / 0.5257 GB, free: 6.973 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.982e-05/0.3403, allocations: 32.03 kB / 0.5257 GB, free: 6.957 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003516/0.3406, allocations: 228.1 kB / 0.5259 GB, free: 6.77 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.3407, allocations: 16.12 kB / 0.5259 GB, free: 6.762 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.547e-05/0.3407, allocations: 15.88 kB / 0.5259 GB, free: 6.758 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003362/0.341, allocations: 205.2 kB / 0.5261 GB, free: 6.637 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.208e-05/0.341, allocations: 5.969 kB / 0.5261 GB, free: 6.633 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.99e-05/0.3411, allocations: 14.33 kB / 0.5262 GB, free: 6.621 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.3411, allocations: 3.594 kB / 0.5262 GB, free: 6.621 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002254/0.3413, allocations: 124.6 kB / 0.5263 GB, free: 6.578 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008914/0.3422, allocations: 0.7571 MB / 0.527 GB, free: 5.945 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002501/0.3424, allocations: 94.72 kB / 0.5271 GB, free: 5.891 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.815e-05/0.3425, allocations: 40.3 kB / 0.5271 GB, free: 5.871 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.535e-05/0.3425, allocations: 1.344 kB / 0.5271 GB, free: 5.871 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.511e-05/0.3426, allocations: 32.41 kB / 0.5272 GB, free: 5.832 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.663e-06/0.3426, allocations: 1.25 kB / 0.5272 GB, free: 5.832 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.000324/0.3429, allocations: 148.4 kB / 0.5273 GB, free: 5.75 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.479e-05/0.3429, allocations: 53.61 kB / 0.5274 GB, free: 5.688 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002964/0.3432, allocations: 296.2 kB / 0.5277 GB, free: 5.52 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.354e-05/0.3432, allocations: 29.7 kB / 0.5277 GB, free: 5.484 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.056e-05/0.3433, allocations: 172.8 kB / 0.5278 GB, free: 5.336 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.701e-05/0.3433, allocations: 44.17 kB / 0.5279 GB, free: 5.301 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.893e-05/0.3434, allocations: 36.16 kB / 0.5279 GB, free: 5.273 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.203e-05/0.3435, allocations: 337.5 kB / 0.5282 GB, free: 4.949 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.67e-05/0.3435, allocations: 34.67 kB / 0.5283 GB, free: 4.938 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.33e-05/0.3436, allocations: 60.52 kB / 0.5283 GB, free: 4.898 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001148/0.3448, allocations: 266.3 kB / 0.5286 GB, free: 4.797 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3448, allocations: 0 / 0.5286 GB, free: 4.797 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002581/0.345, allocations: 160.2 kB / 0.5287 GB, free: 4.715 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.3451, allocations: 5.625 kB / 0.5287 GB, free: 4.715 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.3451, allocations: 1.094 kB / 0.5287 GB, free: 4.715 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.742e-05/0.3451, allocations: 6.438 kB / 0.5288 GB, free: 4.711 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002059/0.3453, allocations: 39.19 kB / 0.5288 GB, free: 4.707 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.3453, allocations: 1.562 kB / 0.5288 GB, free: 4.707 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001339/0.3454, allocations: 24.19 kB / 0.5288 GB, free: 4.688 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.251e-05/0.3454, allocations: 9.328 kB / 0.5288 GB, free: 4.684 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.000159/0.3456, allocations: 144.7 kB / 0.529 GB, free: 4.547 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.624e-05/0.3456, allocations: 28.31 kB / 0.529 GB, free: 4.531 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002789/0.3459, allocations: 161.7 kB / 0.5291 GB, free: 4.445 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.3459, allocations: 3.812 kB / 0.5291 GB, free: 4.445 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.3459, allocations: 0 / 0.5291 GB, free: 4.445 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.3459, allocations: 0.75 kB / 0.5292 GB, free: 4.445 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002509/0.3462, allocations: 231.6 kB / 0.5294 GB, free: 4.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.3462, allocations: 3.938 kB / 0.5294 GB, free: 4.246 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001786/0.3464, allocations: 40.7 kB / 0.5294 GB, free: 4.234 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.3464, allocations: 0 / 0.5294 GB, free: 4.234 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.361e-05/0.3464, allocations: 9.219 kB / 0.5294 GB, free: 4.227 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.3464, allocations: 1.188 kB / 0.5294 GB, free: 4.227 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3464, allocations: 0 / 0.5294 GB, free: 4.227 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003099/0.3467, allocations: 275.2 kB / 0.5297 GB, free: 4.035 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.635e-05/0.3467, allocations: 28.69 kB / 0.5297 GB, free: 4.016 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.833e-05/0.3468, allocations: 6.016 kB / 0.5297 GB, free: 4.012 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001194/0.3469, allocations: 4 kB / 0.5297 GB, free: 4.008 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.077e-05/0.3469, allocations: 8.469 kB / 0.5297 GB, free: 4.008 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.804e-06/0.3469, allocations: 2.688 kB / 0.5297 GB, free: 4.008 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001748/0.3471, allocations: 213.6 kB / 0.5299 GB, free: 3.891 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3471, allocations: 0 / 0.5299 GB, free: 3.891 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003017/0.3474, allocations: 62.05 kB / 0.53 GB, free: 3.875 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.0004645/0.3479, allocations: 0.8142 MB / 0.5308 GB, free: 3.148 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002289/0.3481, allocations: 98.14 kB / 0.5309 GB, free: 3.113 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3481, allocations: 1.188 kB / 0.5309 GB, free: 3.113 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 7.936e-05/0.3482, allocations: 46.38 kB / 0.5309 GB, free: 3.098 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004061/0.3486, allocations: 57.72 kB / 0.531 GB, free: 3.074 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002624/0.3512, allocations: 2.515 MB / 0.5334 GB, free: 1.336 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001211/0.3513, allocations: 144.5 kB / 0.5336 GB, free: 1.254 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001493/0.3515, allocations: 36.69 kB / 0.5336 GB, free: 1.242 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001134/0.3516, allocations: 86.42 kB / 0.5337 GB, free: 1.18 MB / 382.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3516, allocations: 0 / 0.5337 GB, free: 1.18 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0372/0.3888, allocations: 6.346 MB / 0.5399 GB, free: 15.76 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/11.69, allocations: 1.5 kB / 0.5399 GB, free: 15.76 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.443033738061786] Failed to read output from testmodel.py, exit status != 0: 11.80210215318948 11.817346701 11.474925338 Calling exit ...