Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop.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_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop") translateModel(AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001425/0.001426, allocations: 109.3 kB / 15.7 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001694/0.001693, allocations: 195.3 kB / 16.63 MB, free: 6.609 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.395/1.395, allocations: 222.9 MB / 240.3 MB, free: 4.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.209/0.209, allocations: 22.35 MB / 312.8 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001346, allocations: 64.56 kB / 437 MB, free: 33.63 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1289/0.1303, allocations: 54.96 MB / 492 MB, free: 1.27 MB / 350.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_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop): time 0.03266/0.163, allocations: 22.53 MB / 0.5025 GB, free: 10.86 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002186/0.1652, allocations: 0.916 MB / 0.5033 GB, free: 9.938 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002208/0.1654, allocations: 7.938 kB / 0.5034 GB, free: 9.93 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002643/0.1657, allocations: 83.22 kB / 0.5034 GB, free: 9.848 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003928/0.1661, allocations: 218.5 kB / 0.5036 GB, free: 9.633 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005906/0.1667, allocations: 199.7 kB / 0.5038 GB, free: 9.438 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000832/0.1675, allocations: 0.8817 MB / 0.5047 GB, free: 8.555 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006334/0.1682, allocations: 0.563 MB / 0.5052 GB, free: 7.984 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004146/0.1686, allocations: 378.9 kB / 0.5056 GB, free: 7.613 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005466/0.1692, allocations: 478.5 kB / 0.5061 GB, free: 7.145 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000114/0.1693, allocations: 80 kB / 0.5061 GB, free: 7.066 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001226/0.1694, allocations: 80 kB / 0.5062 GB, free: 6.988 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000256/0.1697, allocations: 291.2 kB / 0.5065 GB, free: 6.703 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003811/0.1701, allocations: 414.2 kB / 0.5069 GB, free: 6.297 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007587/0.1708, allocations: 0.9462 MB / 0.5078 GB, free: 5.344 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.1708, allocations: 0 / 0.5078 GB, free: 5.344 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1709, allocations: 0 / 0.5078 GB, free: 5.344 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.109e-05/0.1709, allocations: 0 / 0.5078 GB, free: 5.344 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: 157 * Number of variables: 157 Notification: Performance of Generate backend data structure: time 0.002069/0.1729, allocations: 1.045 MB / 0.5088 GB, free: 4.25 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.173, allocations: 12.03 kB / 0.5088 GB, free: 4.238 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001661/0.1732, allocations: 76 kB / 0.5089 GB, free: 4.164 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000645/0.1738, allocations: 456.8 kB / 0.5094 GB, free: 3.676 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.359e-05/0.1739, allocations: 75.58 kB / 0.5094 GB, free: 3.594 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001199/0.1741, allocations: 64.38 kB / 0.5095 GB, free: 3.531 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001204/0.1753, allocations: 0.7209 MB / 0.5102 GB, free: 2.805 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.191e-05/0.1753, allocations: 0 / 0.5102 GB, free: 2.805 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.605e-05/0.1754, allocations: 28 kB / 0.5102 GB, free: 2.777 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.567e-05/0.1754, allocations: 12 kB / 0.5102 GB, free: 2.766 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001079/0.1765, allocations: 0.6532 MB / 0.5109 GB, free: 2.113 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004513/0.181, allocations: 2.759 MB / 0.5136 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001779/0.1828, allocations: 0.6418 MB / 0.5142 GB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006825/0.1835, allocations: 389.9 kB / 0.5146 GB, free: 14.14 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.9e-05/0.1836, allocations: 8.422 kB / 0.5146 GB, free: 14.13 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.667e-05/0.1836, allocations: 42.94 kB / 0.5146 GB, free: 14.08 MB / 398.1 MB Notification: Performance of pre-optimization done (n=52): time 2.244e-06/0.1836, allocations: 0 / 0.5146 GB, free: 14.08 MB / 398.1 MB Notification: Performance of matching and sorting (n=52): time 0.003011/0.1866, allocations: 1.504 MB / 0.5161 GB, free: 12.45 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.58e-05/0.1867, allocations: 55.84 kB / 0.5161 GB, free: 12.39 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004713/0.1872, allocations: 429.9 kB / 0.5165 GB, free: 11.96 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.681e-05/0.1872, allocations: 29.7 kB / 0.5166 GB, free: 11.92 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001953/0.1874, allocations: 300.2 kB / 0.5169 GB, free: 11.62 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000163/0.1876, allocations: 201.1 kB / 0.517 GB, free: 11.43 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001991/0.1878, allocations: 118.2 kB / 0.5172 GB, free: 11.3 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.188, allocations: 362.8 kB / 0.5175 GB, free: 10.94 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000555/0.1885, allocations: 339.6 kB / 0.5178 GB, free: 10.61 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000583/0.1891, allocations: 386.2 kB / 0.5182 GB, free: 10.22 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007365/0.1965, allocations: 2.051 MB / 0.5202 GB, free: 8.148 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.544e-06/0.1965, allocations: 7.938 kB / 0.5202 GB, free: 8.141 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.001969/0.1985, allocations: 0.9693 MB / 0.5212 GB, free: 7.148 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/0.1985, allocations: 8 kB / 0.5212 GB, free: 7.141 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.1986, allocations: 0 / 0.5212 GB, free: 7.141 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006908/0.1992, allocations: 168.2 kB / 0.5213 GB, free: 6.961 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001283/0.2005, allocations: 223.7 kB / 0.5215 GB, free: 6.742 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005887/0.2064, allocations: 7.611 MB / 0.529 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007124/0.2072, allocations: 63.34 kB / 0.529 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.581e-05/0.2073, allocations: 31.98 kB / 0.5291 GB, free: 14.3 MB / 414.1 MB Warning: Assuming fixed start value for the following 3 variables: heater.Ec:VARIABLE(flow=false fixed = true ) type: Real heater.Tfo:VARIABLE(min = 0.0 start = heater.Tstart unit = "K" fixed = true nominal = 300.0 ) "outlet fluid temp" type: Real heater.xpi:VARIABLE(start = 0.0 fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 1 (Hon.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004603/0.2077, allocations: 222.6 kB / 0.5293 GB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001009/0.2078, allocations: 51.34 kB / 0.5293 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001586/0.2094, allocations: 0.8331 MB / 0.5301 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.663e-06/0.2094, allocations: 7.938 kB / 0.5301 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.2095, allocations: 0 / 0.5301 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.965e-06/0.2095, allocations: 7.984 kB / 0.5301 GB, free: 13.16 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002751/0.2122, allocations: 1.692 MB / 0.5318 GB, free: 11.37 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-06/0.2122, allocations: 0 / 0.5318 GB, free: 11.37 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001091/0.2133, allocations: 179.8 kB / 0.532 GB, free: 11.2 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004502/0.2138, allocations: 148.4 kB / 0.5321 GB, free: 11.04 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.294e-05/0.2139, allocations: 19.98 kB / 0.5321 GB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004726/0.2186, allocations: 7.207 MB / 0.5392 GB, free: 3.113 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.2186, allocations: 0 / 0.5392 GB, free: 3.113 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002131/0.2208, allocations: 1.26 MB / 0.5404 GB, free: 1.789 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001834/0.2209, allocations: 132.4 kB / 0.5405 GB, free: 1.641 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000107/0.2211, allocations: 35.86 kB / 0.5406 GB, free: 1.605 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004489/0.2215, allocations: 19.98 kB / 0.5406 GB, free: 1.586 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001189/0.2216, allocations: 48.31 kB / 0.5406 GB, free: 1.539 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.203e-05/0.2217, allocations: 19.98 kB / 0.5406 GB, free: 1.52 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003398/0.222, allocations: 299.1 kB / 0.5409 GB, free: 1.227 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.222, allocations: 0 / 0.5409 GB, free: 1.227 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008173/0.2229, allocations: 235.5 kB / 0.5412 GB, free: 0.9961 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 13 (stream_loss.T[1],stream_loss.T[2],stream_loss.T[3],stream_loss.T[4],stream_loss.T[5],stream_load.T[1],stream_load.T[2],stream_load.T[3],stream_load.T[4],stream_load.T[5],heater.Tfo,heater.Ec,heater.xpi) * 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 (51): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002103/0.2231, allocations: 119.1 kB / 0.5413 GB, free: 0.8672 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002003/0.2251, allocations: 1.289 MB / 0.5425 GB, free: 15.52 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.568e-06/0.2251, allocations: 0 / 0.5425 GB, free: 15.52 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009834/0.2261, allocations: 0.8907 MB / 0.5434 GB, free: 14.57 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006469/0.2268, allocations: 137.7 kB / 0.5435 GB, free: 14.43 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003387/0.2302, allocations: 1.941 MB / 0.5454 GB, free: 12.43 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000526/0.2307, allocations: 0.9299 MB / 0.5463 GB, free: 11.47 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004983/0.2312, allocations: 128.6 kB / 0.5465 GB, free: 11.34 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001992/0.2314, allocations: 55.36 kB / 0.5465 GB, free: 11.29 MB / 430.1 MB Notification: Performance of SimCode: time 9.52e-07/0.2314, allocations: 0 / 0.5465 GB, free: 11.29 MB / 430.1 MB Notification: Performance of Templates: time 0.02006/0.2515, allocations: 9.936 MB / 0.5562 GB, free: 1.457 MB / 430.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop.makefile (rm -f AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop.sim & ./AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Temperature_flow_control.Temperature_flow_control_01_open_loop.pipe 2>&1)