Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001256/0.001256, allocations: 108.3 kB / 16.45 MB, free: 6.395 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001301/0.001301, allocations: 195.7 kB / 19.41 MB, free: 3.742 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 225.6 MB / 247.8 MB, free: 13.96 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.09672/0.09672, allocations: 22.7 MB / 325.4 MB, free: 3.625 MB / 254.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001985/0.001985, allocations: 71.88 kB / 457.2 MB, free: 1.781 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1133, allocations: 58.01 MB / 0.5031 GB, free: 7.656 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.003782/0.1171, allocations: 2.584 MB / 0.5056 GB, free: 5.051 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007692/0.1178, allocations: 358.7 kB / 0.506 GB, free: 4.699 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001309/0.118, allocations: 11.94 kB / 0.506 GB, free: 4.688 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 8.998e-05/0.1181, allocations: 43.58 kB / 0.506 GB, free: 4.645 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003029/0.1184, allocations: 123 kB / 0.5061 GB, free: 4.523 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002385/0.1186, allocations: 75.84 kB / 0.5062 GB, free: 4.449 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003709/0.119, allocations: 358.2 kB / 0.5066 GB, free: 4.098 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00027/0.1192, allocations: 149.5 kB / 0.5067 GB, free: 3.949 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002117/0.1195, allocations: 151.4 kB / 0.5068 GB, free: 3.801 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001909/0.1197, allocations: 139.3 kB / 0.507 GB, free: 3.664 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.536e-05/0.1197, allocations: 20 kB / 0.507 GB, free: 3.645 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000112/0.1198, allocations: 47.97 kB / 0.507 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.835e-05/0.1198, allocations: 43.84 kB / 0.5071 GB, free: 3.555 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001327/0.12, allocations: 139.3 kB / 0.5072 GB, free: 3.418 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003744/0.1204, allocations: 310.6 kB / 0.5075 GB, free: 3.113 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.1204, allocations: 4 kB / 0.5075 GB, free: 3.109 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1204, allocations: 0 / 0.5075 GB, free: 3.109 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.287e-05/0.1204, allocations: 3.984 kB / 0.5075 GB, free: 3.105 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.0009012/0.1213, allocations: 0.5724 MB / 0.5081 GB, free: 2.477 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.1213, allocations: 12.03 kB / 0.5081 GB, free: 2.465 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.977e-05/0.1214, allocations: 50.73 kB / 0.5081 GB, free: 2.406 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.669e-05/0.1215, allocations: 32.75 kB / 0.5082 GB, free: 2.375 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004269/0.1219, allocations: 294.7 kB / 0.5085 GB, free: 2.047 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.377e-05/0.1219, allocations: 20.75 kB / 0.5085 GB, free: 2.027 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.774e-05/0.1219, allocations: 16.38 kB / 0.5085 GB, free: 2.012 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003555/0.1223, allocations: 208.6 kB / 0.5087 GB, free: 1.789 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.1223, allocations: 3.938 kB / 0.5087 GB, free: 1.785 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.214e-05/0.1223, allocations: 8 kB / 0.5087 GB, free: 1.777 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.869e-06/0.1223, allocations: 7.984 kB / 0.5087 GB, free: 1.77 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002518/0.1226, allocations: 120.9 kB / 0.5088 GB, free: 1.652 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001062/0.1237, allocations: 0.8342 MB / 0.5096 GB, free: 0.7578 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002374/0.1239, allocations: 90.73 kB / 0.5097 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.904e-05/0.124, allocations: 40.84 kB / 0.5098 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.962e-05/0.124, allocations: 4 kB / 0.5098 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.871e-05/0.124, allocations: 34.5 kB / 0.5098 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.232e-06/0.124, allocations: 0 / 0.5098 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003333/0.1244, allocations: 157.3 kB / 0.51 GB, free: 420 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.949e-05/0.1244, allocations: 55.78 kB / 0.51 GB, free: 352 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002987/0.1247, allocations: 288.5 kB / 0.5103 GB, free: 52 kB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.245e-05/0.1247, allocations: 33.7 kB / 0.5103 GB, free: 12 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2138/0.3386, allocations: 164.4 kB / 0.5105 GB, free: 15.91 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.485e-05/0.3386, allocations: 40.91 kB / 0.5105 GB, free: 15.91 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.805e-05/0.3387, allocations: 31.31 kB / 0.5105 GB, free: 15.9 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.955e-05/0.3388, allocations: 337.2 kB / 0.5109 GB, free: 15.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001117/0.3389, allocations: 34.38 kB / 0.5109 GB, free: 15.59 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000103/0.339, allocations: 59.42 kB / 0.5109 GB, free: 15.56 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001258/0.3402, allocations: 257.6 kB / 0.5112 GB, free: 15.54 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/0.3402, allocations: 1.469 kB / 0.5112 GB, free: 15.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000317/0.3406, allocations: 170.5 kB / 0.5114 GB, free: 15.49 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.3406, allocations: 5.469 kB / 0.5114 GB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-06/0.3406, allocations: 0.875 kB / 0.5114 GB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.3406, allocations: 10.22 kB / 0.5114 GB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002184/0.3408, allocations: 38.39 kB / 0.5114 GB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.184e-06/0.3408, allocations: 1.688 kB / 0.5114 GB, free: 15.49 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001257/0.341, allocations: 21.27 kB / 0.5114 GB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.272e-05/0.341, allocations: 7.875 kB / 0.5114 GB, free: 15.48 MB / 382.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: 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.0001545/0.3411, allocations: 134.6 kB / 0.5116 GB, free: 15.37 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.409e-05/0.3412, allocations: 30.09 kB / 0.5116 GB, free: 15.36 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000281/0.3414, allocations: 157.1 kB / 0.5117 GB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.3414, allocations: 1 kB / 0.5117 GB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.3415, allocations: 0 / 0.5117 GB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.3415, allocations: 3.812 kB / 0.5118 GB, free: 15.31 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002487/0.3417, allocations: 278.3 kB / 0.512 GB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.3417, allocations: 1 kB / 0.512 GB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001803/0.3419, allocations: 27.3 kB / 0.512 GB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.3419, allocations: 2.656 kB / 0.512 GB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.318e-05/0.3419, allocations: 8.812 kB / 0.5121 GB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.3419, allocations: 9.547 kB / 0.5121 GB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3419, allocations: 3.906 kB / 0.5121 GB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002868/0.3422, allocations: 274.6 kB / 0.5123 GB, free: 14.97 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.196e-05/0.3422, allocations: 101.7 kB / 0.5124 GB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.607e-05/0.3423, allocations: 9.188 kB / 0.5124 GB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001175/0.3424, allocations: 6.453 kB / 0.5124 GB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.478e-05/0.3424, allocations: 7.453 kB / 0.5124 GB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.846e-06/0.3424, allocations: 9.203 kB / 0.5125 GB, free: 14.86 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001746/0.3426, allocations: 211.3 kB / 0.5127 GB, free: 14.77 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3426, allocations: 0 / 0.5127 GB, free: 14.77 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002952/0.3429, allocations: 56.7 kB / 0.5127 GB, free: 14.77 MB / 382.1 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 (13): * Single equations (assignments): 13 * 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.0004674/0.3434, allocations: 0.8198 MB / 0.5135 GB, free: 14.09 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001968/0.3436, allocations: 92.09 kB / 0.5136 GB, free: 14.09 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.3436, allocations: 0 / 0.5136 GB, free: 14.09 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 6.896e-05/0.3436, allocations: 49.72 kB / 0.5136 GB, free: 14.09 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003495/0.344, allocations: 56.94 kB / 0.5137 GB, free: 14.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002252/0.3462, allocations: 2.514 MB / 0.5162 GB, free: 12.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001612/0.3464, allocations: 0.7534 MB / 0.5169 GB, free: 11.96 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001231/0.3465, allocations: 40.36 kB / 0.5169 GB, free: 11.95 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.957e-05/0.3466, allocations: 87.91 kB / 0.517 GB, free: 11.94 MB / 382.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3466, allocations: 0 / 0.517 GB, free: 11.94 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02763/0.3743, allocations: 5.51 MB / 0.5224 GB, free: 11.36 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.749/8.123, allocations: 20.23 kB / 0.5224 GB, free: 11.35 MB / 382.1 MB " [Timeout remaining time 652] (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002_fmu --startTime=0 --stopTime=1500 --stepSize=3 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002.fmu > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.583061078097671] Failed to read output from testmodel.py, exit status != 0: 8.195354551076889 8.213795712 8.090220043 Calling exit ...