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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) 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: translateModel(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001") translateModel(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001159/0.001159, allocations: 105.2 kB / 15.98 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 197 kB / 16.91 MB, free: 6.188 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.219/1.219, allocations: 222.9 MB / 240.6 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08604/0.08604, allocations: 22.33 MB / 313.1 MB, free: 9.145 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001393/0.001393, allocations: 65.38 kB / 380.9 MB, free: 41.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0801/0.08152, allocations: 54.96 MB / 435.9 MB, free: 13.54 MB / 318.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.03007/0.1116, allocations: 22.08 MB / 458 MB, free: 7.602 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006717/0.1123, allocations: 243 kB / 458.2 MB, free: 7.363 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002322/0.1126, allocations: 15.94 kB / 458.2 MB, free: 7.348 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.975e-05/0.1127, allocations: 27.83 kB / 458.2 MB, free: 7.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002439/0.1129, allocations: 87.3 kB / 458.3 MB, free: 7.234 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001405/0.1131, allocations: 31.97 kB / 458.4 MB, free: 7.203 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003022/0.1134, allocations: 286.7 kB / 458.6 MB, free: 6.922 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002509/0.1136, allocations: 145.3 kB / 458.8 MB, free: 6.781 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001953/0.1138, allocations: 127.3 kB / 458.9 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000138/0.114, allocations: 103.5 kB / 459 MB, free: 6.555 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.835e-05/0.114, allocations: 12 kB / 459 MB, free: 6.543 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.231e-05/0.1141, allocations: 16 kB / 459 MB, free: 6.527 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.441e-05/0.1141, allocations: 39.78 kB / 459.1 MB, free: 6.488 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.907e-05/0.1142, allocations: 111.4 kB / 459.2 MB, free: 6.379 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001889/0.1144, allocations: 167.6 kB / 459.3 MB, free: 6.215 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1144, allocations: 0 / 459.3 MB, free: 6.215 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.1144, allocations: 0 / 459.3 MB, free: 6.215 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.962e-06/0.1144, allocations: 0 / 459.3 MB, free: 6.215 MB / 334.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.0006923/0.1151, allocations: 0.515 MB / 459.9 MB, free: 5.648 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/0.1152, allocations: 12.03 kB / 459.9 MB, free: 5.637 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.372e-05/0.1152, allocations: 24.66 kB / 459.9 MB, free: 5.613 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002796/0.1155, allocations: 271.4 kB / 460.2 MB, free: 5.309 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.791e-05/0.1155, allocations: 12.64 kB / 460.2 MB, free: 5.297 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.566e-05/0.1156, allocations: 16.38 kB / 460.2 MB, free: 5.281 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003568/0.116, allocations: 192.7 kB / 460.4 MB, free: 5.074 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.116, allocations: 4.188 kB / 460.4 MB, free: 5.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.008e-05/0.116, allocations: 11.94 kB / 460.4 MB, free: 5.059 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.603e-06/0.116, allocations: 4 kB / 460.4 MB, free: 5.055 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000278/0.1163, allocations: 127.8 kB / 460.5 MB, free: 4.93 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008395/0.1171, allocations: 0.8444 MB / 461.4 MB, free: 4.02 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001692/0.1173, allocations: 84.86 kB / 461.4 MB, free: 3.93 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001547/0.1175, allocations: 61.08 kB / 461.5 MB, free: 3.867 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.487e-05/0.1175, allocations: 8 kB / 461.5 MB, free: 3.859 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.817e-05/0.1175, allocations: 38.56 kB / 461.5 MB, free: 3.812 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.383e-06/0.1176, allocations: 0 / 461.5 MB, free: 3.812 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004446/0.118, allocations: 173.3 kB / 461.7 MB, free: 3.637 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.692e-05/0.118, allocations: 55.41 kB / 461.8 MB, free: 3.57 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002008/0.1183, allocations: 225 kB / 462 MB, free: 3.344 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.827e-05/0.1183, allocations: 33.7 kB / 462 MB, free: 3.305 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.452e-05/0.1184, allocations: 144.1 kB / 462.2 MB, free: 3.156 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.207e-05/0.1184, allocations: 55.28 kB / 462.2 MB, free: 3.102 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.116e-05/0.1185, allocations: 37.64 kB / 462.3 MB, free: 3.059 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.1186, allocations: 338.8 kB / 462.6 MB, free: 2.719 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001123/0.1187, allocations: 35.98 kB / 462.6 MB, free: 2.684 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001165/0.1189, allocations: 62.55 kB / 462.7 MB, free: 2.613 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007394/0.1196, allocations: 230.3 kB / 462.9 MB, free: 2.379 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1196, allocations: 0 / 462.9 MB, free: 2.379 MB / 334.1 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003113/0.1199, allocations: 168.1 kB / 463.1 MB, free: 2.211 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.203e-05/0.12, allocations: 4 kB / 463.1 MB, free: 2.207 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.12, allocations: 64 / 463.1 MB, free: 2.207 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.215e-05/0.12, allocations: 8 kB / 463.1 MB, free: 2.199 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000191/0.1202, allocations: 39.91 kB / 463.1 MB, free: 2.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.1202, allocations: 3.984 kB / 463.1 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.653e-05/0.1203, allocations: 11.84 kB / 463.1 MB, free: 2.145 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.213e-05/0.1203, allocations: 8 kB / 463.1 MB, free: 2.137 MB / 334.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.0001553/0.1205, allocations: 144.9 kB / 463.3 MB, free: 1.988 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.779e-05/0.1205, allocations: 19.72 kB / 463.3 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.629e-05/0.1206, allocations: 25.84 kB / 463.3 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.1206, allocations: 0 / 463.3 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.1206, allocations: 3.984 kB / 463.3 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.1206, allocations: 0 / 463.3 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002359/0.1208, allocations: 261.4 kB / 463.6 MB, free: 1.637 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-06/0.1208, allocations: 3.984 kB / 463.6 MB, free: 1.633 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001985/0.1211, allocations: 31.92 kB / 463.6 MB, free: 1.602 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.1211, allocations: 4 kB / 463.6 MB, free: 1.598 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.259e-05/0.1211, allocations: 4 kB / 463.6 MB, free: 1.594 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.1211, allocations: 4 kB / 463.6 MB, free: 1.59 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1211, allocations: 0 / 463.6 MB, free: 1.59 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004449/0.1215, allocations: 291.3 kB / 463.9 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.354e-05/0.1216, allocations: 96.77 kB / 464 MB, free: 1.176 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.154e-05/0.1216, allocations: 16 kB / 464 MB, free: 1.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001182/0.1218, allocations: 7.984 kB / 464 MB, free: 1.152 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.74e-05/0.1218, allocations: 15.92 kB / 464.1 MB, free: 1.137 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.638e-06/0.1218, allocations: 4 kB / 464.1 MB, free: 1.133 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001155/0.122, allocations: 168.4 kB / 464.2 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.122, allocations: 0 / 464.2 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002431/0.1222, allocations: 40 kB / 464.3 MB, free: 0.9297 MB / 334.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 9.081e-05/0.1223, allocations: 99.25 kB / 464.4 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002947/0.1226, allocations: 119.9 kB / 464.5 MB, free: 0.707 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.1226, allocations: 0 / 464.5 MB, free: 0.707 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001282/0.1228, allocations: 59.91 kB / 464.5 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003196/0.1231, allocations: 52.41 kB / 464.6 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009748/0.1241, allocations: 0.6501 MB / 465.2 MB, free: 15.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002701/0.1244, allocations: 0.7401 MB / 466 MB, free: 15.14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.749e-05/0.1244, allocations: 23.44 kB / 466 MB, free: 15.12 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1244, allocations: 0 / 466 MB, free: 15.12 MB / 350.1 MB Notification: Performance of Templates: time 0.003912/0.1283, allocations: 2.614 MB / 468.6 MB, free: 12.52 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.makefile (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 & ./AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe 2>&1)