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.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.001396/0.001396, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001586/0.001586, allocations: 217 kB / 23.04 MB, free: 5.074 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.5/1.5, allocations: 230.6 MB / 256.8 MB, free: 7.953 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.1041/0.1041, allocations: 22.94 MB / 336.2 MB, free: 12.59 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_002,fileNamePrefix="AES_AES_Coursework_ThermSys_component_models_HeatExchanger_1vol_case_002",fmuType="cs",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="cs",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.002312/0.002312, allocations: 59.91 kB / 472.3 MB, free: 7.977 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3622/0.3645, allocations: 59.29 MB / 0.5191 GB, free: 10.62 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.00357/0.3681, allocations: 2.604 MB / 0.5217 GB, free: 8.887 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007402/0.3688, allocations: 370.7 kB / 0.522 GB, free: 8.633 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001418/0.369, allocations: 16.97 kB / 0.522 GB, free: 8.625 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 8.877e-05/0.3691, allocations: 38.56 kB / 0.5221 GB, free: 8.602 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002902/0.3694, allocations: 123.7 kB / 0.5222 GB, free: 8.516 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002587/0.3696, allocations: 75.97 kB / 0.5222 GB, free: 8.473 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003511/0.37, allocations: 358.1 kB / 0.5226 GB, free: 8.293 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002922/0.3703, allocations: 150.1 kB / 0.5227 GB, free: 8.227 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002301/0.3705, allocations: 165.7 kB / 0.5229 GB, free: 8.156 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001919/0.3707, allocations: 122.4 kB / 0.523 GB, free: 8.098 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.876e-05/0.3707, allocations: 19.09 kB / 0.523 GB, free: 8.098 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001298/0.3709, allocations: 45.86 kB / 0.5231 GB, free: 8.094 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.384e-05/0.3709, allocations: 54.11 kB / 0.5231 GB, free: 8.055 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001217/0.371, allocations: 143.6 kB / 0.5233 GB, free: 7.973 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003814/0.3714, allocations: 300.2 kB / 0.5235 GB, free: 7.859 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.3714, allocations: 0 / 0.5235 GB, free: 7.859 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3714, allocations: 4 kB / 0.5235 GB, free: 7.855 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.792e-06/0.3714, allocations: 0.875 kB / 0.5236 GB, free: 7.855 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.0007264/0.3721, allocations: 0.5014 MB / 0.524 GB, free: 7.441 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.231e-05/0.3722, allocations: 10.73 kB / 0.5241 GB, free: 7.441 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.006e-05/0.3722, allocations: 9.125 kB / 0.5241 GB, free: 7.438 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.125e-05/0.3722, allocations: 52.72 kB / 0.5241 GB, free: 7.387 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.461e-05/0.3723, allocations: 31.31 kB / 0.5241 GB, free: 7.371 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003659/0.3727, allocations: 229.4 kB / 0.5244 GB, free: 7.184 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.858e-05/0.3727, allocations: 20.31 kB / 0.5244 GB, free: 7.172 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.927e-05/0.3727, allocations: 15.78 kB / 0.5244 GB, free: 7.168 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003366/0.3731, allocations: 212.4 kB / 0.5246 GB, free: 7.039 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.3731, allocations: 1.094 kB / 0.5246 GB, free: 7.039 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.023e-05/0.3731, allocations: 13.55 kB / 0.5246 GB, free: 7.027 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.896e-06/0.3731, allocations: 5.562 kB / 0.5246 GB, free: 7.027 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002396/0.3733, allocations: 120.5 kB / 0.5247 GB, free: 6.988 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008677/0.3742, allocations: 0.7959 MB / 0.5255 GB, free: 6.348 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000224/0.3744, allocations: 90.78 kB / 0.5256 GB, free: 6.297 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.265e-05/0.3745, allocations: 42.77 kB / 0.5256 GB, free: 6.273 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.825e-05/0.3745, allocations: 5.312 kB / 0.5256 GB, free: 6.27 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.567e-05/0.3745, allocations: 35.69 kB / 0.5257 GB, free: 6.23 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.052e-06/0.3745, allocations: 0 / 0.5257 GB, free: 6.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003169/0.3749, allocations: 144.3 kB / 0.5258 GB, free: 6.152 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.075e-05/0.3749, allocations: 52.84 kB / 0.5259 GB, free: 6.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002393/0.3751, allocations: 295.7 kB / 0.5261 GB, free: 5.922 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.401e-05/0.3751, allocations: 27.02 kB / 0.5262 GB, free: 5.891 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.07e-05/0.3752, allocations: 180.7 kB / 0.5263 GB, free: 5.734 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.088e-05/0.3752, allocations: 39.89 kB / 0.5264 GB, free: 5.703 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.42e-05/0.3753, allocations: 36.81 kB / 0.5264 GB, free: 5.676 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.337e-05/0.3753, allocations: 332 kB / 0.5267 GB, free: 5.355 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.428e-05/0.3754, allocations: 38.86 kB / 0.5268 GB, free: 5.34 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.905e-05/0.3755, allocations: 56.91 kB / 0.5268 GB, free: 5.301 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001133/0.3766, allocations: 256.1 kB / 0.5271 GB, free: 5.207 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.3766, allocations: 0 / 0.5271 GB, free: 5.207 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002491/0.3769, allocations: 168.7 kB / 0.5272 GB, free: 5.117 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.3769, allocations: 9.656 kB / 0.5272 GB, free: 5.117 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.3769, allocations: 5.094 kB / 0.5272 GB, free: 5.113 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.728e-05/0.3769, allocations: 1.094 kB / 0.5272 GB, free: 5.113 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002002/0.3771, allocations: 36.95 kB / 0.5273 GB, free: 5.109 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.722e-06/0.3771, allocations: 10.28 kB / 0.5273 GB, free: 5.102 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001168/0.3772, allocations: 16.31 kB / 0.5273 GB, free: 5.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.266e-05/0.3773, allocations: 13.17 kB / 0.5273 GB, free: 5.082 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.0001486/0.3774, allocations: 135.6 kB / 0.5274 GB, free: 4.953 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.533e-05/0.3774, allocations: 23.64 kB / 0.5275 GB, free: 4.941 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002732/0.3777, allocations: 168.2 kB / 0.5276 GB, free: 4.848 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.3777, allocations: 9.219 kB / 0.5276 GB, free: 4.844 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.3777, allocations: 3.938 kB / 0.5276 GB, free: 4.84 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.3777, allocations: 4.438 kB / 0.5276 GB, free: 4.84 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002536/0.378, allocations: 241.4 kB / 0.5279 GB, free: 4.645 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.378, allocations: 5.312 kB / 0.5279 GB, free: 4.641 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001775/0.3782, allocations: 28.5 kB / 0.5279 GB, free: 4.641 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.005e-06/0.3782, allocations: 1 kB / 0.5279 GB, free: 4.641 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.407e-05/0.3782, allocations: 9.469 kB / 0.5279 GB, free: 4.633 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.993e-06/0.3782, allocations: 1.375 kB / 0.5279 GB, free: 4.633 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3782, allocations: 0 / 0.5279 GB, free: 4.633 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003053/0.3785, allocations: 276.1 kB / 0.5282 GB, free: 4.438 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.235e-05/0.3785, allocations: 37.34 kB / 0.5282 GB, free: 4.41 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.788e-05/0.3786, allocations: 5.438 kB / 0.5282 GB, free: 4.406 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001209/0.3787, allocations: 5.219 kB / 0.5282 GB, free: 4.402 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.178e-05/0.3787, allocations: 8.234 kB / 0.5282 GB, free: 4.402 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.095e-06/0.3787, allocations: 2.219 kB / 0.5282 GB, free: 4.402 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001628/0.3789, allocations: 211.6 kB / 0.5284 GB, free: 4.289 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3789, allocations: 0 / 0.5284 GB, free: 4.289 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002965/0.3792, allocations: 57.95 kB / 0.5285 GB, free: 4.277 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.0004485/0.3796, allocations: 0.8209 MB / 0.5293 GB, free: 3.543 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002146/0.3799, allocations: 96.73 kB / 0.5294 GB, free: 3.512 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.3799, allocations: 0 / 0.5294 GB, free: 3.512 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 7.575e-05/0.3799, allocations: 42.2 kB / 0.5294 GB, free: 3.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003735/0.3803, allocations: 59.8 kB / 0.5295 GB, free: 3.473 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002581/0.3829, allocations: 2.504 MB / 0.5319 GB, free: 1.742 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000181/0.3831, allocations: 0.7571 MB / 0.5327 GB, free: 1.039 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001366/0.3832, allocations: 41.81 kB / 0.5327 GB, free: 1.023 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001074/0.3833, allocations: 93.89 kB / 0.5328 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3833, allocations: 0 / 0.5328 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02825/0.4116, allocations: 5.713 MB / 0.5384 GB, free: 204 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.77, allocations: 17.06 kB / 0.5384 GB, free: 192 kB / 382.1 MB " [Timeout remaining time 648] (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: 14.589866297028493] Failed to read output from testmodel.py, exit status != 0: 11.94001343700802 11.963311113 11.587174063 Calling exit ...