Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Generation.AHU_control_case_002.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_Generation.AHU_control_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.AHU_control_case_002") translateModel(AES.Coursework.ThermSys_Generation.AHU_control_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.AHU_control_case_002") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09608/0.09608, allocations: 17.68 MB / 33.63 MB, free: 1.746 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.001031/0.001032, allocations: 179 kB / 38.91 MB, free: 16 kB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.49/1.49, allocations: 205.4 MB / 249.5 MB, free: 2.355 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.001005/0.001005, allocations: 98.23 kB / 302.2 MB, free: 4.414 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003989/0.0003991, allocations: 16 kB / 366.9 MB, free: 3.613 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2343/0.2347, allocations: 51.99 MB / 418.9 MB, free: 24.38 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.113/0.3478, allocations: 85.04 MB / 0.4922 GB, free: 3.223 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00026/0.3481, allocations: 79.95 kB / 0.4922 GB, free: 3.145 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2255/0.5736, allocations: 17.74 MB / 0.5096 GB, free: 78 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.067e-06/0.5737, allocations: 0 / 0.5096 GB, free: 78 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.99e-05/0.5737, allocations: 27.94 kB / 0.5096 GB, free: 77.97 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: 355 * Number of variables: 355 Notification: Performance of Generate backend data structure: time 0.003553/0.5773, allocations: 1.324 MB / 0.5109 GB, free: 76.59 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.5774, allocations: 12.03 kB / 0.5109 GB, free: 76.58 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002591/0.5776, allocations: 131.4 kB / 0.511 GB, free: 76.45 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008013/0.5784, allocations: 0.5945 MB / 0.5116 GB, free: 75.81 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.048e-05/0.5785, allocations: 107.2 kB / 0.5117 GB, free: 75.7 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001804/0.5787, allocations: 136.4 kB / 0.5118 GB, free: 75.57 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002201/0.5809, allocations: 1.55 MB / 0.5134 GB, free: 73.99 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.832e-05/0.581, allocations: 192 / 0.5134 GB, free: 73.99 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001193/0.5811, allocations: 63.88 kB / 0.5134 GB, free: 73.93 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.796e-05/0.5811, allocations: 32 kB / 0.5134 GB, free: 73.89 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002283/0.5834, allocations: 1.502 MB / 0.5149 GB, free: 72.39 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007242/0.5907, allocations: 4.409 MB / 0.5192 GB, free: 67.87 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00202/0.5927, allocations: 1.437 MB / 0.5206 GB, free: 66.42 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008617/0.5936, allocations: 0.6685 MB / 0.5213 GB, free: 65.75 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.82e-05/0.5937, allocations: 29.23 kB / 0.5213 GB, free: 65.72 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.869e-05/0.5937, allocations: 51.88 kB / 0.5214 GB, free: 65.66 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00118/0.5949, allocations: 290.8 kB / 0.5216 GB, free: 65.38 MB / 362.7 MB Notification: Performance of pre-optimization done (n=157): time 3.256e-06/0.5949, allocations: 3.938 kB / 0.5216 GB, free: 65.37 MB / 362.7 MB Notification: Performance of matching and sorting (n=157): time 0.005949/0.6009, allocations: 3.007 MB / 0.5246 GB, free: 62.23 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.044e-05/0.6009, allocations: 124.1 kB / 0.5247 GB, free: 62.08 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002594/0.6012, allocations: 312.4 kB / 0.525 GB, free: 61.77 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001086/0.6013, allocations: 49.7 kB / 0.525 GB, free: 61.72 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001412/0.6015, allocations: 416.4 kB / 0.5254 GB, free: 61.3 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002431/0.6017, allocations: 0.5235 MB / 0.5259 GB, free: 60.77 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.218e-05/0.6018, allocations: 32 kB / 0.526 GB, free: 60.74 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.726e-05/0.6019, allocations: 386.7 kB / 0.5263 GB, free: 60.35 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007571/0.6027, allocations: 0.4997 MB / 0.5268 GB, free: 59.85 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008457/0.6035, allocations: 0.7238 MB / 0.5275 GB, free: 59.05 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02633/0.6299, allocations: 5.724 MB / 0.5331 GB, free: 53.26 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.512e-06/0.6299, allocations: 4 kB / 0.5331 GB, free: 53.26 MB / 362.7 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.002934/0.6328, allocations: 1.703 MB / 0.5348 GB, free: 51.53 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.261e-05/0.633, allocations: 239.9 kB / 0.535 GB, free: 51.23 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.633, allocations: 4 kB / 0.535 GB, free: 51.22 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009204/0.6339, allocations: 284.8 kB / 0.5353 GB, free: 50.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007286/0.6412, allocations: 1.186 MB / 0.5365 GB, free: 49.74 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01064/0.6519, allocations: 19.28 MB / 0.5553 GB, free: 28.55 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00136/0.6532, allocations: 84.08 kB / 0.5554 GB, free: 28.47 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001101/0.6534, allocations: 67.95 kB / 0.5554 GB, free: 28.41 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.043e-06/0.6534, allocations: 4 kB / 0.5554 GB, free: 28.4 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002703/0.6561, allocations: 1.582 MB / 0.557 GB, free: 26.8 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.6561, allocations: 4 kB / 0.557 GB, free: 26.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008733/0.657, allocations: 273.2 kB / 0.5572 GB, free: 26.51 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00749/0.6645, allocations: 1.186 MB / 0.5584 GB, free: 25.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01093/0.6755, allocations: 19.29 MB / 0.5772 GB, free: 4.145 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00133/0.6768, allocations: 75.91 kB / 0.5773 GB, free: 4.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001059/0.677, allocations: 67.95 kB / 0.5774 GB, free: 4.004 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: U1.phi:VARIABLE(start = U1.phistart fixed = true ) type: Real U1.T:VARIABLE(min = max(0.0, 0.0) start = U1.Tstart unit = "K" fixed = true nominal = 300.0 ) "controlled T" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 1 (AHUon.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 8 {1,1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {3 9} Notification: Performance of prepare postOptimizeDAE: time 0.0007974/0.6778, allocations: 360.7 kB / 0.5777 GB, free: 3.641 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001625/0.6779, allocations: 71.16 kB / 0.5778 GB, free: 3.57 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003898/0.6818, allocations: 1.991 MB / 0.5797 GB, free: 1.555 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.175e-05/0.6819, allocations: 20 kB / 0.5797 GB, free: 1.535 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.6819, allocations: 0 / 0.5797 GB, free: 1.535 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.455e-05/0.6819, allocations: 11.97 kB / 0.5798 GB, free: 1.523 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00611/0.688, allocations: 3.375 MB / 0.5831 GB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.732e-06/0.6881, allocations: 0 / 0.5831 GB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007179/0.6952, allocations: 1.096 MB / 0.5841 GB, free: 12.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001689/0.697, allocations: 409 kB / 0.5845 GB, free: 12.53 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002755/0.6973, allocations: 35.98 kB / 0.5845 GB, free: 12.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01733/0.7146, allocations: 19.82 MB / 0.6039 GB, free: 6.781 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.7146, allocations: 0 / 0.6039 GB, free: 6.781 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005417/0.7201, allocations: 2.684 MB / 0.6065 GB, free: 4.043 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002851/0.7204, allocations: 156 kB / 0.6067 GB, free: 3.871 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001299/0.7205, allocations: 31.98 kB / 0.6067 GB, free: 3.84 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000906/0.7214, allocations: 87.86 kB / 0.6068 GB, free: 3.754 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003907/0.7218, allocations: 138 kB / 0.6069 GB, free: 3.621 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.46e-05/0.7219, allocations: 51.98 kB / 0.607 GB, free: 3.57 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002606/0.7222, allocations: 211 kB / 0.6072 GB, free: 3.367 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7222, allocations: 0 / 0.6072 GB, free: 3.367 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002485/0.7247, allocations: 0.7283 MB / 0.6079 GB, free: 2.637 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (U1.T,U1.phi,Room2.Ma,Room2.Mv,Room2.Ea,Room1.Ma,Room1.Mv,Room1.Ea,PI_Tret.FO.y,PI_Room1.FO.y) * 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 (153): * Single equations (assignments): 139 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 8 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 8 {1,1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 3 {3 9,2 4,2 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002666/0.725, allocations: 166.7 kB / 0.608 GB, free: 2.465 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01709/0.7421, allocations: 5.114 MB / 0.613 GB, free: 13.2 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.638e-06/0.7421, allocations: 0 / 0.613 GB, free: 13.2 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007585/0.7497, allocations: 2.28 MB / 0.6153 GB, free: 10.84 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001303/0.7511, allocations: 214.4 kB / 0.6155 GB, free: 10.63 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004816/0.7559, allocations: 3.333 MB / 0.6187 GB, free: 7.254 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007093/0.7566, allocations: 1.098 MB / 0.6198 GB, free: 6.129 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001613/0.7583, allocations: 219.2 kB / 0.62 GB, free: 5.91 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003615/0.7586, allocations: 91.39 kB / 0.6201 GB, free: 5.82 MB / 410.7 MB Notification: Performance of SimCode: time 1.142e-06/0.7586, allocations: 0 / 0.6201 GB, free: 5.82 MB / 410.7 MB Notification: Performance of Templates: time 0.0348/0.7934, allocations: 21.04 MB / 0.6406 GB, free: 0.75 MB / 426.7 MB make -j1 -f AES_AES.Coursework.ThermSys_Generation.AHU_control_case_002.makefile (rm -f AES_AES.Coursework.ThermSys_Generation.AHU_control_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_Generation.AHU_control_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Generation.AHU_control_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_Generation.AHU_control_case_002.sim & ./AES_AES.Coursework.ThermSys_Generation.AHU_control_case_002 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ThermSys_Generation.AHU_control_case_002.pipe 2>&1)