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.001449/0.001449, allocations: 108.3 kB / 19.73 MB, free: 1.898 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.00152/0.00152, allocations: 211.3 kB / 23.01 MB, free: 4.992 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.466/1.466, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.1101/0.1101, allocations: 24.04 MB / 337.2 MB, free: 11.34 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="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: 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.002398/0.002398, allocations: 67.91 kB / 473.8 MB, free: 6.391 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3216/0.324, allocations: 59.58 MB / 0.5209 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_002): time 0.003369/0.3274, allocations: 2.417 MB / 0.5233 GB, free: 8.5 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008496/0.3282, allocations: 351.1 kB / 0.5236 GB, free: 8.258 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001713/0.3284, allocations: 15.72 kB / 0.5236 GB, free: 8.25 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 9.559e-05/0.3285, allocations: 38.8 kB / 0.5237 GB, free: 8.227 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003029/0.3288, allocations: 124.3 kB / 0.5238 GB, free: 8.141 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002601/0.329, allocations: 76.25 kB / 0.5238 GB, free: 8.098 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003285/0.3294, allocations: 356.7 kB / 0.5242 GB, free: 7.918 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002717/0.3296, allocations: 150.4 kB / 0.5243 GB, free: 7.852 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002341/0.3299, allocations: 158.6 kB / 0.5245 GB, free: 7.789 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001731/0.33, allocations: 118.4 kB / 0.5246 GB, free: 7.734 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.585e-05/0.3301, allocations: 17.91 kB / 0.5246 GB, free: 7.734 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001193/0.3302, allocations: 47.03 kB / 0.5247 GB, free: 7.73 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 4.094e-05/0.3302, allocations: 50.62 kB / 0.5247 GB, free: 7.695 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001065/0.3303, allocations: 118.9 kB / 0.5248 GB, free: 7.637 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003189/0.3307, allocations: 301.9 kB / 0.5251 GB, free: 7.523 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3307, allocations: 5.719 kB / 0.5251 GB, free: 7.52 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3307, allocations: 0 / 0.5251 GB, free: 7.52 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.611e-06/0.3307, allocations: 0 / 0.5251 GB, free: 7.52 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.0007108/0.3314, allocations: 0.4997 MB / 0.5256 GB, free: 7.105 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.663e-05/0.3314, allocations: 10.27 kB / 0.5256 GB, free: 7.105 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.372e-05/0.3315, allocations: 60.41 kB / 0.5257 GB, free: 7.047 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.445e-05/0.3315, allocations: 31.98 kB / 0.5257 GB, free: 7.031 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003614/0.3319, allocations: 225.6 kB / 0.5259 GB, free: 6.848 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.528e-05/0.3319, allocations: 19.41 kB / 0.5259 GB, free: 6.836 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.805e-05/0.3319, allocations: 16.66 kB / 0.5259 GB, free: 6.832 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000337/0.3323, allocations: 202 kB / 0.5261 GB, free: 6.715 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/0.3323, allocations: 4.453 kB / 0.5261 GB, free: 6.711 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.961e-05/0.3323, allocations: 18.56 kB / 0.5262 GB, free: 6.695 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.3323, allocations: 3.781 kB / 0.5262 GB, free: 6.695 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002467/0.3326, allocations: 116.7 kB / 0.5263 GB, free: 6.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009769/0.3335, allocations: 0.7611 MB / 0.527 GB, free: 6.023 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002644/0.3338, allocations: 87.69 kB / 0.5271 GB, free: 5.977 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.411e-05/0.3339, allocations: 42.06 kB / 0.5271 GB, free: 5.953 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.287e-05/0.3339, allocations: 6.672 kB / 0.5271 GB, free: 5.949 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.737e-05/0.3339, allocations: 35.78 kB / 0.5272 GB, free: 5.906 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.312e-06/0.3339, allocations: 1.188 kB / 0.5272 GB, free: 5.906 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003709/0.3343, allocations: 149.3 kB / 0.5273 GB, free: 5.824 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.718e-05/0.3343, allocations: 53.88 kB / 0.5274 GB, free: 5.762 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000315/0.3347, allocations: 291.5 kB / 0.5277 GB, free: 5.598 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.363e-05/0.3347, allocations: 29.7 kB / 0.5277 GB, free: 5.562 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.3348, allocations: 174 kB / 0.5279 GB, free: 5.414 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.739e-05/0.3348, allocations: 39.73 kB / 0.5279 GB, free: 5.383 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.553e-05/0.3349, allocations: 35.45 kB / 0.5279 GB, free: 5.355 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.245e-05/0.3349, allocations: 338.4 kB / 0.5282 GB, free: 5.031 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.012e-05/0.335, allocations: 38.39 kB / 0.5283 GB, free: 5.016 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001014/0.3351, allocations: 59.56 kB / 0.5283 GB, free: 4.977 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001286/0.3364, allocations: 258.9 kB / 0.5286 GB, free: 4.879 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.3364, allocations: 0 / 0.5286 GB, free: 4.879 MB / 382.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003412/0.3368, allocations: 165.3 kB / 0.5287 GB, free: 4.797 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.3368, allocations: 4.406 kB / 0.5287 GB, free: 4.797 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.3368, allocations: 1.281 kB / 0.5287 GB, free: 4.797 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.3368, allocations: 10.31 kB / 0.5288 GB, free: 4.789 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002159/0.337, allocations: 38.02 kB / 0.5288 GB, free: 4.785 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.337, allocations: 1.156 kB / 0.5288 GB, free: 4.785 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001704/0.3372, allocations: 30.69 kB / 0.5288 GB, free: 4.762 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.493e-05/0.3372, allocations: 4.188 kB / 0.5288 GB, free: 4.762 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.0001845/0.3374, allocations: 144 kB / 0.529 GB, free: 4.625 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.45e-05/0.3374, allocations: 28.19 kB / 0.529 GB, free: 4.609 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002914/0.3377, allocations: 160.2 kB / 0.5291 GB, free: 4.523 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.3377, allocations: 1.375 kB / 0.5291 GB, free: 4.523 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.3377, allocations: 5.156 kB / 0.5292 GB, free: 4.52 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.559e-06/0.3377, allocations: 7.984 kB / 0.5292 GB, free: 4.512 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002488/0.338, allocations: 232.1 kB / 0.5294 GB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.338, allocations: 0 / 0.5294 GB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001814/0.3382, allocations: 27.81 kB / 0.5294 GB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.3382, allocations: 0 / 0.5294 GB, free: 4.316 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.3382, allocations: 9.281 kB / 0.5294 GB, free: 4.309 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.544e-06/0.3382, allocations: 3.203 kB / 0.5294 GB, free: 4.309 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.684e-06/0.3382, allocations: 3.938 kB / 0.5294 GB, free: 4.305 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002962/0.3385, allocations: 276.5 kB / 0.5297 GB, free: 4.113 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.537e-05/0.3385, allocations: 28.52 kB / 0.5297 GB, free: 4.094 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.889e-05/0.3386, allocations: 7.266 kB / 0.5297 GB, free: 4.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001229/0.3387, allocations: 9.156 kB / 0.5297 GB, free: 4.082 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.826e-05/0.3387, allocations: 8.391 kB / 0.5297 GB, free: 4.082 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.674e-06/0.3387, allocations: 2.281 kB / 0.5297 GB, free: 4.082 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001564/0.3389, allocations: 212.1 kB / 0.5299 GB, free: 3.965 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3389, allocations: 0 / 0.5299 GB, free: 3.965 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003144/0.3392, allocations: 57.73 kB / 0.53 GB, free: 3.953 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.0004642/0.3397, allocations: 0.8059 MB / 0.5308 GB, free: 3.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002497/0.3399, allocations: 99.81 kB / 0.5309 GB, free: 3.195 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.3399, allocations: 1.531 kB / 0.5309 GB, free: 3.195 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.767e-05/0.34, allocations: 46.64 kB / 0.5309 GB, free: 3.18 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003963/0.3404, allocations: 56.91 kB / 0.531 GB, free: 3.156 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003032/0.3435, allocations: 2.51 MB / 0.5334 GB, free: 1.418 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001741/0.3436, allocations: 144.3 kB / 0.5336 GB, free: 1.336 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001978/0.3438, allocations: 41.11 kB / 0.5336 GB, free: 1.32 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000139/0.344, allocations: 90.66 kB / 0.5337 GB, free: 1.254 MB / 382.1 MB Notification: Performance of SimCode: time 1.222e-06/0.344, allocations: 0 / 0.5337 GB, free: 1.254 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03744/0.3814, allocations: 6.348 MB / 0.5399 GB, free: 15.84 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.76, allocations: 6.625 kB / 0.5399 GB, free: 15.84 MB / 398.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.393421429209411] Failed to read output from testmodel.py, exit status != 0: 11.875355202239007 11.890271042 11.555389689 Calling exit ...