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.0009437/0.0009437, allocations: 72.52 kB / 19.95 MB, free: 4.613 MB / 18.57 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.0008123/0.0008123, allocations: 169.6 kB / 23.23 MB, free: 1.332 MB / 18.57 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 0.883/0.883, allocations: 177.1 MB / 203.5 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] 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.05974/0.05974, allocations: 18.13 MB / 278.1 MB, free: 11.53 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.542e-06/1.542e-06, allocations: 0 / 415.1 MB, free: 12.65 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.544e-05/1.698e-05, allocations: 3.344 kB / 415.1 MB, free: 12.65 MB / 330.7 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.01765/0.01766, allocations: 23.74 MB / 438.8 MB, free: 15.33 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001086/0.01875, allocations: 407 kB / 439.2 MB, free: 14.98 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001478/0.0189, allocations: 19.94 kB / 439.2 MB, free: 14.96 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 8.621e-05/0.01898, allocations: 42.98 kB / 439.3 MB, free: 14.93 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003349/0.01932, allocations: 160.5 kB / 439.4 MB, free: 14.8 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002145/0.01953, allocations: 85.03 kB / 439.5 MB, free: 14.74 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003256/0.01986, allocations: 440.2 kB / 439.9 MB, free: 14.34 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002608/0.02012, allocations: 210.7 kB / 440.1 MB, free: 14.2 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002092/0.02033, allocations: 188 kB / 440.3 MB, free: 14.04 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001694/0.0205, allocations: 141.8 kB / 440.5 MB, free: 13.93 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.338e-05/0.02053, allocations: 28 kB / 440.5 MB, free: 13.9 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.491e-05/0.02062, allocations: 56.16 kB / 440.5 MB, free: 13.86 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 4.753e-05/0.02066, allocations: 80.66 kB / 440.6 MB, free: 13.79 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 9.173e-05/0.02075, allocations: 120 kB / 440.7 MB, free: 13.68 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003991/0.02115, allocations: 425.7 kB / 441.1 MB, free: 13.4 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.02116, allocations: 4.75 kB / 441.1 MB, free: 13.4 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.02116, allocations: 0 / 441.1 MB, free: 13.4 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.02117, allocations: 0 / 441.1 MB, free: 13.4 MB / 346.7 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.0006893/0.02186, allocations: 0.5554 MB / 441.7 MB, free: 12.85 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.02189, allocations: 16.92 kB / 441.7 MB, free: 12.83 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.065e-05/0.02195, allocations: 52.42 kB / 441.8 MB, free: 12.78 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.993e-05/0.022, allocations: 44.64 kB / 441.8 MB, free: 12.73 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003041/0.0223, allocations: 255.3 kB / 442.1 MB, free: 12.48 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.734e-05/0.02232, allocations: 20.88 kB / 442.1 MB, free: 12.46 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.357e-05/0.02235, allocations: 24.38 kB / 442.1 MB, free: 12.44 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003688/0.02272, allocations: 278.9 kB / 442.4 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.02273, allocations: 4.125 kB / 442.4 MB, free: 12.2 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.958e-05/0.02275, allocations: 12.89 kB / 442.4 MB, free: 12.19 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.004e-05/0.02276, allocations: 12.12 kB / 442.4 MB, free: 12.18 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002641/0.02302, allocations: 199.5 kB / 442.6 MB, free: 12.01 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009261/0.02395, allocations: 0.803 MB / 443.4 MB, free: 11.24 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002689/0.02422, allocations: 149.7 kB / 443.6 MB, free: 11.1 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001419/0.02436, allocations: 96.95 kB / 443.6 MB, free: 11.01 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.183e-05/0.02438, allocations: 0.7969 kB / 443.7 MB, free: 11.01 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.119e-05/0.0244, allocations: 39.27 kB / 443.7 MB, free: 10.96 MB / 346.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000154/0.02456, allocations: 45.61 kB / 443.7 MB, free: 10.93 MB / 346.7 MB Notification: Performance of pre-optimization done (n=18): time 1.122e-06/0.02456, allocations: 0 / 443.7 MB, free: 10.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=18): time 0.0008061/0.02536, allocations: 383.3 kB / 444.1 MB, free: 10.6 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.901e-05/0.02539, allocations: 55.41 kB / 444.2 MB, free: 10.53 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002177/0.02561, allocations: 303.8 kB / 444.5 MB, free: 10.26 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.969e-05/0.02563, allocations: 29.7 kB / 444.5 MB, free: 10.22 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.642e-05/0.02573, allocations: 180.6 kB / 444.7 MB, free: 10.05 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.624e-05/0.02576, allocations: 68.22 kB / 444.7 MB, free: 9.992 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.103e-05/0.02582, allocations: 49.31 kB / 444.8 MB, free: 9.945 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.02593, allocations: 344.4 kB / 445.1 MB, free: 9.609 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.397e-05/0.02602, allocations: 64.2 kB / 445.2 MB, free: 9.555 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.615e-05/0.02612, allocations: 91.81 kB / 445.3 MB, free: 9.473 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001923/0.02804, allocations: 0.6991 MB / 446 MB, free: 8.961 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.02804, allocations: 0 / 446 MB, free: 8.961 MB / 346.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004549/0.0285, allocations: 307.3 kB / 446.3 MB, free: 8.688 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.192e-05/0.02851, allocations: 8.594 kB / 446.3 MB, free: 8.68 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.02851, allocations: 7.984 kB / 446.3 MB, free: 8.672 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003488/0.02886, allocations: 103 kB / 446.4 MB, free: 8.594 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001327/0.02899, allocations: 45.89 kB / 446.4 MB, free: 8.559 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002848/0.02928, allocations: 0.5764 MB / 447 MB, free: 7.965 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.568e-05/0.02936, allocations: 8.641 kB / 447 MB, free: 7.957 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.687e-05/0.02937, allocations: 18.88 kB / 447 MB, free: 7.941 MB / 346.7 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.0001505/0.02952, allocations: 140 kB / 447.2 MB, free: 7.797 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.208e-05/0.02955, allocations: 27.81 kB / 447.2 MB, free: 7.77 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005135/0.03007, allocations: 362.3 kB / 447.5 MB, free: 7.465 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.03007, allocations: 4 kB / 447.6 MB, free: 7.461 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.03008, allocations: 0 / 447.6 MB, free: 7.461 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.03008, allocations: 1.547 kB / 447.6 MB, free: 7.461 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007352/0.03081, allocations: 0.6805 MB / 448.2 MB, free: 6.801 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.03082, allocations: 0.7031 kB / 448.2 MB, free: 6.801 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001262/0.03094, allocations: 50.22 kB / 448.3 MB, free: 6.758 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002548/0.0312, allocations: 91.8 kB / 448.4 MB, free: 6.688 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.48e-05/0.03121, allocations: 9.312 kB / 448.4 MB, free: 6.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002417/0.03145, allocations: 0.5887 MB / 449 MB, free: 6.074 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.03146, allocations: 0 / 449 MB, free: 6.074 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005259/0.03198, allocations: 0.5065 MB / 449.5 MB, free: 5.582 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.177e-05/0.03201, allocations: 29.77 kB / 449.5 MB, free: 5.555 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.834e-05/0.03204, allocations: 12.84 kB / 449.5 MB, free: 5.543 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.072e-05/0.03212, allocations: 0 / 449.5 MB, free: 5.543 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.041e-05/0.03216, allocations: 29.28 kB / 449.5 MB, free: 5.523 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.149e-05/0.03217, allocations: 13.16 kB / 449.6 MB, free: 5.512 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001439/0.03232, allocations: 214.7 kB / 449.8 MB, free: 5.324 MB / 346.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03232, allocations: 0 / 449.8 MB, free: 5.324 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002071/0.03253, allocations: 75.89 kB / 449.8 MB, free: 5.25 MB / 346.7 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.0006393/0.03316, allocations: 1.014 MB / 450.9 MB, free: 4.23 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003032/0.03347, allocations: 187 kB / 451 MB, free: 4.07 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.03347, allocations: 4 kB / 451 MB, free: 4.066 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001399/0.03361, allocations: 113 kB / 451.2 MB, free: 3.969 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002833/0.03389, allocations: 75.42 kB / 451.2 MB, free: 3.906 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002628/0.03652, allocations: 2.932 MB / 454.2 MB, free: 1.09 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001135/0.03663, allocations: 175.3 kB / 454.3 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001053/0.03674, allocations: 47.61 kB / 454.4 MB, free: 0.8984 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000124/0.03686, allocations: 125.2 kB / 454.5 MB, free: 0.7891 MB / 346.7 MB Notification: Performance of SimCode: time 5.41e-07/0.03686, allocations: 0 / 454.5 MB, free: 0.7891 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01776/0.05463, allocations: 8.052 MB / 462.6 MB, free: 9.078 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.737/7.792, allocations: 11.78 kB / 462.6 MB, free: 9.066 MB / 362.7 MB " [Timeout remaining time 652] (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: 9.703747236169875] Failed to read output from testmodel.py, exit status != 0: 7.885810922831297 7.896508213 7.87366618 Calling exit ...