Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Decoupling.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.Typical_control_structures.Decoupling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Decoupling") translateModel(AES.Coursework.Typical_control_structures.Decoupling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Decoupling") [/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.108/0.108, allocations: 21.44 MB / 36.39 MB, free: 1.145 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.001312/0.001312, allocations: 180.4 kB / 42.62 MB, free: 3.992 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.676/1.676, allocations: 205.4 MB / 254.1 MB, free: 15.45 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.001004/0.001004, allocations: 97.53 kB / 307.8 MB, free: 11.33 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003897/0.0003901, allocations: 11 kB / 373.2 MB, free: 59.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1416/0.142, allocations: 52.95 MB / 426.2 MB, free: 13.35 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4356/0.5777, allocations: 80.15 MB / 0.4945 GB, free: 17.89 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002228/0.578, allocations: 79.69 kB / 0.4945 GB, free: 17.89 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:49:3-49:23:writable] Warning: Connecting two signal sources while connecting iBias to Bias. Notification: Performance of FrontEnd - DAE generated: time 0.03432/0.6123, allocations: 10.27 MB / 0.5046 GB, free: 17.03 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.365e-06/0.6123, allocations: 4 kB / 0.5046 GB, free: 17.02 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.852e-05/0.6124, allocations: 21.94 kB / 0.5046 GB, free: 17.02 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.002543/0.615, allocations: 1.06 MB / 0.5056 GB, free: 16.4 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.302e-05/0.615, allocations: 8.688 kB / 0.5056 GB, free: 16.4 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001774/0.6152, allocations: 72.75 kB / 0.5057 GB, free: 16.36 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001956/0.6172, allocations: 0.7979 MB / 0.5065 GB, free: 16.07 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.221e-05/0.6172, allocations: 32.47 kB / 0.5065 GB, free: 16.06 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.983e-05/0.6173, allocations: 50.95 kB / 0.5066 GB, free: 16.05 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007927/0.6181, allocations: 427.1 kB / 0.507 GB, free: 15.97 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.6181, allocations: 3.938 kB / 0.507 GB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.047e-05/0.6182, allocations: 14.34 kB / 0.507 GB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.8e-05/0.6182, allocations: 10.47 kB / 0.507 GB, free: 15.96 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007008/0.6189, allocations: 374.2 kB / 0.5074 GB, free: 15.95 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002217/0.6211, allocations: 1.564 MB / 0.5089 GB, free: 15.28 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006971/0.6219, allocations: 430 kB / 0.5093 GB, free: 15.24 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.26e-05/0.6219, allocations: 5.25 kB / 0.5093 GB, free: 15.24 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.486e-05/0.6219, allocations: 35.34 kB / 0.5093 GB, free: 15.2 MB / 362.7 MB Notification: Performance of pre-optimization done (n=43): time 2.184e-06/0.622, allocations: 3.938 kB / 0.5093 GB, free: 15.2 MB / 362.7 MB Notification: Performance of matching and sorting (n=43): time 0.001213/0.6232, allocations: 0.5773 MB / 0.5099 GB, free: 15.12 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.822e-05/0.6232, allocations: 56.91 kB / 0.5099 GB, free: 15.05 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001322/0.6245, allocations: 0.695 MB / 0.5106 GB, free: 14.93 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.333e-05/0.6246, allocations: 38.08 kB / 0.5107 GB, free: 14.89 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001667/0.6248, allocations: 307.6 kB / 0.511 GB, free: 14.77 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000102/0.6249, allocations: 161.4 kB / 0.5111 GB, free: 14.67 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.29e-05/0.6249, allocations: 11.94 kB / 0.5111 GB, free: 14.66 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.625, allocations: 384.3 kB / 0.5115 GB, free: 14.35 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002844/0.6253, allocations: 168.3 kB / 0.5116 GB, free: 14.35 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003319/0.6256, allocations: 284.2 kB / 0.5119 GB, free: 14.23 MB / 362.7 MB Notification: The given system is mixed-determined. [index = 2] Notification: Performance of analyzeInitialSystem (initialization): time 0.002464/0.6281, allocations: 0.9526 MB / 0.5129 GB, free: 14.19 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.6281, allocations: 0 / 0.5129 GB, free: 14.19 MB / 362.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.000725/0.6289, allocations: 0.579 MB / 0.5134 GB, free: 14.08 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.883e-05/0.6289, allocations: 10.23 kB / 0.5134 GB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.6289, allocations: 3.781 kB / 0.5134 GB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/0.6289, allocations: 3.875 kB / 0.5134 GB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008405/0.6298, allocations: 195.2 kB / 0.5136 GB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001738/0.6315, allocations: 1.462 MB / 0.515 GB, free: 28.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006191/0.6322, allocations: 101.4 kB / 0.5151 GB, free: 28.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.901e-05/0.6322, allocations: 18.72 kB / 0.5152 GB, free: 28.68 MB / 378.7 MB Warning: Assuming fixed start value for the following 2 variables: C2.xfb:VARIABLE(fixed = true ) type: Real C1.xfb:VARIABLE(fixed = true ) type: Real Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: D.Fcs2.y = D.Fcs2.y_start C1.u = C1.CSstart. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 10 (C1.HIsat,C1.LOsat,C2.HIsat,C2.LOsat,C2.iNoDec,C2.iNoInc,C2.iTS,C1.iNoDec,C1.iNoInc,C1.iTS) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 68 * 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: 0 * 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: Performance of prepare postOptimizeDAE: time 0.0004365/0.6327, allocations: 247.5 kB / 0.5154 GB, free: 28.54 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001013/0.6328, allocations: 64.83 kB / 0.5155 GB, free: 28.51 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007928/0.6336, allocations: 0.4935 MB / 0.5159 GB, free: 28.45 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.6336, allocations: 3.875 kB / 0.5159 GB, free: 28.45 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.6336, allocations: 0 / 0.5159 GB, free: 28.45 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.895e-06/0.6336, allocations: 2.766 kB / 0.5159 GB, free: 28.45 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006335/0.6343, allocations: 0.5718 MB / 0.5165 GB, free: 28.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.6343, allocations: 7.828 kB / 0.5165 GB, free: 28.24 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005039/0.6348, allocations: 99.47 kB / 0.5166 GB, free: 28.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.6348, allocations: 0 / 0.5166 GB, free: 28.23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.899e-05/0.6348, allocations: 17.66 kB / 0.5166 GB, free: 28.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.023e-06/0.6348, allocations: 0 / 0.5166 GB, free: 28.23 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.6348, allocations: 0 / 0.5166 GB, free: 28.23 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008811/0.6357, allocations: 0.7648 MB / 0.5174 GB, free: 28.05 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000146/0.6359, allocations: 153.5 kB / 0.5175 GB, free: 27.91 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.274e-05/0.636, allocations: 18.47 kB / 0.5175 GB, free: 27.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005409/0.6365, allocations: 68.59 kB / 0.5176 GB, free: 27.91 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.383e-05/0.6366, allocations: 36.45 kB / 0.5176 GB, free: 27.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.457e-05/0.6366, allocations: 14.62 kB / 0.5177 GB, free: 27.89 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001142/0.6378, allocations: 0.5657 MB / 0.5182 GB, free: 27.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6378, allocations: 0 / 0.5182 GB, free: 27.8 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004468/0.6382, allocations: 99.78 kB / 0.5183 GB, free: 27.79 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 14 (P.P11.x_scaled[1],P.P12.x_scaled[1],P.P21.x_scaled[1],P.P22.x_scaled[1],D.D12.x_scaled[1],D.D21.x_scaled[1],C1.xfb,C1.xBias,C1.u,C1.csfil,C2.xfb,C2.xBias,C2.u,C2.csfil) * Number of discrete variables: 4 (C1.HIsat,C1.LOsat,C2.HIsat,C2.LOsat) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001893/0.6384, allocations: 132 kB / 0.5184 GB, free: 27.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001016/0.6395, allocations: 489.3 kB / 0.5189 GB, free: 27.65 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.6395, allocations: 0 / 0.5189 GB, free: 27.65 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003414/0.6398, allocations: 214.5 kB / 0.5191 GB, free: 27.64 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004509/0.6403, allocations: 79.39 kB / 0.5192 GB, free: 27.63 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002054/0.6424, allocations: 1.452 MB / 0.5206 GB, free: 26.93 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005859/0.643, allocations: 0.9729 MB / 0.5215 GB, free: 26.22 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003643/0.6433, allocations: 109.7 kB / 0.5216 GB, free: 26.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001532/0.6435, allocations: 45.53 kB / 0.5217 GB, free: 26.2 MB / 378.7 MB Notification: Performance of SimCode: time 3.9e-07/0.6435, allocations: 0 / 0.5217 GB, free: 26.2 MB / 378.7 MB Notification: Performance of Templates: time 0.009987/0.6535, allocations: 4.961 MB / 0.5265 GB, free: 25.87 MB / 378.7 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.Decoupling.makefile (rm -f AES_AES.Coursework.Typical_control_structures.Decoupling.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Decoupling.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Decoupling.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Decoupling.sim & ./AES_AES.Coursework.Typical_control_structures.Decoupling -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Decoupling.pipe 2>&1)