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.001112/0.001112, allocations: 76.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.0009757/0.0009757, allocations: 165.6 kB / 23.23 MB, free: 1.336 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.8914/0.8914, 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.06173/0.06173, allocations: 18.12 MB / 278.1 MB, free: 11.54 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_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: Performance of FrontEnd - loaded program: time 2.053e-06/2.053e-06, allocations: 0 / 415.1 MB, free: 12.68 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.865e-05/3.071e-05, allocations: 2.281 kB / 415.1 MB, free: 12.67 MB / 330.7 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.02289/0.02292, allocations: 23.35 MB / 438.4 MB, free: 15.73 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009177/0.02384, allocations: 225.7 kB / 438.6 MB, free: 15.54 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001655/0.024, allocations: 15.88 kB / 438.6 MB, free: 15.52 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 8.49e-05/0.02409, allocations: 26.11 kB / 438.7 MB, free: 15.5 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002497/0.02434, allocations: 106.4 kB / 438.8 MB, free: 15.42 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000156/0.02449, allocations: 45.7 kB / 438.8 MB, free: 15.39 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002469/0.02474, allocations: 314.1 kB / 439.1 MB, free: 15.11 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002395/0.02498, allocations: 125.2 kB / 439.3 MB, free: 15.02 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001925/0.02517, allocations: 125 kB / 439.4 MB, free: 14.91 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001156/0.02529, allocations: 74.38 kB / 439.4 MB, free: 14.85 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 3.297e-05/0.02532, allocations: 16 kB / 439.5 MB, free: 14.84 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.186e-05/0.02534, allocations: 12 kB / 439.5 MB, free: 14.82 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 3.749e-05/0.02538, allocations: 38.33 kB / 439.5 MB, free: 14.79 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 6.718e-05/0.02545, allocations: 81.91 kB / 439.6 MB, free: 14.72 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002915/0.02574, allocations: 221.4 kB / 439.8 MB, free: 14.57 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.02574, allocations: 0 / 439.8 MB, free: 14.57 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.02575, allocations: 0 / 439.8 MB, free: 14.57 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.654e-06/0.02575, allocations: 3.938 kB / 439.8 MB, free: 14.57 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0006916/0.02644, allocations: 461 kB / 440.3 MB, free: 14.1 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.598e-05/0.0265, allocations: 9.719 kB / 440.3 MB, free: 14.09 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.759e-05/0.02655, allocations: 46.17 kB / 440.3 MB, free: 14.04 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.81e-05/0.0266, allocations: 28.8 kB / 440.3 MB, free: 14.02 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000326/0.02692, allocations: 214.4 kB / 440.6 MB, free: 13.8 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.15e-05/0.02694, allocations: 9.875 kB / 440.6 MB, free: 13.79 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.254e-05/0.02698, allocations: 20.38 kB / 440.6 MB, free: 13.77 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000314/0.02729, allocations: 191.3 kB / 440.8 MB, free: 13.59 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/0.02731, allocations: 4.125 kB / 440.8 MB, free: 13.59 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.509e-05/0.02732, allocations: 4.984 kB / 440.8 MB, free: 13.58 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.724e-06/0.02733, allocations: 16.12 kB / 440.8 MB, free: 13.57 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000205/0.02753, allocations: 118.7 kB / 440.9 MB, free: 13.47 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007441/0.02828, allocations: 0.7738 MB / 441.7 MB, free: 12.69 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001501/0.02843, allocations: 79 kB / 441.8 MB, free: 12.61 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.27e-05/0.02851, allocations: 55.23 kB / 441.8 MB, free: 12.56 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.28e-05/0.02852, allocations: 0 / 441.8 MB, free: 12.56 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.226e-05/0.02855, allocations: 35.41 kB / 441.9 MB, free: 12.52 MB / 346.7 MB Notification: Performance of pre-optimization done (n=14): time 1.142e-06/0.02855, allocations: 0 / 441.9 MB, free: 12.52 MB / 346.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003423/0.02889, allocations: 187.1 kB / 442 MB, free: 12.35 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.315e-05/0.02892, allocations: 55.97 kB / 442.1 MB, free: 12.28 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000164/0.02909, allocations: 224.5 kB / 442.3 MB, free: 12.08 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.33e-05/0.0291, allocations: 29.7 kB / 442.3 MB, free: 12.04 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.398e-05/0.02918, allocations: 148.7 kB / 442.5 MB, free: 11.9 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.287e-05/0.02922, allocations: 55.25 kB / 442.5 MB, free: 11.85 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.314e-05/0.02926, allocations: 27.78 kB / 442.6 MB, free: 11.82 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.555e-05/0.02935, allocations: 330.1 kB / 442.9 MB, free: 11.49 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.559e-05/0.02943, allocations: 37.95 kB / 442.9 MB, free: 11.46 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.392e-05/0.02951, allocations: 70.3 kB / 443 MB, free: 11.39 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005122/0.03003, allocations: 225.6 kB / 443.2 MB, free: 11.2 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.03003, allocations: 3.938 kB / 443.2 MB, free: 11.19 MB / 346.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000217/0.03025, allocations: 169.6 kB / 443.4 MB, free: 11.03 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.03027, allocations: 8.844 kB / 443.4 MB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.413e-06/0.03028, allocations: 0 / 443.4 MB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.03029, allocations: 0 / 443.4 MB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001286/0.03042, allocations: 41 kB / 443.4 MB, free: 10.99 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.03042, allocations: 4 kB / 443.4 MB, free: 10.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.389e-05/0.03049, allocations: 14 kB / 443.4 MB, free: 10.97 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.307e-06/0.0305, allocations: 8 kB / 443.5 MB, free: 10.96 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: 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.0001626/0.03066, allocations: 132.5 kB / 443.6 MB, free: 10.83 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.715e-05/0.03069, allocations: 27.8 kB / 443.6 MB, free: 10.8 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.601e-05/0.03072, allocations: 28.58 kB / 443.6 MB, free: 10.78 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.03073, allocations: 8.656 kB / 443.6 MB, free: 10.77 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.03073, allocations: 0 / 443.6 MB, free: 10.77 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.03074, allocations: 4.688 kB / 443.7 MB, free: 10.77 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002252/0.03096, allocations: 224.1 kB / 443.9 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.03096, allocations: 8 kB / 443.9 MB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001268/0.03109, allocations: 29.39 kB / 443.9 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.836e-06/0.03109, allocations: 0 / 443.9 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.105e-05/0.0311, allocations: 4 kB / 443.9 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.955e-06/0.03111, allocations: 0.6094 kB / 443.9 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.03111, allocations: 4 kB / 443.9 MB, free: 10.48 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003566/0.03147, allocations: 294.4 kB / 444.2 MB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.167e-05/0.0315, allocations: 21.77 kB / 444.2 MB, free: 10.18 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.815e-05/0.03152, allocations: 4.062 kB / 444.2 MB, free: 10.18 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.437e-05/0.03158, allocations: 9.828 kB / 444.2 MB, free: 10.17 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.077e-05/0.03163, allocations: 9.766 kB / 444.2 MB, free: 10.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.297e-06/0.03164, allocations: 8.609 kB / 444.3 MB, free: 10.16 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001263/0.03177, allocations: 164.7 kB / 444.4 MB, free: 10.01 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.03177, allocations: 0 / 444.4 MB, free: 10.01 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001932/0.03196, allocations: 47.89 kB / 444.5 MB, free: 9.965 MB / 346.7 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.0004994/0.03246, allocations: 0.8414 MB / 445.3 MB, free: 9.117 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002028/0.03266, allocations: 108 kB / 445.4 MB, free: 9.027 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.03267, allocations: 0 / 445.4 MB, free: 9.027 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.358e-05/0.03275, allocations: 55.12 kB / 445.5 MB, free: 8.98 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002633/0.03301, allocations: 56.91 kB / 445.5 MB, free: 8.934 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002061/0.03507, allocations: 2.226 MB / 447.7 MB, free: 6.75 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.62e-05/0.03517, allocations: 129.9 kB / 447.9 MB, free: 6.625 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000104/0.03527, allocations: 33.19 kB / 447.9 MB, free: 6.602 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.139e-05/0.03536, allocations: 73.84 kB / 448 MB, free: 6.531 MB / 346.7 MB Notification: Performance of SimCode: time 5.91e-07/0.03536, allocations: 0 / 448 MB, free: 6.531 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0206/0.05596, allocations: 5.539 MB / 453.5 MB, free: 2.25 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.742/6.798, allocations: 7.781 kB / 453.5 MB, free: 2.246 MB / 346.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_001_fmu --startTime=0 --stopTime=5000 --stepSize=50 --timeout=50 --tolerance=1e-06 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: 8.70856664981693] Failed to read output from testmodel.py, exit status != 0: 6.8802410652861 6.894248293 6.866676999 Calling exit ...