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/AES main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1301/0.1301, allocations: 21.44 MB / 36.39 MB, free: 1.23 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001584/0.001584, allocations: 174.4 kB / 42.62 MB, free: 3.969 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.782/1.782, allocations: 205.4 MB / 254.1 MB, free: 15.26 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008871/0.0008868, allocations: 93 kB / 307.8 MB, free: 11.09 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003801/0.0003804, allocations: 7.312 kB / 373.2 MB, free: 59.18 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09364/0.09404, allocations: 52.96 MB / 426.2 MB, free: 13.17 MB / 298.7 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.001945/0.09604, allocations: 2.004 MB / 428.2 MB, free: 11.15 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003666/0.09642, allocations: 271.2 kB / 428.5 MB, free: 10.88 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001174/0.09655, allocations: 11.94 kB / 428.5 MB, free: 10.87 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 5.095e-05/0.09661, allocations: 23.77 kB / 428.5 MB, free: 10.85 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002084/0.09682, allocations: 131.6 kB / 428.6 MB, free: 10.72 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00013/0.09696, allocations: 27.97 kB / 428.6 MB, free: 10.69 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001736/0.09714, allocations: 195.5 kB / 428.8 MB, free: 10.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002377/0.09739, allocations: 124.5 kB / 429 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000214/0.09761, allocations: 135.5 kB / 429.1 MB, free: 10.24 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001329/0.09776, allocations: 87.56 kB / 429.2 MB, free: 10.16 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.837e-05/0.09779, allocations: 8 kB / 429.2 MB, free: 10.15 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.974e-05/0.09783, allocations: 8 kB / 429.2 MB, free: 10.14 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.305e-05/0.09786, allocations: 31.84 kB / 429.2 MB, free: 10.11 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.07e-05/0.0979, allocations: 69.58 kB / 429.3 MB, free: 10.04 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001706/0.09808, allocations: 155.6 kB / 429.4 MB, free: 9.883 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.09809, allocations: 0 / 429.4 MB, free: 9.883 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.0981, allocations: 0 / 429.4 MB, free: 9.883 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.78e-06/0.09811, allocations: 0 / 429.4 MB, free: 9.883 MB / 298.7 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.0005441/0.09866, allocations: 494.6 kB / 429.9 MB, free: 9.352 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.457e-05/0.09871, allocations: 12.02 kB / 429.9 MB, free: 9.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.621e-05/0.09876, allocations: 23.72 kB / 430 MB, free: 9.316 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002352/0.099, allocations: 262.1 kB / 430.2 MB, free: 9.02 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.95e-05/0.09903, allocations: 16.28 kB / 430.2 MB, free: 9.004 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.665e-05/0.09906, allocations: 19.94 kB / 430.2 MB, free: 8.984 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002828/0.09935, allocations: 196.1 kB / 430.4 MB, free: 8.773 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.09937, allocations: 0 / 430.4 MB, free: 8.773 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.618e-05/0.09939, allocations: 8 kB / 430.4 MB, free: 8.766 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.853e-06/0.0994, allocations: 4 kB / 430.5 MB, free: 8.762 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002528/0.09966, allocations: 119.9 kB / 430.6 MB, free: 8.645 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006828/0.1004, allocations: 0.8444 MB / 431.4 MB, free: 7.734 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001552/0.1005, allocations: 86.47 kB / 431.5 MB, free: 7.641 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.172e-05/0.1005, allocations: 4 kB / 431.5 MB, free: 7.637 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.244e-05/0.1006, allocations: 38.55 kB / 431.5 MB, free: 7.59 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.303e-06/0.1006, allocations: 0 / 431.5 MB, free: 7.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003986/0.101, allocations: 180.2 kB / 431.7 MB, free: 7.41 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.318e-05/0.101, allocations: 59.34 kB / 431.8 MB, free: 7.34 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001433/0.1012, allocations: 225 kB / 432 MB, free: 7.113 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.057e-05/0.1012, allocations: 33.7 kB / 432 MB, free: 7.074 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.635e-05/0.1012, allocations: 140.2 kB / 432.2 MB, free: 6.93 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.521e-05/0.1013, allocations: 55.2 kB / 432.2 MB, free: 6.875 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.111e-06/0.1013, allocations: 3.938 kB / 432.2 MB, free: 6.871 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.512e-05/0.1013, allocations: 334.8 kB / 432.5 MB, free: 6.535 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001014/0.1014, allocations: 35.98 kB / 432.6 MB, free: 6.5 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001063/0.1015, allocations: 68.73 kB / 432.6 MB, free: 6.426 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001121/0.1017, allocations: 43.98 kB / 432.7 MB, free: 6.383 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1017, allocations: 0 / 432.7 MB, free: 6.383 MB / 298.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002776/0.102, allocations: 165.8 kB / 432.9 MB, free: 6.215 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.102, allocations: 8 kB / 432.9 MB, free: 6.207 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.102, allocations: 0 / 432.9 MB, free: 6.207 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.102, allocations: 64 / 432.9 MB, free: 6.207 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001882/0.1022, allocations: 43.91 kB / 432.9 MB, free: 6.164 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.1022, allocations: 0 / 432.9 MB, free: 6.164 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.819e-05/0.1023, allocations: 19.84 kB / 432.9 MB, free: 6.145 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.428e-06/0.1023, allocations: 11.94 kB / 432.9 MB, free: 6.133 MB / 298.7 MB Warning: Assuming fixed start value for the following 2 variables: HE.Tco:VARIABLE(min = 0.0 start = 299.958408982322 unit = "K" fixed = true nominal = 300.0 ) type: Real HE.Tho:VARIABLE(min = 0.0 start = 339.5666268514094 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000154/0.1025, allocations: 141.7 kB / 433.1 MB, free: 5.984 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.519e-05/0.1025, allocations: 23.72 kB / 433.1 MB, free: 5.961 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.36e-05/0.1026, allocations: 21.84 kB / 433.1 MB, free: 5.945 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.1026, allocations: 3.938 kB / 433.1 MB, free: 5.941 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.1026, allocations: 4 kB / 433.1 MB, free: 5.938 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.1026, allocations: 3.984 kB / 433.1 MB, free: 5.934 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000197/0.1028, allocations: 261.5 kB / 433.4 MB, free: 5.629 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.1028, allocations: 0 / 433.4 MB, free: 5.629 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001835/0.103, allocations: 31.97 kB / 433.4 MB, free: 5.598 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.103, allocations: 4 kB / 433.4 MB, free: 5.594 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.154e-05/0.103, allocations: 4 kB / 433.4 MB, free: 5.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.1031, allocations: 0 / 433.4 MB, free: 5.59 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1031, allocations: 0 / 433.4 MB, free: 5.59 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003797/0.1034, allocations: 295.4 kB / 433.7 MB, free: 5.285 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.711e-05/0.1035, allocations: 96.91 kB / 433.8 MB, free: 5.172 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.904e-05/0.1035, allocations: 0 / 433.8 MB, free: 5.172 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000114/0.1036, allocations: 16.05 kB / 433.8 MB, free: 5.156 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.877e-05/0.1037, allocations: 11.98 kB / 433.8 MB, free: 5.145 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.633e-06/0.1037, allocations: 4 kB / 433.8 MB, free: 5.141 MB / 298.7 MB Notification: Performance of sorting global known variables: time 9.169e-05/0.1038, allocations: 164.5 kB / 434 MB, free: 4.98 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1038, allocations: 0 / 434 MB, free: 4.98 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002506/0.1041, allocations: 47.84 kB / 434 MB, free: 4.934 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 7.61e-05/0.1042, allocations: 104 kB / 434.1 MB, free: 4.82 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002602/0.1044, allocations: 115.8 kB / 434.3 MB, free: 4.707 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1044, allocations: 0 / 434.3 MB, free: 4.707 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001077/0.1045, allocations: 60.53 kB / 434.3 MB, free: 4.648 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002513/0.1048, allocations: 48.47 kB / 434.4 MB, free: 4.598 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008304/0.1056, allocations: 0.6602 MB / 435 MB, free: 3.906 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001437/0.1058, allocations: 0.7443 MB / 435.8 MB, free: 3.137 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001553/0.106, allocations: 26.3 kB / 435.8 MB, free: 3.109 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.302e-05/0.106, allocations: 23.44 kB / 435.8 MB, free: 3.09 MB / 298.7 MB Notification: Performance of SimCode: time 2.91e-07/0.106, allocations: 0 / 435.8 MB, free: 3.09 MB / 298.7 MB Notification: Performance of Templates: time 0.004051/0.1101, allocations: 2.083 MB / 437.9 MB, free: 1.004 MB / 298.7 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 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe 2>&1)