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.001883/0.001883, allocations: 114.3 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.001783/0.001783, allocations: 214.1 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.543/1.543, allocations: 230.6 MB / 256 MB, free: 8.012 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.1106/0.1106, allocations: 24.12 MB / 336.6 MB, free: 11.53 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.003358/0.003358, allocations: 67.89 kB / 473.3 MB, free: 6.41 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3738/0.3772, allocations: 59.6 MB / 0.5204 GB, free: 10.1 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.03217/0.4093, allocations: 23.5 MB / 0.5434 GB, free: 1.441 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001059/0.4104, allocations: 426.3 kB / 0.5438 GB, free: 1.133 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001594/0.4105, allocations: 13.12 kB / 0.5438 GB, free: 1.129 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.743e-05/0.4106, allocations: 46.5 kB / 0.5438 GB, free: 1.102 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003118/0.411, allocations: 141.3 kB / 0.544 GB, free: 1.004 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001875/0.4111, allocations: 89.06 kB / 0.544 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003683/0.4115, allocations: 424.2 kB / 0.5445 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002719/0.4118, allocations: 216.4 kB / 0.5447 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002225/0.412, allocations: 206.9 kB / 0.5449 GB, free: 0.5 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000207/0.4122, allocations: 185.6 kB / 0.545 GB, free: 360 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.595e-05/0.4122, allocations: 28 kB / 0.5451 GB, free: 332 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001098/0.4124, allocations: 60.11 kB / 0.5451 GB, free: 280 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.244e-05/0.4124, allocations: 73.53 kB / 0.5452 GB, free: 220 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001028/0.4125, allocations: 182.8 kB / 0.5454 GB, free: 48 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004699/0.413, allocations: 407.7 kB / 0.5457 GB, free: 15.77 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.413, allocations: 0 / 0.5457 GB, free: 15.77 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.413, allocations: 0 / 0.5457 GB, free: 15.77 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.115e-05/0.413, allocations: 4 kB / 0.5458 GB, free: 15.77 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.001021/0.414, allocations: 0.5597 MB / 0.5463 GB, free: 15.21 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.673e-05/0.414, allocations: 12.92 kB / 0.5463 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.737e-05/0.4141, allocations: 59.8 kB / 0.5464 GB, free: 15.14 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.761e-05/0.4142, allocations: 40.7 kB / 0.5464 GB, free: 15.1 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003909/0.4146, allocations: 255.9 kB / 0.5467 GB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.673e-05/0.4146, allocations: 20.88 kB / 0.5467 GB, free: 14.83 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.103e-05/0.4146, allocations: 25.03 kB / 0.5467 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004742/0.4151, allocations: 282.8 kB / 0.547 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.4151, allocations: 3.938 kB / 0.547 GB, free: 14.56 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.69e-05/0.4152, allocations: 11.94 kB / 0.547 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/0.4152, allocations: 4 kB / 0.547 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003871/0.4156, allocations: 208 kB / 0.5472 GB, free: 14.37 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001417/0.417, allocations: 0.8601 MB / 0.548 GB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003472/0.4173, allocations: 153.5 kB / 0.5482 GB, free: 13.45 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002154/0.4175, allocations: 96.77 kB / 0.5483 GB, free: 13.36 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.27e-05/0.4176, allocations: 8.562 kB / 0.5483 GB, free: 13.35 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.31e-05/0.4176, allocations: 35.3 kB / 0.5483 GB, free: 13.31 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002925/0.4179, allocations: 46.03 kB / 0.5483 GB, free: 13.27 MB / 398.1 MB Notification: Performance of pre-optimization done (n=18): time 1.503e-06/0.4179, allocations: 4 kB / 0.5484 GB, free: 13.27 MB / 398.1 MB Notification: Performance of matching and sorting (n=18): time 0.001359/0.4193, allocations: 372.6 kB / 0.5487 GB, free: 12.95 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.456e-05/0.4193, allocations: 59.41 kB / 0.5488 GB, free: 12.88 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003254/0.4196, allocations: 290.9 kB / 0.549 GB, free: 12.61 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.204e-05/0.4197, allocations: 33.7 kB / 0.5491 GB, free: 12.57 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001488/0.4198, allocations: 193.3 kB / 0.5493 GB, free: 12.39 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.215e-05/0.4199, allocations: 68.88 kB / 0.5493 GB, free: 12.33 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.22e-05/0.42, allocations: 49.17 kB / 0.5494 GB, free: 12.29 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.4201, allocations: 340.4 kB / 0.5497 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000136/0.4203, allocations: 64.16 kB / 0.5498 GB, free: 11.9 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001457/0.4204, allocations: 84.31 kB / 0.5498 GB, free: 11.82 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004016/0.4244, allocations: 0.7012 MB / 0.5505 GB, free: 11.31 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.458e-06/0.4244, allocations: 4 kB / 0.5505 GB, free: 11.3 MB / 398.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0008271/0.4253, allocations: 308.9 kB / 0.5508 GB, free: 11.03 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/0.4253, allocations: 8 kB / 0.5508 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.4253, allocations: 0.8906 kB / 0.5508 GB, free: 11.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007722/0.426, allocations: 103 kB / 0.5509 GB, free: 10.94 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002657/0.4263, allocations: 48.98 kB / 0.551 GB, free: 10.9 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004847/0.4268, allocations: 0.577 MB / 0.5515 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001636/0.427, allocations: 12.86 kB / 0.5515 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.081e-05/0.427, allocations: 6.672 kB / 0.5516 GB, free: 10.29 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.0002274/0.4272, allocations: 143.8 kB / 0.5517 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.66e-05/0.4273, allocations: 27.81 kB / 0.5517 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009149/0.4282, allocations: 359.4 kB / 0.5521 GB, free: 9.809 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.4282, allocations: 4 kB / 0.5521 GB, free: 9.805 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.4282, allocations: 0 / 0.5521 GB, free: 9.805 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.4282, allocations: 1.312 kB / 0.5521 GB, free: 9.805 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001421/0.4296, allocations: 0.7038 MB / 0.5528 GB, free: 9.145 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.4296, allocations: 3.938 kB / 0.5528 GB, free: 9.141 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002566/0.4299, allocations: 50.42 kB / 0.5528 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005515/0.4304, allocations: 96.25 kB / 0.5529 GB, free: 9.023 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.603e-05/0.4305, allocations: 8.75 kB / 0.5529 GB, free: 9.016 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004717/0.4309, allocations: 0.5887 MB / 0.5535 GB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.4309, allocations: 0.7031 kB / 0.5535 GB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000971/0.4319, allocations: 0.5219 MB / 0.554 GB, free: 7.902 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.875e-05/0.432, allocations: 25.86 kB / 0.554 GB, free: 7.879 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.677e-05/0.432, allocations: 12.81 kB / 0.554 GB, free: 7.867 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001658/0.4322, allocations: 8.609 kB / 0.554 GB, free: 7.859 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.653e-05/0.4322, allocations: 24.97 kB / 0.5541 GB, free: 7.844 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.936e-05/0.4323, allocations: 9.312 kB / 0.5541 GB, free: 7.836 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002466/0.4325, allocations: 214.3 kB / 0.5543 GB, free: 7.652 MB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4325, allocations: 0 / 0.5543 GB, free: 7.652 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003377/0.4329, allocations: 72.69 kB / 0.5543 GB, free: 7.582 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.001228/0.4341, allocations: 1.024 MB / 0.5553 GB, free: 6.555 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005957/0.4347, allocations: 190.1 kB / 0.5555 GB, free: 6.391 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.4347, allocations: 4.125 kB / 0.5555 GB, free: 6.387 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002558/0.4349, allocations: 109 kB / 0.5556 GB, free: 6.293 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004206/0.4354, allocations: 61.09 kB / 0.5557 GB, free: 6.242 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004692/0.44, allocations: 2.99 MB / 0.5586 GB, free: 3.367 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004443/0.4405, allocations: 0.7812 MB / 0.5594 GB, free: 2.598 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001749/0.4407, allocations: 43.98 kB / 0.5594 GB, free: 2.566 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001902/0.4409, allocations: 120.5 kB / 0.5595 GB, free: 2.461 MB / 398.1 MB Notification: Performance of SimCode: time 6.52e-07/0.4409, allocations: 4 kB / 0.5595 GB, free: 2.457 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0395/0.4804, allocations: 7.486 MB / 0.5668 GB, free: 11.63 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.29/13.77, allocations: 8.875 kB / 0.5669 GB, free: 11.62 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 & /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.490014360984787] Failed to read output from testmodel.py, exit status != 0: 13.890449828002602 13.915284695 13.498141764 Calling exit ...