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.001078/0.001078, allocations: 109.8 kB / 16.41 MB, free: 6.492 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.001048/0.001048, allocations: 187 kB / 17.34 MB, free: 5.766 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.298/1.298, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09041/0.09041, allocations: 22.32 MB / 313.5 MB, free: 8.922 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001407/0.001407, allocations: 59.91 kB / 437.7 MB, free: 11.81 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1021, allocations: 54.97 MB / 492.7 MB, free: 4.797 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.4779/0.5801, allocations: 22.21 MB / 0.5028 GB, free: 5.75 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001223/0.5813, allocations: 381.5 kB / 0.5032 GB, free: 5.75 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001584/0.5815, allocations: 2.875 kB / 0.5032 GB, free: 5.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001355/0.5816, allocations: 49.28 kB / 0.5032 GB, free: 5.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002468/0.5819, allocations: 99.25 kB / 0.5033 GB, free: 5.75 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003653/0.5822, allocations: 105 kB / 0.5034 GB, free: 5.75 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003773/0.5826, allocations: 417.9 kB / 0.5038 GB, free: 5.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003421/0.583, allocations: 246.4 kB / 0.5041 GB, free: 5.672 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001614/0.5832, allocations: 165.4 kB / 0.5042 GB, free: 5.641 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002533/0.5834, allocations: 216.3 kB / 0.5044 GB, free: 5.594 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.836e-05/0.5835, allocations: 36.69 kB / 0.5045 GB, free: 5.594 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001375/0.5836, allocations: 74.55 kB / 0.5045 GB, free: 5.594 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.423e-05/0.5837, allocations: 84.56 kB / 0.5046 GB, free: 5.578 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001524/0.5839, allocations: 194 kB / 0.5048 GB, free: 5.523 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005011/0.5844, allocations: 440 kB / 0.5052 GB, free: 5.449 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.5844, allocations: 1.5 kB / 0.5052 GB, free: 5.449 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.5844, allocations: 0 / 0.5052 GB, free: 5.449 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.5844, allocations: 0 / 0.5052 GB, free: 5.449 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.001098/0.5855, allocations: 0.6851 MB / 0.5059 GB, free: 4.969 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.425e-05/0.5855, allocations: 14.06 kB / 0.5059 GB, free: 4.965 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.491e-05/0.5856, allocations: 38.31 kB / 0.5059 GB, free: 4.945 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003279/0.586, allocations: 300.2 kB / 0.5062 GB, free: 4.711 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.595e-05/0.586, allocations: 22.84 kB / 0.5062 GB, free: 4.711 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.49e-05/0.5861, allocations: 25.2 kB / 0.5063 GB, free: 4.711 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005551/0.5866, allocations: 281.9 kB / 0.5065 GB, free: 4.664 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.5866, allocations: 192 / 0.5065 GB, free: 4.664 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.317e-05/0.5867, allocations: 13.28 kB / 0.5065 GB, free: 4.66 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.5867, allocations: 8.656 kB / 0.5066 GB, free: 4.66 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005599/0.5873, allocations: 254.7 kB / 0.5068 GB, free: 4.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001392/0.5887, allocations: 0.8139 MB / 0.5076 GB, free: 4.328 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005094/0.5892, allocations: 237.1 kB / 0.5078 GB, free: 4.305 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000349/0.5895, allocations: 143.5 kB / 0.508 GB, free: 4.297 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.02e-05/0.5896, allocations: 10.38 kB / 0.508 GB, free: 4.297 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.292e-05/0.5896, allocations: 42.5 kB / 0.508 GB, free: 4.25 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002069/0.5898, allocations: 44.22 kB / 0.508 GB, free: 4.238 MB / 382.1 MB Notification: Performance of pre-optimization done (n=23): time 1.874e-06/0.5898, allocations: 1.875 kB / 0.508 GB, free: 4.238 MB / 382.1 MB Notification: Performance of matching and sorting (n=23): time 0.003502/0.5933, allocations: 0.9665 MB / 0.509 GB, free: 3.875 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.735e-05/0.5934, allocations: 53.81 kB / 0.509 GB, free: 3.812 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003398/0.5937, allocations: 288.1 kB / 0.5093 GB, free: 3.707 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.193e-05/0.5938, allocations: 27.62 kB / 0.5093 GB, free: 3.676 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001236/0.5939, allocations: 186.5 kB / 0.5095 GB, free: 3.562 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.776e-05/0.594, allocations: 80.5 kB / 0.5096 GB, free: 3.512 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.159e-05/0.5941, allocations: 53.47 kB / 0.5097 GB, free: 3.496 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.118e-05/0.5941, allocations: 337.8 kB / 0.51 GB, free: 3.184 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002757/0.5944, allocations: 101.7 kB / 0.5101 GB, free: 3.184 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002691/0.5947, allocations: 106.8 kB / 0.5102 GB, free: 3.184 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005273/0.5952, allocations: 229.8 kB / 0.5104 GB, free: 3.172 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.5952, allocations: 6.562 kB / 0.5104 GB, free: 3.168 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.001779/0.597, allocations: 0.4943 MB / 0.5109 GB, free: 3.078 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.5971, allocations: 4.812 kB / 0.5109 GB, free: 3.078 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/0.5971, allocations: 0 / 0.5109 GB, free: 3.078 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001204/0.5983, allocations: 205.6 kB / 0.5111 GB, free: 3.055 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006059/0.5989, allocations: 86.89 kB / 0.5112 GB, free: 3.055 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003658/0.6026, allocations: 4.769 MB / 0.5158 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002905/0.6029, allocations: 17.06 kB / 0.5158 GB, free: 14.88 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.596e-05/0.6029, allocations: 13.53 kB / 0.5159 GB, free: 14.87 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.0001864/0.6031, allocations: 148.3 kB / 0.516 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.126e-05/0.6032, allocations: 24.5 kB / 0.516 GB, free: 14.74 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001387/0.6046, allocations: 0.5136 MB / 0.5165 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.6046, allocations: 4.125 kB / 0.5165 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.6046, allocations: 1.984 kB / 0.5165 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.6046, allocations: 1.547 kB / 0.5165 GB, free: 14.65 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00182/0.6064, allocations: 0.9326 MB / 0.5174 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.6065, allocations: 0.6562 kB / 0.5174 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005278/0.607, allocations: 89.03 kB / 0.5175 GB, free: 14.29 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006306/0.6076, allocations: 151.1 kB / 0.5177 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.219e-05/0.6077, allocations: 9.188 kB / 0.5177 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003055/0.6107, allocations: 4.421 MB / 0.522 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.93e-06/0.6108, allocations: 8.094 kB / 0.522 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001405/0.6122, allocations: 0.5529 MB / 0.5225 GB, free: 9.965 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001002/0.6123, allocations: 107.3 kB / 0.5226 GB, free: 9.855 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.278e-05/0.6123, allocations: 6.094 kB / 0.5226 GB, free: 9.855 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002315/0.6126, allocations: 17.36 kB / 0.5227 GB, free: 9.855 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001046/0.6127, allocations: 31.86 kB / 0.5227 GB, free: 9.852 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.207e-05/0.6127, allocations: 14.84 kB / 0.5227 GB, free: 9.852 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002248/0.6129, allocations: 208.3 kB / 0.5229 GB, free: 9.77 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.6129, allocations: 1.062 kB / 0.5229 GB, free: 9.77 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006063/0.6136, allocations: 99.06 kB / 0.523 GB, free: 9.758 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.000176/0.6137, allocations: 111.7 kB / 0.5231 GB, free: 9.672 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002056/0.6158, allocations: 0.6342 MB / 0.5237 GB, free: 9.434 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.6158, allocations: 0 / 0.5237 GB, free: 9.434 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009142/0.6167, allocations: 450 kB / 0.5242 GB, free: 9.203 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004415/0.6172, allocations: 61.95 kB / 0.5242 GB, free: 9.195 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001198/0.6184, allocations: 0.6431 MB / 0.5248 GB, free: 8.871 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003747/0.6188, allocations: 0.7905 MB / 0.5256 GB, free: 8.172 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.219e-05/0.6189, allocations: 24.25 kB / 0.5256 GB, free: 8.164 MB / 398.1 MB Notification: Performance of SimCode: time 6.01e-07/0.6189, allocations: 0.5312 kB / 0.5256 GB, free: 8.164 MB / 398.1 MB Notification: Performance of Templates: time 0.01414/0.6331, allocations: 9.151 MB / 0.5346 GB, free: 4.414 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)