Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.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.001367/0.001367, allocations: 110.4 kB / 18.94 MB, free: 2.793 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.001477/0.001477, allocations: 221.7 kB / 22.25 MB, free: 5.215 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.479/1.479, allocations: 230.6 MB / 256 MB, free: 8.004 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.1088/0.1088, allocations: 24.12 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_001,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_001",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_001",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.003042/0.003042, allocations: 63.91 kB / 473.3 MB, free: 6.422 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3439/0.3469, allocations: 59.61 MB / 0.5204 GB, free: 10.14 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowOnePort_pwh.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/Interfaces/flowOnePort_pwh.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_001): time 0.03627/0.3832, allocations: 23.03 MB / 0.5429 GB, free: 1.832 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007135/0.3839, allocations: 221.1 kB / 0.5431 GB, free: 1.668 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001337/0.384, allocations: 17.03 kB / 0.5431 GB, free: 1.66 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 8.617e-05/0.3841, allocations: 27.09 kB / 0.5432 GB, free: 1.645 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000217/0.3843, allocations: 106.8 kB / 0.5433 GB, free: 1.57 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000133/0.3845, allocations: 37.72 kB / 0.5433 GB, free: 1.551 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002524/0.3847, allocations: 304 kB / 0.5436 GB, free: 1.391 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002207/0.385, allocations: 120.6 kB / 0.5437 GB, free: 1.34 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001885/0.3851, allocations: 148.4 kB / 0.5439 GB, free: 1.273 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001404/0.3853, allocations: 101.7 kB / 0.544 GB, free: 1.223 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.867e-05/0.3853, allocations: 15.25 kB / 0.544 GB, free: 1.223 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.62e-05/0.3853, allocations: 15.12 kB / 0.544 GB, free: 1.223 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.904e-05/0.3854, allocations: 36.91 kB / 0.544 GB, free: 1.195 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.381e-05/0.3855, allocations: 110.7 kB / 0.5441 GB, free: 1.133 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002479/0.3857, allocations: 235.6 kB / 0.5443 GB, free: 1.031 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.3857, allocations: 1.125 kB / 0.5443 GB, free: 1.031 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3857, allocations: 0 / 0.5443 GB, free: 1.031 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.3857, allocations: 0 / 0.5443 GB, free: 1.031 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0005998/0.3863, allocations: 458.9 kB / 0.5448 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.188e-05/0.3863, allocations: 9.719 kB / 0.5448 GB, free: 0.5938 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.203e-05/0.3864, allocations: 48.8 kB / 0.5448 GB, free: 0.543 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.793e-05/0.3864, allocations: 24.8 kB / 0.5449 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002745/0.3867, allocations: 221.4 kB / 0.5451 GB, free: 300 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.77e-05/0.3867, allocations: 12.7 kB / 0.5451 GB, free: 288 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.543e-05/0.3867, allocations: 12.38 kB / 0.5451 GB, free: 276 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002851/0.387, allocations: 199.5 kB / 0.5453 GB, free: 84 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.387, allocations: 3.938 kB / 0.5453 GB, free: 80 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.649e-05/0.3871, allocations: 9.125 kB / 0.5453 GB, free: 72 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.501e-06/0.3871, allocations: 4 kB / 0.5453 GB, free: 68 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003497/0.3874, allocations: 121.9 kB / 0.5454 GB, free: 15.97 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001011/0.3884, allocations: 0.8059 MB / 0.5462 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002012/0.3886, allocations: 75.16 kB / 0.5463 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001434/0.3888, allocations: 55.72 kB / 0.5463 GB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.578e-05/0.3888, allocations: 4 kB / 0.5463 GB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.648e-05/0.3888, allocations: 43.06 kB / 0.5464 GB, free: 15 MB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.402e-06/0.3888, allocations: 0 / 0.5464 GB, free: 15 MB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005021/0.3893, allocations: 174.8 kB / 0.5465 GB, free: 14.84 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.529e-05/0.3894, allocations: 55.41 kB / 0.5466 GB, free: 14.78 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002561/0.3896, allocations: 224.4 kB / 0.5468 GB, free: 14.57 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.065e-05/0.3896, allocations: 25.7 kB / 0.5468 GB, free: 14.54 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001261/0.3898, allocations: 156.8 kB / 0.547 GB, free: 14.39 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.194e-05/0.3898, allocations: 43.73 kB / 0.547 GB, free: 14.35 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.899e-05/0.3899, allocations: 39.77 kB / 0.5471 GB, free: 14.31 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.3901, allocations: 333.7 kB / 0.5474 GB, free: 13.98 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001295/0.3902, allocations: 37.81 kB / 0.5474 GB, free: 13.95 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001408/0.3903, allocations: 73.72 kB / 0.5475 GB, free: 13.88 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008615/0.3912, allocations: 225.5 kB / 0.5477 GB, free: 13.68 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.3912, allocations: 0 / 0.5477 GB, free: 13.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000364/0.3915, allocations: 162.4 kB / 0.5479 GB, free: 13.53 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.3916, allocations: 11.94 kB / 0.5479 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.3916, allocations: 0 / 0.5479 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.44e-05/0.3916, allocations: 0 / 0.5479 GB, free: 13.52 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002146/0.3918, allocations: 41.77 kB / 0.5479 GB, free: 13.48 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.776e-06/0.3918, allocations: 4 kB / 0.5479 GB, free: 13.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001113/0.3919, allocations: 17.25 kB / 0.5479 GB, free: 13.46 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.062e-05/0.3919, allocations: 4 kB / 0.5479 GB, free: 13.46 MB / 398.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.000208/0.3921, allocations: 149 kB / 0.5481 GB, free: 13.31 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.505e-05/0.3922, allocations: 19.86 kB / 0.5481 GB, free: 13.29 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.508e-05/0.3922, allocations: 24.17 kB / 0.5481 GB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.129e-06/0.3923, allocations: 4.609 kB / 0.5481 GB, free: 13.26 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.3923, allocations: 0 / 0.5481 GB, free: 13.26 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.3923, allocations: 0.6094 kB / 0.5481 GB, free: 13.26 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003155/0.3926, allocations: 239.7 kB / 0.5484 GB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.3926, allocations: 0 / 0.5484 GB, free: 13.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002083/0.3928, allocations: 29.3 kB / 0.5484 GB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.3928, allocations: 0 / 0.5484 GB, free: 12.99 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.406e-05/0.3928, allocations: 7.984 kB / 0.5484 GB, free: 12.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.288e-06/0.3928, allocations: 4.703 kB / 0.5484 GB, free: 12.98 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.3928, allocations: 0 / 0.5484 GB, free: 12.98 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005263/0.3933, allocations: 297.7 kB / 0.5487 GB, free: 12.7 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.951e-05/0.3934, allocations: 25.42 kB / 0.5487 GB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.973e-05/0.3934, allocations: 0 / 0.5487 GB, free: 12.67 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001323/0.3935, allocations: 13.38 kB / 0.5487 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.152e-05/0.3936, allocations: 10.52 kB / 0.5487 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.516e-06/0.3936, allocations: 4 kB / 0.5487 GB, free: 12.65 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001644/0.3938, allocations: 172.1 kB / 0.5489 GB, free: 12.5 MB / 398.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3938, allocations: 0 / 0.5489 GB, free: 12.5 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002746/0.394, allocations: 43.95 kB / 0.5489 GB, free: 12.46 MB / 398.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 (14): * Single equations (assignments): 14 * 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.0008405/0.3949, allocations: 0.8346 MB / 0.5497 GB, free: 11.62 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003174/0.3952, allocations: 109 kB / 0.5499 GB, free: 11.52 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.3952, allocations: 0 / 0.5499 GB, free: 11.52 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001344/0.3953, allocations: 54.59 kB / 0.5499 GB, free: 11.48 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003644/0.3957, allocations: 61.47 kB / 0.55 GB, free: 11.43 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003098/0.3988, allocations: 2.299 MB / 0.5522 GB, free: 9.172 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003588/0.3992, allocations: 0.7325 MB / 0.5529 GB, free: 8.438 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001251/0.3993, allocations: 32.67 kB / 0.553 GB, free: 8.414 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001104/0.3994, allocations: 65.48 kB / 0.553 GB, free: 8.355 MB / 398.1 MB Notification: Performance of SimCode: time 4.5e-07/0.3994, allocations: 4 kB / 0.553 GB, free: 8.352 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03251/0.4319, allocations: 4.825 MB / 0.5577 GB, free: 5.133 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.69, allocations: 4 kB / 0.5577 GB, free: 5.129 MB / 398.1 MB " [Timeout remaining time 648] (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001_res.csv --start-time 0 --stop-time 5000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 50 AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_001.fmu > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.46454838700447] Failed to read output from testmodel.py, exit status != 0: 11.795688719001191 11.816203407 11.426368584 Calling exit ...