Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.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_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003") translateModel(AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006966/0.006966, allocations: 103.1 kB / 15.73 MB, free: 6.047 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.00139/0.00139, allocations: 193.5 kB / 16.67 MB, free: 5.969 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.339/1.339, allocations: 222.9 MB / 240.3 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1087/0.1087, allocations: 22.33 MB / 312.8 MB, free: 8.875 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001366, allocations: 55.91 kB / 437 MB, free: 11.75 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1294, allocations: 54.97 MB / 492 MB, free: 4.742 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Liquid/HE_LiquidLiquid_1vol.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/Liquid/HE_LiquidLiquid_1vol.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_003): time 0.4895/0.6189, allocations: 22.25 MB / 0.5022 GB, free: 5.746 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001416/0.6203, allocations: 419.3 kB / 0.5026 GB, free: 5.742 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001881/0.6205, allocations: 12 kB / 0.5026 GB, free: 5.742 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001137/0.6206, allocations: 44.69 kB / 0.5026 GB, free: 5.742 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003982/0.6211, allocations: 139 kB / 0.5028 GB, free: 5.742 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002287/0.6213, allocations: 86.64 kB / 0.5029 GB, free: 5.742 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003794/0.6217, allocations: 425.1 kB / 0.5033 GB, free: 5.641 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003733/0.6221, allocations: 243.2 kB / 0.5035 GB, free: 5.629 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000231/0.6223, allocations: 195.3 kB / 0.5037 GB, free: 5.594 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002179/0.6225, allocations: 186.3 kB / 0.5039 GB, free: 5.551 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.24e-05/0.6226, allocations: 30.75 kB / 0.5039 GB, free: 5.551 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001451/0.6227, allocations: 59.47 kB / 0.5039 GB, free: 5.551 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.909e-05/0.6228, allocations: 68.22 kB / 0.504 GB, free: 5.539 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001777/0.623, allocations: 177 kB / 0.5042 GB, free: 5.488 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005762/0.6236, allocations: 403.3 kB / 0.5046 GB, free: 5.414 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.685e-06/0.6236, allocations: 1.125 kB / 0.5046 GB, free: 5.414 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.046e-06/0.6236, allocations: 2.656 kB / 0.5046 GB, free: 5.414 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.917e-06/0.6236, allocations: 0.75 kB / 0.5046 GB, free: 5.414 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: 57 * Number of variables: 57 Notification: Performance of Generate backend data structure: time 0.001154/0.6248, allocations: 0.6386 MB / 0.5052 GB, free: 4.93 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.408e-05/0.6249, allocations: 10.7 kB / 0.5052 GB, free: 4.93 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.283e-05/0.6249, allocations: 38.56 kB / 0.5052 GB, free: 4.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004469/0.6254, allocations: 317.6 kB / 0.5055 GB, free: 4.676 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.85e-05/0.6254, allocations: 18.31 kB / 0.5056 GB, free: 4.676 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.225e-05/0.6255, allocations: 26.41 kB / 0.5056 GB, free: 4.676 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005053/0.626, allocations: 275.3 kB / 0.5058 GB, free: 4.609 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.427e-05/0.626, allocations: 3 kB / 0.5058 GB, free: 4.609 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.45e-05/0.6261, allocations: 14.88 kB / 0.5059 GB, free: 4.605 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.6261, allocations: 5.719 kB / 0.5059 GB, free: 4.605 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003678/0.6265, allocations: 192.4 kB / 0.5061 GB, free: 4.602 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00139/0.6279, allocations: 0.899 MB / 0.5069 GB, free: 4.113 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004069/0.6283, allocations: 168.6 kB / 0.5071 GB, free: 4.082 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00022/0.6285, allocations: 98.7 kB / 0.5072 GB, free: 4.074 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.417e-05/0.6286, allocations: 8.469 kB / 0.5072 GB, free: 4.074 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.97e-05/0.6286, allocations: 41.78 kB / 0.5072 GB, free: 4.031 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001994/0.6288, allocations: 32.33 kB / 0.5073 GB, free: 4.023 MB / 382.1 MB Notification: Performance of pre-optimization done (n=18): time 1.552e-06/0.6288, allocations: 3.594 kB / 0.5073 GB, free: 4.023 MB / 382.1 MB Notification: Performance of matching and sorting (n=18): time 0.001327/0.6301, allocations: 446.3 kB / 0.5077 GB, free: 3.867 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.395e-05/0.6302, allocations: 57.83 kB / 0.5077 GB, free: 3.805 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000294/0.6305, allocations: 295.4 kB / 0.508 GB, free: 3.695 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.942e-05/0.6305, allocations: 29.52 kB / 0.5081 GB, free: 3.664 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001185/0.6306, allocations: 183.4 kB / 0.5082 GB, free: 3.555 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.856e-05/0.6307, allocations: 62.22 kB / 0.5083 GB, free: 3.516 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.961e-05/0.6308, allocations: 51.52 kB / 0.5083 GB, free: 3.5 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.131e-05/0.6309, allocations: 344.9 kB / 0.5087 GB, free: 3.184 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00014/0.631, allocations: 62.52 kB / 0.5087 GB, free: 3.184 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001512/0.6312, allocations: 88.52 kB / 0.5088 GB, free: 3.164 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004075/0.6352, allocations: 0.6891 MB / 0.5095 GB, free: 3.148 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.6353, allocations: 1.75 kB / 0.5095 GB, free: 3.148 MB / 382.1 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0007919/0.6361, allocations: 310.1 kB / 0.5098 GB, free: 3.082 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.093e-05/0.6361, allocations: 5.406 kB / 0.5098 GB, free: 3.082 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.6361, allocations: 5.281 kB / 0.5098 GB, free: 3.078 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007661/0.6369, allocations: 110.9 kB / 0.5099 GB, free: 3.066 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002443/0.6371, allocations: 43.95 kB / 0.5099 GB, free: 3.066 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003593/0.6375, allocations: 0.584 MB / 0.5105 GB, free: 2.539 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001704/0.6377, allocations: 5.859 kB / 0.5105 GB, free: 2.539 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.241e-05/0.6377, allocations: 7.609 kB / 0.5105 GB, free: 2.539 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: 2 * 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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.000194/0.6379, allocations: 148.3 kB / 0.5107 GB, free: 2.422 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.315e-05/0.638, allocations: 29.94 kB / 0.5107 GB, free: 2.406 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009075/0.6389, allocations: 367.1 kB / 0.511 GB, free: 2.336 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.6389, allocations: 2.281 kB / 0.511 GB, free: 2.336 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.6389, allocations: 1.156 kB / 0.511 GB, free: 2.336 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.6389, allocations: 1.781 kB / 0.511 GB, free: 2.336 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001304/0.6402, allocations: 0.732 MB / 0.5118 GB, free: 1.996 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.487e-06/0.6403, allocations: 1.531 kB / 0.5118 GB, free: 1.996 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002529/0.6405, allocations: 39.33 kB / 0.5118 GB, free: 1.996 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005418/0.6411, allocations: 100.5 kB / 0.5119 GB, free: 1.988 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.51e-05/0.6411, allocations: 8.016 kB / 0.5119 GB, free: 1.988 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003009/0.6414, allocations: 0.5914 MB / 0.5125 GB, free: 1.461 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.6414, allocations: 0 / 0.5125 GB, free: 1.461 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009/0.6423, allocations: 0.5066 MB / 0.513 GB, free: 1.277 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.578e-05/0.6424, allocations: 111.4 kB / 0.5131 GB, free: 1.164 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.964e-05/0.6425, allocations: 9.219 kB / 0.5131 GB, free: 1.164 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001624/0.6426, allocations: 5.953 kB / 0.5131 GB, free: 1.164 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.724e-05/0.6427, allocations: 19.64 kB / 0.5131 GB, free: 1.16 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.009e-05/0.6427, allocations: 14.62 kB / 0.5131 GB, free: 1.156 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000209/0.643, allocations: 215.2 kB / 0.5133 GB, free: 1.074 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.643, allocations: 0 / 0.5133 GB, free: 1.074 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003556/0.6433, allocations: 72.53 kB / 0.5134 GB, free: 1.07 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (21): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001506/0.6435, allocations: 106.5 kB / 0.5135 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005216/0.644, allocations: 196.3 kB / 0.5137 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.644, allocations: 2.656 kB / 0.5137 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002567/0.6443, allocations: 128.4 kB / 0.5138 GB, free: 0.957 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004524/0.6447, allocations: 79.03 kB / 0.5139 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001113/0.6459, allocations: 0.689 MB / 0.5146 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002845/0.6462, allocations: 0.7741 MB / 0.5153 GB, free: 15.93 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001609/0.6463, allocations: 47.11 kB / 0.5154 GB, free: 15.93 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.127e-05/0.6464, allocations: 33.25 kB / 0.5154 GB, free: 15.92 MB / 398.1 MB Notification: Performance of SimCode: time 3.91e-07/0.6464, allocations: 2.656 kB / 0.5154 GB, free: 15.92 MB / 398.1 MB Notification: Performance of Templates: time 0.01081/0.6572, allocations: 4.244 MB / 0.5195 GB, free: 15.55 MB / 398.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.sim & ./AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.HeatExchanger_1vol_case_003.pipe 2>&1)