Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Pumps_valve.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.Pumps_valve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Pumps_valve") translateModel(AES.Coursework.ThermSys_component_models.Pumps_valve,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Pumps_valve") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001689/0.001689, allocations: 104.5 kB / 16.41 MB, free: 6.453 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.001811/0.001811, allocations: 187 kB / 17.34 MB, free: 5.719 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.324/1.324, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09027/0.09027, allocations: 22.33 MB / 313.5 MB, free: 8.859 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 67.89 kB / 437.7 MB, free: 11.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09552/0.09676, allocations: 54.95 MB / 492.7 MB, free: 4.73 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Interfaces/flowTwoPorts_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/flowTwoPorts_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.Pumps_valve): time 0.4052/0.5019, allocations: 22.21 MB / 0.5028 GB, free: 6.359 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009913/0.503, allocations: 386.6 kB / 0.5032 GB, free: 6.355 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000122/0.5031, allocations: 5.5 kB / 0.5032 GB, free: 6.355 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001014/0.5032, allocations: 41.53 kB / 0.5032 GB, free: 6.355 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002214/0.5034, allocations: 105.8 kB / 0.5033 GB, free: 6.355 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003042/0.5037, allocations: 105 kB / 0.5034 GB, free: 6.355 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003276/0.5041, allocations: 413 kB / 0.5038 GB, free: 6.277 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003063/0.5044, allocations: 263.2 kB / 0.5041 GB, free: 6.258 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001426/0.5045, allocations: 161.2 kB / 0.5042 GB, free: 6.227 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002054/0.5048, allocations: 210 kB / 0.5044 GB, free: 6.184 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.22e-05/0.5048, allocations: 39.81 kB / 0.5045 GB, free: 6.184 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001217/0.5049, allocations: 68.64 kB / 0.5045 GB, free: 6.184 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.073e-05/0.505, allocations: 80.78 kB / 0.5046 GB, free: 6.168 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001565/0.5052, allocations: 196.4 kB / 0.5048 GB, free: 6.109 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004233/0.5056, allocations: 442.2 kB / 0.5052 GB, free: 6.035 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.067e-06/0.5056, allocations: 0 / 0.5052 GB, free: 6.035 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.5056, allocations: 0 / 0.5052 GB, free: 6.035 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.682e-06/0.5056, allocations: 2.656 kB / 0.5052 GB, free: 6.035 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001032/0.5067, allocations: 0.6807 MB / 0.5059 GB, free: 5.555 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.066e-05/0.5067, allocations: 9.375 kB / 0.5059 GB, free: 5.555 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.375e-05/0.5068, allocations: 39.97 kB / 0.5059 GB, free: 5.535 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003035/0.5071, allocations: 309 kB / 0.5062 GB, free: 5.297 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.03e-05/0.5071, allocations: 18.72 kB / 0.5062 GB, free: 5.297 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.901e-05/0.5072, allocations: 29.84 kB / 0.5063 GB, free: 5.297 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005009/0.5077, allocations: 275.7 kB / 0.5065 GB, free: 5.254 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.5077, allocations: 2.875 kB / 0.5065 GB, free: 5.254 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.019e-05/0.5077, allocations: 15.31 kB / 0.5066 GB, free: 5.25 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.5078, allocations: 6.562 kB / 0.5066 GB, free: 5.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005147/0.5083, allocations: 248 kB / 0.5068 GB, free: 5.25 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001273/0.5096, allocations: 0.8201 MB / 0.5076 GB, free: 4.918 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004764/0.5101, allocations: 241.7 kB / 0.5078 GB, free: 4.891 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003094/0.5104, allocations: 143.8 kB / 0.508 GB, free: 4.883 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.52e-05/0.5104, allocations: 2.656 kB / 0.508 GB, free: 4.883 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.786e-05/0.5104, allocations: 46.45 kB / 0.508 GB, free: 4.84 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001955/0.5106, allocations: 40.58 kB / 0.508 GB, free: 4.828 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.342e-06/0.5106, allocations: 0 / 0.508 GB, free: 4.828 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.00348/0.5141, allocations: 0.9678 MB / 0.509 GB, free: 4.465 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.156e-05/0.5142, allocations: 54.59 kB / 0.509 GB, free: 4.402 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002864/0.5145, allocations: 289.2 kB / 0.5093 GB, free: 4.297 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.611e-05/0.5145, allocations: 30.45 kB / 0.5093 GB, free: 4.266 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.954e-05/0.5146, allocations: 190.2 kB / 0.5095 GB, free: 4.152 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.644e-05/0.5146, allocations: 73.55 kB / 0.5096 GB, free: 4.105 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.849e-05/0.5147, allocations: 50.03 kB / 0.5096 GB, free: 4.09 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.139e-05/0.5148, allocations: 340 kB / 0.51 GB, free: 3.777 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002662/0.5151, allocations: 102.9 kB / 0.5101 GB, free: 3.777 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002434/0.5153, allocations: 106.1 kB / 0.5102 GB, free: 3.777 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004931/0.5158, allocations: 227 kB / 0.5104 GB, free: 3.766 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.5158, allocations: 4.453 kB / 0.5104 GB, free: 3.762 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001688/0.5175, allocations: 0.4993 MB / 0.5109 GB, free: 3.672 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.5176, allocations: 4.125 kB / 0.5109 GB, free: 3.672 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.5176, allocations: 4.25 kB / 0.5109 GB, free: 3.672 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001178/0.5187, allocations: 202.3 kB / 0.5111 GB, free: 3.648 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000589/0.5194, allocations: 89.94 kB / 0.5112 GB, free: 3.645 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003384/0.5227, allocations: 4.765 MB / 0.5158 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002663/0.523, allocations: 16.75 kB / 0.5158 GB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.542e-05/0.5231, allocations: 18.66 kB / 0.5159 GB, free: 15.46 MB / 398.1 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 (18): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0001709/0.5232, allocations: 137.1 kB / 0.516 GB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.288e-05/0.5233, allocations: 26.12 kB / 0.516 GB, free: 15.34 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001432/0.5248, allocations: 0.5149 MB / 0.5165 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.5248, allocations: 4.125 kB / 0.5165 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.5248, allocations: 1.375 kB / 0.5165 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/0.5248, allocations: 1.453 kB / 0.5165 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00185/0.5266, allocations: 0.9294 MB / 0.5174 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.5267, allocations: 0 / 0.5174 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005315/0.5272, allocations: 94.05 kB / 0.5175 GB, free: 14.89 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006942/0.5279, allocations: 148.6 kB / 0.5177 GB, free: 14.87 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.574e-05/0.5279, allocations: 11.06 kB / 0.5177 GB, free: 14.87 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003082/0.531, allocations: 4.427 MB / 0.522 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.5311, allocations: 0 / 0.522 GB, free: 10.75 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001364/0.5324, allocations: 0.5601 MB / 0.5225 GB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.01e-05/0.5325, allocations: 111.4 kB / 0.5226 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.099e-05/0.5326, allocations: 6.109 kB / 0.5227 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00023/0.5328, allocations: 17.19 kB / 0.5227 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.531e-05/0.5329, allocations: 28.75 kB / 0.5227 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.99e-05/0.5329, allocations: 11.16 kB / 0.5227 GB, free: 10.45 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002126/0.5332, allocations: 208.1 kB / 0.5229 GB, free: 10.36 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5332, allocations: 0 / 0.5229 GB, free: 10.36 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005836/0.5338, allocations: 99.78 kB / 0.523 GB, free: 10.35 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001457/0.5339, allocations: 113.9 kB / 0.5231 GB, free: 10.26 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001956/0.5359, allocations: 0.636 MB / 0.5237 GB, free: 10.02 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.5359, allocations: 0 / 0.5237 GB, free: 10.02 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008616/0.5368, allocations: 455.2 kB / 0.5242 GB, free: 9.789 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003959/0.5372, allocations: 58.42 kB / 0.5242 GB, free: 9.785 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001119/0.5383, allocations: 0.6496 MB / 0.5249 GB, free: 9.457 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003504/0.5387, allocations: 0.7901 MB / 0.5256 GB, free: 8.758 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.574e-05/0.5388, allocations: 23.83 kB / 0.5256 GB, free: 8.75 MB / 398.1 MB Notification: Performance of SimCode: time 3.91e-07/0.5388, allocations: 0.8438 kB / 0.5256 GB, free: 8.75 MB / 398.1 MB Notification: Performance of Templates: time 0.01214/0.5509, allocations: 9.193 MB / 0.5346 GB, free: 4.898 MB / 398.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Pumps_valve.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Pumps_valve.sim & ./AES_AES.Coursework.ThermSys_component_models.Pumps_valve -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Pumps_valve.pipe 2>&1)