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.09356/0.09356, allocations: 21.6 MB / 37.4 MB, free: 0.7383 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.001141/0.001141, allocations: 192.5 kB / 43.63 MB, free: 3.566 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.295/1.295, allocations: 205.1 MB / 254.8 MB, free: 14.24 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.0008987/0.0008987, allocations: 110.1 kB / 307.5 MB, free: 11.36 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 54.02 kB / 372.3 MB, free: 59.45 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07541/0.07658, allocations: 51.97 MB / 424.3 MB, free: 14.5 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.02088/0.09751, allocations: 19.27 MB / 443.6 MB, free: 11.15 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006308/0.09816, allocations: 254.9 kB / 443.8 MB, free: 10.9 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001397/0.09831, allocations: 15.94 kB / 443.8 MB, free: 10.89 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 8.268e-05/0.0984, allocations: 19.83 kB / 443.9 MB, free: 10.87 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002157/0.09862, allocations: 79.39 kB / 443.9 MB, free: 10.79 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001255/0.09876, allocations: 39.91 kB / 444 MB, free: 10.75 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.000245/0.09901, allocations: 290.5 kB / 444.3 MB, free: 10.46 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002026/0.09922, allocations: 129 kB / 444.4 MB, free: 10.34 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001615/0.09939, allocations: 123.4 kB / 444.5 MB, free: 10.21 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001287/0.09953, allocations: 103.5 kB / 444.6 MB, free: 10.11 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 2.697e-05/0.09956, allocations: 8 kB / 444.6 MB, free: 10.11 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.435e-05/0.0996, allocations: 12 kB / 444.6 MB, free: 10.09 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 3.762e-05/0.09965, allocations: 31.8 kB / 444.7 MB, free: 10.06 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001078/0.09976, allocations: 111.4 kB / 444.8 MB, free: 9.953 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002137/0.09998, allocations: 219.2 kB / 445 MB, free: 9.738 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.441e-06/0.09999, allocations: 3.984 kB / 445 MB, free: 9.734 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1, allocations: 4 kB / 445 MB, free: 9.73 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.208e-06/0.1, allocations: 0 / 445 MB, free: 9.73 MB / 314.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.0006864/0.1007, allocations: 0.5104 MB / 445.5 MB, free: 9.168 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.1007, allocations: 8.031 kB / 445.5 MB, free: 9.16 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.854e-05/0.1008, allocations: 24.66 kB / 445.5 MB, free: 9.137 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002808/0.1011, allocations: 267.2 kB / 445.8 MB, free: 8.836 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.971e-05/0.1011, allocations: 16.7 kB / 445.8 MB, free: 8.82 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.803e-05/0.1011, allocations: 20.38 kB / 445.8 MB, free: 8.801 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003158/0.1015, allocations: 192.6 kB / 446 MB, free: 8.594 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.1015, allocations: 192 / 446 MB, free: 8.594 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.962e-05/0.1015, allocations: 11.94 kB / 446 MB, free: 8.582 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.174e-06/0.1015, allocations: 4 kB / 446 MB, free: 8.578 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002802/0.1018, allocations: 123.9 kB / 446.2 MB, free: 8.457 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008172/0.1026, allocations: 0.8405 MB / 447 MB, free: 7.551 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001817/0.1028, allocations: 86.48 kB / 447.1 MB, free: 7.457 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001345/0.103, allocations: 60.83 kB / 447.1 MB, free: 7.395 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.339e-05/0.103, allocations: 0 / 447.1 MB, free: 7.395 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.898e-05/0.103, allocations: 34.56 kB / 447.2 MB, free: 7.352 MB / 314.7 MB Notification: Performance of pre-optimization done (n=14): time 2.084e-06/0.103, allocations: 0 / 447.2 MB, free: 7.352 MB / 314.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004463/0.1035, allocations: 185.5 kB / 447.4 MB, free: 7.164 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.905e-05/0.1035, allocations: 63.34 kB / 447.4 MB, free: 7.09 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001889/0.1037, allocations: 225 kB / 447.6 MB, free: 6.863 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.478e-05/0.1037, allocations: 25.7 kB / 447.7 MB, free: 6.832 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.579e-05/0.1038, allocations: 152.1 kB / 447.8 MB, free: 6.676 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.265e-05/0.1039, allocations: 43.36 kB / 447.9 MB, free: 6.633 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.724e-05/0.1039, allocations: 29.72 kB / 447.9 MB, free: 6.598 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.1041, allocations: 334.8 kB / 448.2 MB, free: 6.262 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001167/0.1042, allocations: 43.97 kB / 448.3 MB, free: 6.219 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001188/0.1043, allocations: 62.55 kB / 448.3 MB, free: 6.148 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007666/0.1051, allocations: 226.4 kB / 448.5 MB, free: 5.918 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1051, allocations: 0 / 448.5 MB, free: 5.918 MB / 314.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003153/0.1054, allocations: 165.3 kB / 448.7 MB, free: 5.75 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/0.1055, allocations: 15.92 kB / 448.7 MB, free: 5.734 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-06/0.1055, allocations: 0 / 448.7 MB, free: 5.734 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.01e-05/0.1055, allocations: 0 / 448.7 MB, free: 5.734 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001948/0.1057, allocations: 35.98 kB / 448.7 MB, free: 5.699 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.1057, allocations: 4 kB / 448.8 MB, free: 5.695 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.914e-05/0.1058, allocations: 11.84 kB / 448.8 MB, free: 5.684 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.025e-05/0.1058, allocations: 7.938 kB / 448.8 MB, free: 5.676 MB / 314.7 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.0001521/0.106, allocations: 149.7 kB / 448.9 MB, free: 5.52 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.724e-05/0.106, allocations: 19.72 kB / 448.9 MB, free: 5.5 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.832e-05/0.1061, allocations: 25.83 kB / 449 MB, free: 5.48 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.1061, allocations: 4 kB / 449 MB, free: 5.477 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.1061, allocations: 0 / 449 MB, free: 5.477 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.1061, allocations: 0 / 449 MB, free: 5.477 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002344/0.1063, allocations: 265.5 kB / 449.2 MB, free: 5.168 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.1063, allocations: 8 kB / 449.2 MB, free: 5.16 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001979/0.1066, allocations: 31.92 kB / 449.3 MB, free: 5.129 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.033e-06/0.1066, allocations: 0 / 449.3 MB, free: 5.129 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.315e-05/0.1066, allocations: 4 kB / 449.3 MB, free: 5.125 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.1066, allocations: 0 / 449.3 MB, free: 5.125 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.1066, allocations: 4 kB / 449.3 MB, free: 5.121 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002243/0.1088, allocations: 1.746 MB / 451 MB, free: 3.23 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.959e-05/0.1089, allocations: 96.8 kB / 451.1 MB, free: 3.117 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.436e-05/0.1089, allocations: 11.98 kB / 451.1 MB, free: 3.105 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001158/0.1091, allocations: 3.938 kB / 451.1 MB, free: 3.102 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.997e-05/0.1091, allocations: 11.98 kB / 451.1 MB, free: 3.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.532e-06/0.1091, allocations: 8.062 kB / 451.1 MB, free: 3.082 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001324/0.1093, allocations: 164.5 kB / 451.3 MB, free: 2.918 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1093, allocations: 0 / 451.3 MB, free: 2.918 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000336/0.1096, allocations: 64 kB / 451.4 MB, free: 2.855 MB / 314.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 (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.376e-05/0.1097, allocations: 99.25 kB / 451.5 MB, free: 2.75 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002811/0.11, allocations: 116 kB / 451.6 MB, free: 2.637 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.11, allocations: 4.125 kB / 451.6 MB, free: 2.633 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001322/0.1102, allocations: 59.92 kB / 451.6 MB, free: 2.574 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003234/0.1105, allocations: 48.41 kB / 451.7 MB, free: 2.527 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001029/0.1115, allocations: 0.7814 MB / 452.5 MB, free: 1.703 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002581/0.1118, allocations: 0.7365 MB / 453.2 MB, free: 0.9414 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001627/0.112, allocations: 34.27 kB / 453.2 MB, free: 0.9062 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.136e-05/0.112, allocations: 27.44 kB / 453.3 MB, free: 0.8789 MB / 314.7 MB Notification: Performance of SimCode: time 2.3e-07/0.112, allocations: 3.938 kB / 453.3 MB, free: 0.875 MB / 314.7 MB Notification: Performance of Templates: time 0.004931/0.117, allocations: 2.458 MB / 455.7 MB, free: 14.41 MB / 330.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 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_001.pipe 2>&1)