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.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.001228/0.001228, allocations: 105.8 kB / 16.45 MB, free: 6.508 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.00123/0.00123, allocations: 200.5 kB / 19.41 MB, free: 3.664 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.364/1.364, 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.09633/0.09633, allocations: 22.69 MB / 325.4 MB, free: 3.535 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_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 0.001989/0.001989, allocations: 71.89 kB / 457.2 MB, free: 1.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.111, allocations: 58.02 MB / 0.5031 GB, free: 7.641 MB / 382.1 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.3992/0.5102, allocations: 22.82 MB / 0.5254 GB, free: 6.297 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007085/0.5109, allocations: 214.2 kB / 0.5256 GB, free: 6.262 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001317/0.511, allocations: 12.5 kB / 0.5256 GB, free: 6.258 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 7.295e-05/0.5111, allocations: 35.36 kB / 0.5257 GB, free: 6.234 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002237/0.5113, allocations: 103.7 kB / 0.5258 GB, free: 6.195 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001337/0.5115, allocations: 38.45 kB / 0.5258 GB, free: 6.195 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000256/0.5117, allocations: 291.1 kB / 0.5261 GB, free: 6.121 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002165/0.5119, allocations: 123.8 kB / 0.5262 GB, free: 6.113 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001746/0.5121, allocations: 139.5 kB / 0.5263 GB, free: 6.086 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001369/0.5122, allocations: 100.5 kB / 0.5264 GB, free: 6.059 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.993e-05/0.5123, allocations: 15.53 kB / 0.5264 GB, free: 6.059 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.484e-05/0.5123, allocations: 13.91 kB / 0.5264 GB, free: 6.059 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.285e-05/0.5123, allocations: 36.7 kB / 0.5265 GB, free: 6.051 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.351e-05/0.5124, allocations: 112.3 kB / 0.5266 GB, free: 6.012 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002242/0.5127, allocations: 230.9 kB / 0.5268 GB, free: 5.961 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.5127, allocations: 0 / 0.5268 GB, free: 5.961 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.5127, allocations: 0 / 0.5268 GB, free: 5.961 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.5127, allocations: 4 kB / 0.5268 GB, free: 5.957 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0006291/0.5133, allocations: 0.5184 MB / 0.5273 GB, free: 5.512 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.5133, allocations: 10.67 kB / 0.5273 GB, free: 5.512 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.598e-05/0.5134, allocations: 47.3 kB / 0.5274 GB, free: 5.473 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.016e-05/0.5134, allocations: 24.14 kB / 0.5274 GB, free: 5.461 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002797/0.5137, allocations: 281.6 kB / 0.5277 GB, free: 5.223 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.625e-05/0.5137, allocations: 15.89 kB / 0.5277 GB, free: 5.223 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.319e-05/0.5138, allocations: 14.66 kB / 0.5277 GB, free: 5.223 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003179/0.5141, allocations: 190.2 kB / 0.5279 GB, free: 5.148 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.5141, allocations: 10.58 kB / 0.5279 GB, free: 5.141 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.723e-05/0.5141, allocations: 10.42 kB / 0.5279 GB, free: 5.137 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/0.5141, allocations: 4.625 kB / 0.5279 GB, free: 5.137 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002758/0.5144, allocations: 116.9 kB / 0.528 GB, free: 5.133 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007715/0.5152, allocations: 0.8483 MB / 0.5288 GB, free: 4.492 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001841/0.5153, allocations: 81.05 kB / 0.5289 GB, free: 4.461 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001281/0.5155, allocations: 57.31 kB / 0.529 GB, free: 4.449 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.217e-05/0.5155, allocations: 1.781 kB / 0.529 GB, free: 4.449 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.561e-05/0.5155, allocations: 31.91 kB / 0.529 GB, free: 4.41 MB / 382.1 MB Notification: Performance of pre-optimization done (n=14): time 1.212e-06/0.5155, allocations: 0 / 0.529 GB, free: 4.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004592/0.516, allocations: 172.8 kB / 0.5292 GB, free: 4.371 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.141e-05/0.516, allocations: 55.02 kB / 0.5292 GB, free: 4.309 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001988/0.5162, allocations: 237.5 kB / 0.5294 GB, free: 4.191 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.303e-05/0.5162, allocations: 30.2 kB / 0.5295 GB, free: 4.16 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.161e-05/0.5163, allocations: 145.1 kB / 0.5296 GB, free: 4.059 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.169e-05/0.5163, allocations: 51.03 kB / 0.5297 GB, free: 4.027 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.88e-05/0.5163, allocations: 39.61 kB / 0.5297 GB, free: 4.004 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.345e-05/0.5164, allocations: 333 kB / 0.53 GB, free: 3.688 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001161/0.5165, allocations: 39.12 kB / 0.5301 GB, free: 3.688 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001177/0.5166, allocations: 69.14 kB / 0.5301 GB, free: 3.66 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007552/0.5174, allocations: 236.5 kB / 0.5303 GB, free: 3.613 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.5174, allocations: 0 / 0.5303 GB, free: 3.613 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002964/0.5177, allocations: 164.3 kB / 0.5305 GB, free: 3.566 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.5177, allocations: 4.531 kB / 0.5305 GB, free: 3.566 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.5177, allocations: 1.188 kB / 0.5305 GB, free: 3.566 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.511e-05/0.5177, allocations: 6.938 kB / 0.5305 GB, free: 3.562 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001962/0.5179, allocations: 32.2 kB / 0.5305 GB, free: 3.562 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.073e-06/0.5179, allocations: 1.062 kB / 0.5305 GB, free: 3.562 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.826e-05/0.518, allocations: 18.3 kB / 0.5306 GB, free: 3.555 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.084e-05/0.518, allocations: 3.969 kB / 0.5306 GB, free: 3.555 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.0001541/0.5182, allocations: 145.8 kB / 0.5307 GB, free: 3.426 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.325e-05/0.5182, allocations: 21.64 kB / 0.5307 GB, free: 3.414 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.109e-05/0.5183, allocations: 28.5 kB / 0.5308 GB, free: 3.406 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.5183, allocations: 2.438 kB / 0.5308 GB, free: 3.406 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.5183, allocations: 3.938 kB / 0.5308 GB, free: 3.402 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.5183, allocations: 2.391 kB / 0.5308 GB, free: 3.402 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002354/0.5185, allocations: 255 kB / 0.531 GB, free: 3.211 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.5185, allocations: 0 / 0.531 GB, free: 3.211 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001944/0.5187, allocations: 33.36 kB / 0.531 GB, free: 3.211 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.5187, allocations: 5.344 kB / 0.531 GB, free: 3.207 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.202e-05/0.5188, allocations: 1.281 kB / 0.531 GB, free: 3.207 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.5188, allocations: 1.828 kB / 0.531 GB, free: 3.207 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.5188, allocations: 3.938 kB / 0.531 GB, free: 3.203 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004077/0.5192, allocations: 295 kB / 0.5313 GB, free: 3.059 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.139e-05/0.5192, allocations: 105.2 kB / 0.5314 GB, free: 2.949 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.835e-05/0.5192, allocations: 5.219 kB / 0.5314 GB, free: 2.945 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001154/0.5193, allocations: 7.016 kB / 0.5314 GB, free: 2.945 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.626e-05/0.5194, allocations: 10.08 kB / 0.5314 GB, free: 2.945 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.574e-06/0.5194, allocations: 6.688 kB / 0.5315 GB, free: 2.945 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001177/0.5195, allocations: 164.8 kB / 0.5316 GB, free: 2.867 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.5195, allocations: 0 / 0.5316 GB, free: 2.867 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002562/0.5198, allocations: 44.61 kB / 0.5317 GB, free: 2.863 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 (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.0005622/0.5203, allocations: 0.8372 MB / 0.5325 GB, free: 2.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002988/0.5206, allocations: 109.2 kB / 0.5326 GB, free: 2.172 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.5206, allocations: 0 / 0.5326 GB, free: 2.172 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001196/0.5208, allocations: 57.8 kB / 0.5326 GB, free: 2.164 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003282/0.5211, allocations: 53.56 kB / 0.5327 GB, free: 2.148 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00252/0.5236, allocations: 2.293 MB / 0.5349 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002959/0.5239, allocations: 0.7422 MB / 0.5356 GB, free: 15.94 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001411/0.5241, allocations: 33.47 kB / 0.5357 GB, free: 15.93 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.641e-05/0.5241, allocations: 65.23 kB / 0.5357 GB, free: 15.88 MB / 398.1 MB Notification: Performance of SimCode: time 2.8e-07/0.5241, allocations: 0 / 0.5357 GB, free: 15.88 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02812/0.5523, allocations: 4.647 MB / 0.5403 GB, free: 15.27 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.604/8.156, allocations: 20.5 kB / 0.5403 GB, free: 15.26 MB / 398.1 MB " [Timeout remaining time 652] (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: 10.587709463201463] Failed to read output from testmodel.py, exit status != 0: 8.223716157954186 8.236077702 7.720724155 Calling exit ...