Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.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.001762/0.001762, allocations: 104.3 kB / 19.72 MB, free: 1.922 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.001688/0.001688, allocations: 214.8 kB / 23.01 MB, free: 4.98 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.518/1.518, allocations: 230.6 MB / 256.8 MB, free: 7.816 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.1137/0.1137, allocations: 24.04 MB / 337.2 MB, free: 11.36 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_003,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003",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.00237/0.00237, allocations: 63.91 kB / 473.8 MB, free: 6.414 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3534/0.3558, allocations: 59.58 MB / 0.5209 GB, free: 10.39 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Liquid/HE_LiquidLiquid_1vol.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/Liquid/HE_LiquidLiquid_1vol.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_003): time 0.07164/0.4274, allocations: 23.46 MB / 0.5438 GB, free: 1.918 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001247/0.4287, allocations: 408.1 kB / 0.5442 GB, free: 1.629 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001856/0.4289, allocations: 18.81 kB / 0.5442 GB, free: 1.613 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001067/0.429, allocations: 44.27 kB / 0.5443 GB, free: 1.586 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000354/0.4293, allocations: 149.1 kB / 0.5444 GB, free: 1.465 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002104/0.4295, allocations: 86.97 kB / 0.5445 GB, free: 1.402 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002802/0.4298, allocations: 425.3 kB / 0.5449 GB, free: 1.023 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003012/0.4301, allocations: 210.5 kB / 0.5451 GB, free: 0.875 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000211/0.4303, allocations: 203.9 kB / 0.5453 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002127/0.4305, allocations: 166.1 kB / 0.5455 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.861e-05/0.4306, allocations: 28 kB / 0.5455 GB, free: 0.543 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001163/0.4307, allocations: 56.34 kB / 0.5455 GB, free: 0.4961 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.929e-05/0.4307, allocations: 77.58 kB / 0.5456 GB, free: 444 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001067/0.4308, allocations: 145.7 kB / 0.5457 GB, free: 308 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004164/0.4313, allocations: 411.9 kB / 0.5461 GB, free: 24 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.4313, allocations: 0 / 0.5461 GB, free: 24 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.4313, allocations: 0 / 0.5461 GB, free: 24 kB / 382.1 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.4313, allocations: 0 / 0.5461 GB, free: 24 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.001113/0.4324, allocations: 0.5695 MB / 0.5467 GB, free: 15.46 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.948e-05/0.4324, allocations: 8.922 kB / 0.5467 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.281e-05/0.4325, allocations: 60.47 kB / 0.5468 GB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.16e-05/0.4326, allocations: 36.7 kB / 0.5468 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004394/0.433, allocations: 268.3 kB / 0.5471 GB, free: 15.1 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.445e-05/0.433, allocations: 12.88 kB / 0.5471 GB, free: 15.08 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.859e-05/0.4331, allocations: 24.38 kB / 0.5471 GB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005579/0.4337, allocations: 278.7 kB / 0.5474 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.501e-05/0.4337, allocations: 5.25 kB / 0.5474 GB, free: 14.82 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.859e-05/0.4337, allocations: 8 kB / 0.5474 GB, free: 14.81 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.009e-05/0.4337, allocations: 4 kB / 0.5474 GB, free: 14.81 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004056/0.4341, allocations: 207 kB / 0.5476 GB, free: 14.63 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001558/0.4357, allocations: 0.8066 MB / 0.5484 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003894/0.4361, allocations: 157 kB / 0.5485 GB, free: 13.71 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002347/0.4363, allocations: 93.28 kB / 0.5486 GB, free: 13.63 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.594e-05/0.4363, allocations: 4.891 kB / 0.5486 GB, free: 13.63 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.398e-05/0.4364, allocations: 38.5 kB / 0.5486 GB, free: 13.58 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002893/0.4367, allocations: 58.3 kB / 0.5487 GB, free: 13.53 MB / 398.1 MB Notification: Performance of pre-optimization done (n=18): time 2.024e-06/0.4367, allocations: 0 / 0.5487 GB, free: 13.53 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001429/0.4381, allocations: 368.9 kB / 0.549 GB, free: 13.21 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.647e-05/0.4381, allocations: 52.16 kB / 0.5491 GB, free: 13.15 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003809/0.4385, allocations: 303.3 kB / 0.5494 GB, free: 12.88 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.996e-05/0.4385, allocations: 29.7 kB / 0.5494 GB, free: 12.84 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001582/0.4387, allocations: 181.1 kB / 0.5496 GB, free: 12.67 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.573e-05/0.4388, allocations: 72.97 kB / 0.5497 GB, free: 12.61 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001121/0.4389, allocations: 49.69 kB / 0.5497 GB, free: 12.56 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001903/0.4391, allocations: 343.9 kB / 0.55 GB, free: 12.22 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001432/0.4392, allocations: 64.3 kB / 0.5501 GB, free: 12.17 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001623/0.4394, allocations: 84.92 kB / 0.5502 GB, free: 12.09 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004047/0.4434, allocations: 0.6975 MB / 0.5509 GB, free: 11.58 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.4434, allocations: 4 kB / 0.5509 GB, free: 11.58 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008731/0.4443, allocations: 300.8 kB / 0.5511 GB, free: 11.31 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/0.4443, allocations: 8.703 kB / 0.5512 GB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.324e-06/0.4443, allocations: 8.031 kB / 0.5512 GB, free: 11.29 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007801/0.4451, allocations: 107.2 kB / 0.5513 GB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002631/0.4454, allocations: 45.17 kB / 0.5513 GB, free: 11.18 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006088/0.446, allocations: 0.5813 MB / 0.5519 GB, free: 10.58 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001805/0.4462, allocations: 4 kB / 0.5519 GB, free: 10.57 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.607e-05/0.4462, allocations: 10.3 kB / 0.5519 GB, free: 10.57 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: 2 * 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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0002941/0.4465, allocations: 148.8 kB / 0.552 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.303e-05/0.4465, allocations: 31.81 kB / 0.5521 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009699/0.4475, allocations: 352 kB / 0.5524 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.4475, allocations: 4 kB / 0.5524 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.4475, allocations: 4 kB / 0.5524 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.4475, allocations: 5.859 kB / 0.5524 GB, free: 10.07 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001368/0.4489, allocations: 0.6731 MB / 0.5531 GB, free: 9.414 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.4489, allocations: 0 / 0.5531 GB, free: 9.414 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002471/0.4491, allocations: 50.7 kB / 0.5531 GB, free: 9.371 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005522/0.4497, allocations: 99.53 kB / 0.5532 GB, free: 9.293 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.901e-05/0.4497, allocations: 9.594 kB / 0.5532 GB, free: 9.285 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005574/0.4503, allocations: 0.5807 MB / 0.5538 GB, free: 8.688 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.4503, allocations: 3.938 kB / 0.5538 GB, free: 8.684 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001084/0.4514, allocations: 0.5108 MB / 0.5543 GB, free: 8.188 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.564e-05/0.4514, allocations: 33.91 kB / 0.5543 GB, free: 8.156 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.931e-05/0.4515, allocations: 4.703 kB / 0.5543 GB, free: 8.152 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001644/0.4516, allocations: 8 kB / 0.5543 GB, free: 8.145 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.931e-05/0.4517, allocations: 25.41 kB / 0.5544 GB, free: 8.129 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.867e-05/0.4517, allocations: 8.859 kB / 0.5544 GB, free: 8.121 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002562/0.452, allocations: 219.2 kB / 0.5546 GB, free: 7.934 MB / 398.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.452, allocations: 0 / 0.5546 GB, free: 7.934 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00035/0.4523, allocations: 71.89 kB / 0.5546 GB, free: 7.863 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00117/0.4535, allocations: 1.023 MB / 0.5556 GB, free: 6.836 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005226/0.454, allocations: 187 kB / 0.5558 GB, free: 6.676 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.454, allocations: 0 / 0.5558 GB, free: 6.676 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002733/0.4543, allocations: 108.1 kB / 0.5559 GB, free: 6.582 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000456/0.4548, allocations: 61.8 kB / 0.556 GB, free: 6.531 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0051/0.4599, allocations: 3.004 MB / 0.5589 GB, free: 3.641 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001901/0.4601, allocations: 174.9 kB / 0.5591 GB, free: 3.492 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001863/0.4602, allocations: 44.5 kB / 0.5591 GB, free: 3.461 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001961/0.4604, allocations: 120 kB / 0.5592 GB, free: 3.355 MB / 398.1 MB Notification: Performance of SimCode: time 5.01e-07/0.4604, allocations: 0 / 0.5592 GB, free: 3.355 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04122/0.5017, allocations: 7.944 MB / 0.567 GB, free: 12.13 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.8/13.3, allocations: 10.69 kB / 0.567 GB, free: 12.12 MB / 414.1 MB " [Timeout remaining time 647] (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003_fmu --startTime=0 --stopTime=1000 --stepSize=2 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_003.fmu > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.10760673135519] Failed to read output from testmodel.py, exit status != 0: 13.430522603914142 13.455430129 13.01948653 Calling exit ...