Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.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.Heater_power_vs_wTin.heater_wT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT") translateModel(AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT") [/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.1072/0.1072, allocations: 21.44 MB / 36.39 MB, free: 1.18 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.001247/0.001247, allocations: 194.8 kB / 42.63 MB, free: 3.984 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.86/1.86, allocations: 205.4 MB / 254.1 MB, free: 15.21 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.0008852/0.0008852, allocations: 85.06 kB / 307.8 MB, free: 11.08 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003471/0.0003471, allocations: 8.5 kB / 373.2 MB, free: 59.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1476/0.148, allocations: 52.96 MB / 426.2 MB, free: 13.04 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3896/0.5377, allocations: 81.71 MB / 0.496 GB, free: 18 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003294/0.538, allocations: 86.98 kB / 0.4961 GB, free: 18 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowOnePort_pwh.mo:4:3-4:45:writable] Warning: No corresponding 'inner' declaration found for component .AES.ProcessComponents.Thermal.System_settings.System_liquid src.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: AES.ProcessComponents.Thermal.Liquid.Node_wT_prescribed. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowOnePort_pwh.mo:4:3-4:45:writable] Warning: No corresponding 'inner' declaration found for component .AES.ProcessComponents.Thermal.System_settings.System_liquid snk.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: AES.ProcessComponents.Thermal.Liquid.Node_pT_fixed. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowTwoPorts_pwh.mo:4:3-4:45:writable] Warning: No corresponding 'inner' declaration found for component .AES.ProcessComponents.Thermal.System_settings.System_liquid tube.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: AES.ProcessComponents.Thermal.Liquid.TubeStream$tube. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. Notification: Performance of FrontEnd - DAE generated: time 0.01575/0.5538, allocations: 5.318 MB / 0.5013 GB, free: 17.33 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.5538, allocations: 1.375 kB / 0.5013 GB, free: 17.33 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.961e-05/0.5539, allocations: 5.594 kB / 0.5013 GB, free: 17.33 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 * Number of variables: 59 Notification: Performance of Generate backend data structure: time 0.001253/0.5551, allocations: 0.668 MB / 0.5019 GB, free: 16.86 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.5552, allocations: 13.94 kB / 0.5019 GB, free: 16.85 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.224e-05/0.5553, allocations: 38.94 kB / 0.502 GB, free: 16.83 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000523/0.5558, allocations: 318.5 kB / 0.5023 GB, free: 16.61 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.537e-05/0.5559, allocations: 20.55 kB / 0.5023 GB, free: 16.6 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.534e-05/0.5559, allocations: 27.88 kB / 0.5023 GB, free: 16.6 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007459/0.5567, allocations: 384.5 kB / 0.5027 GB, free: 16.54 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/0.5567, allocations: 0 / 0.5027 GB, free: 16.54 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.855e-05/0.5567, allocations: 7.391 kB / 0.5027 GB, free: 16.54 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.5568, allocations: 4.625 kB / 0.5027 GB, free: 16.54 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007912/0.5575, allocations: 351.1 kB / 0.503 GB, free: 16.53 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001954/0.5595, allocations: 1.264 MB / 0.5043 GB, free: 15.88 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005707/0.5601, allocations: 314.6 kB / 0.5046 GB, free: 15.85 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001458/0.5603, allocations: 93.05 kB / 0.5047 GB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.288e-05/0.5603, allocations: 42.53 kB / 0.5047 GB, free: 15.7 MB / 362.7 MB Notification: Performance of pre-optimization done (n=28): time 1.513e-06/0.5603, allocations: 0 / 0.5047 GB, free: 15.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=28): time 0.002487/0.5628, allocations: 1.203 MB / 0.5059 GB, free: 15.12 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.329e-05/0.5628, allocations: 58.66 kB / 0.5059 GB, free: 15.05 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00029/0.5631, allocations: 239.9 kB / 0.5062 GB, free: 14.96 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.452e-05/0.5632, allocations: 29.02 kB / 0.5062 GB, free: 14.93 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/0.5633, allocations: 179.7 kB / 0.5064 GB, free: 14.82 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.057e-05/0.5634, allocations: 104 kB / 0.5065 GB, free: 14.75 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.959e-05/0.5634, allocations: 4.844 kB / 0.5065 GB, free: 14.75 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.066e-05/0.5635, allocations: 339.2 kB / 0.5068 GB, free: 14.44 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004134/0.5639, allocations: 188.7 kB / 0.507 GB, free: 14.43 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004146/0.5643, allocations: 182.9 kB / 0.5071 GB, free: 14.43 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000455/0.5648, allocations: 204.9 kB / 0.5073 GB, free: 14.43 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.5648, allocations: 0 / 0.5073 GB, free: 14.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.00149/0.5663, allocations: 0.594 MB / 0.5079 GB, free: 14.32 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.573e-05/0.5664, allocations: 5.625 kB / 0.5079 GB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.5664, allocations: 0 / 0.5079 GB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005996/0.567, allocations: 149.9 kB / 0.5081 GB, free: 14.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001735/0.5687, allocations: 200.4 kB / 0.5083 GB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006527/0.5753, allocations: 7.333 MB / 0.5154 GB, free: 23.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004585/0.5757, allocations: 41.34 kB / 0.5155 GB, free: 23.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.552e-05/0.5758, allocations: 13.02 kB / 0.5155 GB, free: 23.32 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (31): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002805/0.5761, allocations: 160.7 kB / 0.5156 GB, free: 23.19 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.646e-05/0.5762, allocations: 29.38 kB / 0.5157 GB, free: 23.18 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001385/0.5775, allocations: 0.5868 MB / 0.5162 GB, free: 23.08 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.5776, allocations: 2.75 kB / 0.5162 GB, free: 23.08 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.5776, allocations: 1.375 kB / 0.5162 GB, free: 23.08 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.5776, allocations: 1.922 kB / 0.5162 GB, free: 23.08 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006328/0.5782, allocations: 448.8 kB / 0.5167 GB, free: 22.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.5782, allocations: 0 / 0.5167 GB, free: 22.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001654/0.5799, allocations: 187.5 kB / 0.5168 GB, free: 22.87 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004862/0.5804, allocations: 150.5 kB / 0.517 GB, free: 22.82 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.704e-05/0.5804, allocations: 8.625 kB / 0.517 GB, free: 22.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005028/0.5855, allocations: 7.347 MB / 0.5242 GB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.5855, allocations: 0 / 0.5242 GB, free: 15.89 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001588/0.5871, allocations: 0.8675 MB / 0.525 GB, free: 15.68 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001182/0.5872, allocations: 112.8 kB / 0.5251 GB, free: 15.56 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.72e-05/0.5873, allocations: 15.61 kB / 0.5251 GB, free: 15.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003077/0.5876, allocations: 29.73 kB / 0.5252 GB, free: 15.55 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/0.5877, allocations: 27.62 kB / 0.5252 GB, free: 15.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.347e-05/0.5877, allocations: 13.53 kB / 0.5252 GB, free: 15.55 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001907/0.5879, allocations: 193.2 kB / 0.5254 GB, free: 15.47 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5879, allocations: 0 / 0.5254 GB, free: 15.47 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005281/0.5885, allocations: 126.8 kB / 0.5255 GB, free: 15.46 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (tube.T[1],tube.T[2],tube.T[3],tube.T[4],tube.T[5]) * 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 (23): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001799/0.5887, allocations: 124.5 kB / 0.5256 GB, free: 15.36 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002505/0.5912, allocations: 1.106 MB / 0.5267 GB, free: 14.79 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.5912, allocations: 0 / 0.5267 GB, free: 14.79 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001948/0.5931, allocations: 0.9051 MB / 0.5276 GB, free: 14.22 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000363/0.5935, allocations: 71.2 kB / 0.5277 GB, free: 14.21 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002945/0.5965, allocations: 1.44 MB / 0.5291 GB, free: 13.54 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004355/0.5969, allocations: 0.8037 MB / 0.5298 GB, free: 12.83 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002114/0.5971, allocations: 47.27 kB / 0.5299 GB, free: 12.83 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.255e-05/0.5972, allocations: 28.05 kB / 0.5299 GB, free: 12.82 MB / 378.7 MB Notification: Performance of SimCode: time 2.51e-07/0.5973, allocations: 0 / 0.5299 GB, free: 12.82 MB / 378.7 MB Notification: Performance of Templates: time 0.009323/0.6066, allocations: 5.855 MB / 0.5356 GB, free: 12.45 MB / 378.7 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.sim & ./AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Heater_power_vs_wTin.heater_wT.pipe 2>&1)