Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Generation.AHU_control_case_001.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_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.AHU_control_case_001") translateModel(AES.Coursework.ThermSys_Generation.AHU_control_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.AHU_control_case_001") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.07603/0.07603, allocations: 17.69 MB / 33.63 MB, free: 1.789 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.001005/0.001006, allocations: 173.8 kB / 38.91 MB, free: 24 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.492/1.492, allocations: 205.4 MB / 249.5 MB, free: 2.43 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.0008782/0.0008784, allocations: 98.3 kB / 302.2 MB, free: 4.422 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003905/0.0003907, allocations: 19.94 kB / 367 MB, free: 3.617 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2161/0.2165, allocations: 51.98 MB / 418.9 MB, free: 24.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1116/0.3281, allocations: 84.67 MB / 0.4918 GB, free: 3.602 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002579/0.3284, allocations: 87.94 kB / 0.4919 GB, free: 3.516 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2454/0.5739, allocations: 15.2 MB / 0.5067 GB, free: 79.54 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.635e-06/0.5739, allocations: 0 / 0.5067 GB, free: 79.54 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.629e-05/0.574, allocations: 23.41 kB / 0.5067 GB, free: 79.54 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: 314 * Number of variables: 314 Notification: Performance of Generate backend data structure: time 0.003399/0.5774, allocations: 1.168 MB / 0.5079 GB, free: 78.71 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.5774, allocations: 7.781 kB / 0.5079 GB, free: 78.71 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002065/0.5777, allocations: 114 kB / 0.508 GB, free: 78.65 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006835/0.5784, allocations: 0.5185 MB / 0.5085 GB, free: 78.18 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.904e-05/0.5784, allocations: 93.75 kB / 0.5086 GB, free: 78.14 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001705/0.5786, allocations: 130.2 kB / 0.5087 GB, free: 78.09 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00205/0.5807, allocations: 1.322 MB / 0.51 GB, free: 77.27 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.155e-05/0.5807, allocations: 3.938 kB / 0.51 GB, free: 77.27 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001124/0.5808, allocations: 51.88 kB / 0.5101 GB, free: 77.23 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.34e-05/0.5809, allocations: 27.03 kB / 0.5101 GB, free: 77.23 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001877/0.5828, allocations: 1.264 MB / 0.5113 GB, free: 75.96 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005954/0.5887, allocations: 3.748 MB / 0.515 GB, free: 72.18 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001545/0.5903, allocations: 1.102 MB / 0.5161 GB, free: 71.07 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006985/0.591, allocations: 0.5474 MB / 0.5166 GB, free: 70.52 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.801e-05/0.5911, allocations: 32.02 kB / 0.5166 GB, free: 70.5 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.981e-05/0.5912, allocations: 47.88 kB / 0.5167 GB, free: 70.44 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009966/0.5922, allocations: 235 kB / 0.5169 GB, free: 70.21 MB / 362.7 MB Notification: Performance of pre-optimization done (n=132): time 3.757e-06/0.5922, allocations: 0 / 0.5169 GB, free: 70.21 MB / 362.7 MB Notification: Performance of matching and sorting (n=132): time 0.005586/0.5978, allocations: 2.603 MB / 0.5194 GB, free: 67.5 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.531e-05/0.5979, allocations: 94.42 kB / 0.5195 GB, free: 67.39 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002485/0.5981, allocations: 258.6 kB / 0.5198 GB, free: 67.12 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.318e-05/0.5982, allocations: 49.7 kB / 0.5198 GB, free: 67.07 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001582/0.5984, allocations: 376 kB / 0.5202 GB, free: 66.7 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002908/0.5987, allocations: 453.6 kB / 0.5206 GB, free: 66.25 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.852e-05/0.5988, allocations: 24 kB / 0.5206 GB, free: 66.22 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.5989, allocations: 366.8 kB / 0.521 GB, free: 65.86 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009895/0.5999, allocations: 426.4 kB / 0.5214 GB, free: 65.44 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001222/0.6011, allocations: 0.6039 MB / 0.522 GB, free: 64.77 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02505/0.6262, allocations: 5.027 MB / 0.5269 GB, free: 59.69 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.428e-05/0.6263, allocations: 7.938 kB / 0.5269 GB, free: 59.68 MB / 362.7 MB Notification: Performance of matching and sorting (n=156) (initialization): time 0.003298/0.6296, allocations: 1.46 MB / 0.5283 GB, free: 58.2 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001342/0.6298, allocations: 209.5 kB / 0.5285 GB, free: 57.94 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.334e-05/0.6298, allocations: 4 kB / 0.5285 GB, free: 57.93 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009422/0.6307, allocations: 271.9 kB / 0.5288 GB, free: 57.65 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00664/0.6374, allocations: 1.022 MB / 0.5298 GB, free: 56.63 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01006/0.6475, allocations: 16.61 MB / 0.546 GB, free: 38.4 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001338/0.6489, allocations: 75.8 kB / 0.5461 GB, free: 38.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000228/0.6491, allocations: 60.02 kB / 0.5461 GB, free: 38.27 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.144e-06/0.6491, allocations: 4 kB / 0.5461 GB, free: 38.26 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002698/0.6518, allocations: 1.362 MB / 0.5475 GB, free: 36.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.338e-06/0.6519, allocations: 4 kB / 0.5475 GB, free: 36.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008419/0.6527, allocations: 252.1 kB / 0.5477 GB, free: 36.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006872/0.6596, allocations: 1.026 MB / 0.5487 GB, free: 35.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01019/0.6698, allocations: 16.61 MB / 0.5649 GB, free: 17.35 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001238/0.6711, allocations: 71.94 kB / 0.565 GB, free: 17.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002387/0.6713, allocations: 59.95 kB / 0.5651 GB, free: 17.22 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: 18 * 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 (139): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(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.000807/0.6722, allocations: 328.8 kB / 0.5654 GB, free: 16.89 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001731/0.6723, allocations: 63.34 kB / 0.5654 GB, free: 16.83 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003606/0.676, allocations: 1.707 MB / 0.5671 GB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.969e-06/0.676, allocations: 15.98 kB / 0.5671 GB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/0.676, allocations: 0 / 0.5671 GB, free: 15.09 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.222e-05/0.676, allocations: 7.984 kB / 0.5671 GB, free: 15.08 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004945/0.681, allocations: 2.867 MB / 0.5699 GB, free: 12.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/0.681, allocations: 4 kB / 0.5699 GB, free: 12.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005853/0.6869, allocations: 0.9367 MB / 0.5708 GB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001478/0.6883, allocations: 400 kB / 0.5712 GB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001652/0.6885, allocations: 31.98 kB / 0.5713 GB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01233/0.7009, allocations: 17.14 MB / 0.588 GB, free: 7.973 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.62e-06/0.7009, allocations: 4.031 kB / 0.588 GB, free: 7.969 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005536/0.7065, allocations: 2.276 MB / 0.5902 GB, free: 5.637 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00024/0.7067, allocations: 144.2 kB / 0.5904 GB, free: 5.477 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001502/0.7069, allocations: 31.98 kB / 0.5904 GB, free: 5.445 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008311/0.7078, allocations: 59.97 kB / 0.5904 GB, free: 5.387 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003165/0.7081, allocations: 125.1 kB / 0.5906 GB, free: 5.266 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.879e-05/0.7082, allocations: 44 kB / 0.5906 GB, free: 5.223 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001848/0.7084, allocations: 174 kB / 0.5908 GB, free: 5.051 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7084, allocations: 0 / 0.5908 GB, free: 5.051 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002243/0.7106, allocations: 0.6426 MB / 0.5914 GB, free: 4.406 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 9 (U1.T,U1.phi,Room2.Ma,Room2.Mv,Room2.Ea,Room1.Ma,Room1.Mv,Room1.Ea,PI_Tret.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 (127): * Single equations (assignments): 115 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 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.0002655/0.7109, allocations: 157.1 kB / 0.5915 GB, free: 4.246 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.01554/0.7264, allocations: 4.357 MB / 0.5958 GB, free: 15.76 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.408e-06/0.7265, allocations: 0 / 0.5958 GB, free: 15.76 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00716/0.7337, allocations: 1.95 MB / 0.5977 GB, free: 13.75 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001406/0.7351, allocations: 174.5 kB / 0.5979 GB, free: 13.57 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004702/0.7398, allocations: 2.936 MB / 0.6007 GB, free: 10.59 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007184/0.7406, allocations: 1.038 MB / 0.6018 GB, free: 9.527 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001411/0.742, allocations: 174 kB / 0.6019 GB, free: 9.355 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003257/0.7423, allocations: 79.39 kB / 0.602 GB, free: 9.281 MB / 394.7 MB Notification: Performance of SimCode: time 5.41e-07/0.7424, allocations: 4 kB / 0.602 GB, free: 9.277 MB / 394.7 MB Notification: Performance of Templates: time 0.03183/0.7742, allocations: 18.03 MB / 0.6196 GB, free: 7.219 MB / 410.7 MB make -j1 -f AES_AES.Coursework.ThermSys_Generation.AHU_control_case_001.makefile (rm -f AES_AES.Coursework.ThermSys_Generation.AHU_control_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_Generation.AHU_control_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Generation.AHU_control_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_Generation.AHU_control_case_001.sim & ./AES_AES.Coursework.ThermSys_Generation.AHU_control_case_001 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ThermSys_Generation.AHU_control_case_001.pipe 2>&1)