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.001293/0.001293, 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.001581/0.001581, allocations: 206.2 kB / 23.01 MB, free: 4.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.455/1.455, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.1084/0.1084, allocations: 24.05 MB / 337.2 MB, free: 11.33 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.0023/0.0023, allocations: 63.91 kB / 473.8 MB, free: 6.375 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3529/0.3552, allocations: 59.56 MB / 0.5209 GB, free: 10.12 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.07232/0.4275, allocations: 23.47 MB / 0.5438 GB, free: 1.645 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001374/0.4289, allocations: 400.9 kB / 0.5442 GB, free: 1.363 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001992/0.4291, allocations: 20.75 kB / 0.5442 GB, free: 1.352 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001303/0.4292, allocations: 47.09 kB / 0.5443 GB, free: 1.324 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004073/0.4296, allocations: 148.1 kB / 0.5444 GB, free: 1.219 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002497/0.4299, allocations: 85.7 kB / 0.5445 GB, free: 1.172 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003496/0.4302, allocations: 426.2 kB / 0.5449 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003367/0.4306, allocations: 213.1 kB / 0.5451 GB, free: 0.6719 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002223/0.4308, allocations: 207.5 kB / 0.5453 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002034/0.431, allocations: 157.9 kB / 0.5454 GB, free: 380 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.149e-05/0.431, allocations: 28 kB / 0.5455 GB, free: 352 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001275/0.4312, allocations: 59.78 kB / 0.5455 GB, free: 300 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.397e-05/0.4312, allocations: 76.14 kB / 0.5456 GB, free: 236 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001121/0.4313, allocations: 148.3 kB / 0.5457 GB, free: 100 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005371/0.4319, allocations: 407.5 kB / 0.5461 GB, free: 15.82 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.4319, allocations: 4.75 kB / 0.5461 GB, free: 15.82 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4319, allocations: 0 / 0.5461 GB, free: 15.82 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.4319, allocations: 4 kB / 0.5461 GB, free: 15.81 MB / 398.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.001154/0.433, allocations: 0.5587 MB / 0.5467 GB, free: 15.26 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.659e-05/0.4331, allocations: 13.72 kB / 0.5467 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.328e-05/0.4332, allocations: 55.62 kB / 0.5468 GB, free: 15.19 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.094e-05/0.4333, allocations: 37.41 kB / 0.5468 GB, free: 15.15 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004896/0.4338, allocations: 263.7 kB / 0.547 GB, free: 14.9 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.414e-05/0.4338, allocations: 20.88 kB / 0.5471 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.904e-05/0.4338, allocations: 24.38 kB / 0.5471 GB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005469/0.4344, allocations: 275.6 kB / 0.5473 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.4344, allocations: 3.938 kB / 0.5473 GB, free: 14.62 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.716e-05/0.4344, allocations: 8 kB / 0.5474 GB, free: 14.61 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.4344, allocations: 8 kB / 0.5474 GB, free: 14.6 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004078/0.4349, allocations: 203.4 kB / 0.5476 GB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001454/0.4363, allocations: 0.8026 MB / 0.5483 GB, free: 13.67 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003858/0.4367, allocations: 165.7 kB / 0.5485 GB, free: 13.51 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002172/0.4369, allocations: 97.66 kB / 0.5486 GB, free: 13.43 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.307e-05/0.4369, allocations: 4.656 kB / 0.5486 GB, free: 13.42 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.472e-05/0.437, allocations: 47.23 kB / 0.5486 GB, free: 13.37 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002805/0.4373, allocations: 49.92 kB / 0.5487 GB, free: 13.32 MB / 398.1 MB Notification: Performance of pre-optimization done (n=18): time 1.753e-06/0.4373, allocations: 0 / 0.5487 GB, free: 13.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001383/0.4386, allocations: 370.5 kB / 0.549 GB, free: 13.01 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.322e-05/0.4387, allocations: 59.92 kB / 0.5491 GB, free: 12.94 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003668/0.4391, allocations: 299.6 kB / 0.5494 GB, free: 12.66 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.837e-05/0.4391, allocations: 29.7 kB / 0.5494 GB, free: 12.63 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001449/0.4392, allocations: 185.3 kB / 0.5496 GB, free: 12.46 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.92e-05/0.4393, allocations: 64.56 kB / 0.5497 GB, free: 12.4 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.255e-05/0.4394, allocations: 45.45 kB / 0.5497 GB, free: 12.36 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001793/0.4396, allocations: 344.3 kB / 0.55 GB, free: 12.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001469/0.4397, allocations: 64.3 kB / 0.5501 GB, free: 11.96 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001543/0.4399, allocations: 84.88 kB / 0.5502 GB, free: 11.89 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003948/0.4438, allocations: 0.704 MB / 0.5509 GB, free: 11.37 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.4438, allocations: 0 / 0.5509 GB, free: 11.37 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008634/0.4447, allocations: 309.1 kB / 0.5511 GB, free: 11.09 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.4447, allocations: 4.703 kB / 0.5512 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.914e-06/0.4447, allocations: 4 kB / 0.5512 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007715/0.4455, allocations: 99.09 kB / 0.5513 GB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002605/0.4458, allocations: 53.03 kB / 0.5513 GB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000492/0.4463, allocations: 0.5734 MB / 0.5519 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001724/0.4464, allocations: 8.734 kB / 0.5519 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.095e-05/0.4464, allocations: 5.922 kB / 0.5519 GB, free: 10.37 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.0002418/0.4467, allocations: 157 kB / 0.552 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.749e-05/0.4467, allocations: 27.81 kB / 0.5521 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009564/0.4477, allocations: 359.7 kB / 0.5524 GB, free: 9.867 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.4477, allocations: 4 kB / 0.5524 GB, free: 9.863 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.4477, allocations: 0.7031 kB / 0.5524 GB, free: 9.863 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.4477, allocations: 1.453 kB / 0.5524 GB, free: 9.863 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001358/0.4491, allocations: 0.6768 MB / 0.5531 GB, free: 9.207 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.4491, allocations: 0 / 0.5531 GB, free: 9.207 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002555/0.4493, allocations: 50.62 kB / 0.5531 GB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005619/0.4499, allocations: 104.1 kB / 0.5532 GB, free: 9.082 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.932e-05/0.4499, allocations: 0.6094 kB / 0.5532 GB, free: 9.082 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004472/0.4504, allocations: 0.5887 MB / 0.5538 GB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/0.4504, allocations: 8.484 kB / 0.5538 GB, free: 8.469 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009925/0.4514, allocations: 0.5028 MB / 0.5543 GB, free: 7.98 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.33e-05/0.4514, allocations: 34 kB / 0.5543 GB, free: 7.949 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.761e-05/0.4515, allocations: 4.609 kB / 0.5543 GB, free: 7.945 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001689/0.4516, allocations: 4.797 kB / 0.5543 GB, free: 7.941 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.491e-05/0.4517, allocations: 24.61 kB / 0.5543 GB, free: 7.926 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.78e-05/0.4517, allocations: 9.359 kB / 0.5544 GB, free: 7.918 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002317/0.452, allocations: 218.8 kB / 0.5546 GB, free: 7.73 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.452, allocations: 0 / 0.5546 GB, free: 7.73 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003497/0.4523, allocations: 71.89 kB / 0.5546 GB, free: 7.66 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.001104/0.4534, allocations: 1.019 MB / 0.5556 GB, free: 6.637 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005109/0.4539, allocations: 190.2 kB / 0.5558 GB, free: 6.473 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.4539, allocations: 0 / 0.5558 GB, free: 6.473 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002692/0.4542, allocations: 109.3 kB / 0.5559 GB, free: 6.379 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000441/0.4546, allocations: 66.91 kB / 0.556 GB, free: 6.324 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004625/0.4593, allocations: 3.011 MB / 0.5589 GB, free: 3.43 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001826/0.4594, allocations: 178.9 kB / 0.5591 GB, free: 3.277 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001802/0.4596, allocations: 44.38 kB / 0.5591 GB, free: 3.246 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000189/0.4598, allocations: 120 kB / 0.5592 GB, free: 3.141 MB / 398.1 MB Notification: Performance of SimCode: time 7.02e-07/0.4598, allocations: 0 / 0.5592 GB, free: 3.141 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03659/0.4964, allocations: 7.945 MB / 0.567 GB, free: 11.94 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.89/13.39, allocations: 6.516 kB / 0.567 GB, free: 11.93 MB / 414.1 MB " [Timeout remaining time 646] (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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003_res.csv --start-time 0 --stop-time 1000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2 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.185191079974174] Failed to read output from testmodel.py, exit status != 0: 13.510215697810054 13.535697059 13.099923529 Calling exit ...