Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ThermSys_Generation.AHU_control_case_003.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_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.AHU_control_case_003") translateModel(AES.Coursework.ThermSys_Generation.AHU_control_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_Generation.AHU_control_case_003") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1211/0.1211, allocations: 17.69 MB / 33.64 MB, free: 1.742 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.001386/0.001386, allocations: 179.4 kB / 38.92 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.95/1.95, allocations: 205.4 MB / 249.5 MB, free: 2.352 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.0007879/0.0007879, allocations: 95.48 kB / 302.2 MB, free: 4.418 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000399/0.0003992, allocations: 12 kB / 367 MB, free: 3.609 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2384/0.2388, allocations: 51.98 MB / 418.9 MB, free: 24.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1476/0.3865, allocations: 85.95 MB / 0.493 GB, free: 2.312 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000316/0.3869, allocations: 83.94 kB / 0.4931 GB, free: 2.23 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2495/0.6364, allocations: 18.92 MB / 0.5116 GB, free: 76.03 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.314e-06/0.6364, allocations: 4 kB / 0.5116 GB, free: 76.02 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.583e-05/0.6364, allocations: 28 kB / 0.5116 GB, free: 76 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: 378 * Number of variables: 378 Notification: Performance of Generate backend data structure: time 0.003063/0.6395, allocations: 1.387 MB / 0.513 GB, free: 74.55 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.447e-05/0.6396, allocations: 8.031 kB / 0.513 GB, free: 74.54 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002361/0.6398, allocations: 139.3 kB / 0.5131 GB, free: 74.41 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007818/0.6406, allocations: 0.6258 MB / 0.5137 GB, free: 73.74 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.431e-05/0.6407, allocations: 111.3 kB / 0.5139 GB, free: 73.63 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001863/0.6409, allocations: 156.3 kB / 0.514 GB, free: 73.48 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002297/0.6432, allocations: 1.612 MB / 0.5156 GB, free: 71.83 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.116e-05/0.6432, allocations: 192 / 0.5156 GB, free: 71.83 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001287/0.6434, allocations: 63.94 kB / 0.5156 GB, free: 71.77 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.24e-05/0.6434, allocations: 36 kB / 0.5157 GB, free: 71.73 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002285/0.6457, allocations: 1.55 MB / 0.5172 GB, free: 70.18 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0072/0.6529, allocations: 4.609 MB / 0.5217 GB, free: 65.46 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001886/0.6548, allocations: 1.386 MB / 0.523 GB, free: 64.06 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008881/0.6557, allocations: 0.684 MB / 0.5237 GB, free: 63.37 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.413e-05/0.6558, allocations: 29.28 kB / 0.5237 GB, free: 63.34 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.302e-05/0.6558, allocations: 51.88 kB / 0.5238 GB, free: 63.29 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001214/0.6571, allocations: 290.8 kB / 0.5241 GB, free: 63 MB / 362.7 MB Notification: Performance of pre-optimization done (n=162): time 4.018e-06/0.6571, allocations: 0 / 0.5241 GB, free: 63 MB / 362.7 MB Notification: Performance of matching and sorting (n=162): time 0.0133/0.6704, allocations: 4.375 MB / 0.5283 GB, free: 58.51 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.109e-05/0.6705, allocations: 120.1 kB / 0.5284 GB, free: 58.37 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003457/0.6708, allocations: 337.5 kB / 0.5288 GB, free: 58.03 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000132/0.671, allocations: 57.7 kB / 0.5288 GB, free: 57.96 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001563/0.6711, allocations: 448.3 kB / 0.5293 GB, free: 57.52 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002926/0.6714, allocations: 0.5428 MB / 0.5298 GB, free: 56.96 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.224e-05/0.6715, allocations: 32 kB / 0.5298 GB, free: 56.93 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.341e-05/0.6716, allocations: 382.8 kB / 0.5302 GB, free: 56.55 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008028/0.6724, allocations: 0.5114 MB / 0.5307 GB, free: 56.04 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009289/0.6734, allocations: 0.7396 MB / 0.5314 GB, free: 55.23 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02862/0.702, allocations: 5.989 MB / 0.5372 GB, free: 49.17 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.622e-06/0.702, allocations: 0 / 0.5372 GB, free: 49.17 MB / 362.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.005533/0.7076, allocations: 2.199 MB / 0.5394 GB, free: 46.95 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001183/0.7077, allocations: 238.7 kB / 0.5396 GB, free: 46.65 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.124e-05/0.7077, allocations: 4 kB / 0.5396 GB, free: 46.65 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003736/0.7115, allocations: 0.7874 MB / 0.5404 GB, free: 45.85 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007366/0.7189, allocations: 1.167 MB / 0.5415 GB, free: 44.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009259/0.7282, allocations: 16.98 MB / 0.5581 GB, free: 26.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001517/0.7297, allocations: 92.05 kB / 0.5582 GB, free: 25.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003173/0.73, allocations: 67.95 kB / 0.5583 GB, free: 25.89 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.957e-06/0.7301, allocations: 4 kB / 0.5583 GB, free: 25.89 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005556/0.7356, allocations: 1.979 MB / 0.5602 GB, free: 23.89 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/0.7357, allocations: 4 kB / 0.5602 GB, free: 23.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003616/0.7393, allocations: 0.7419 MB / 0.5609 GB, free: 23.13 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007499/0.7468, allocations: 1.167 MB / 0.5621 GB, free: 21.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00922/0.7561, allocations: 16.91 MB / 0.5786 GB, free: 3.395 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001405/0.7575, allocations: 87.86 kB / 0.5787 GB, free: 3.309 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002879/0.7578, allocations: 67.95 kB / 0.5787 GB, free: 3.242 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 (159): * Single equations (assignments): 146 * 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: 5 * 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: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {5 22} Notification: Performance of prepare postOptimizeDAE: time 0.000943/0.7588, allocations: 364.8 kB / 0.5791 GB, free: 2.875 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002226/0.759, allocations: 75.06 kB / 0.5792 GB, free: 2.801 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005677/0.7647, allocations: 2.339 MB / 0.5814 GB, free: 444 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.681e-05/0.7648, allocations: 20 kB / 0.5815 GB, free: 424 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.789e-06/0.7648, allocations: 3.984 kB / 0.5815 GB, free: 420 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.814e-05/0.7648, allocations: 11.91 kB / 0.5815 GB, free: 408 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008969/0.7738, allocations: 3.785 MB / 0.5852 GB, free: 12.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.14e-05/0.7738, allocations: 0 / 0.5852 GB, free: 12.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007409/0.7812, allocations: 1.073 MB / 0.5862 GB, free: 11.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003419/0.7847, allocations: 0.7588 MB / 0.587 GB, free: 10.68 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005003/0.7852, allocations: 47.92 kB / 0.587 GB, free: 10.63 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01525/0.8005, allocations: 17.53 MB / 0.6041 GB, free: 7.441 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/0.8006, allocations: 12.12 kB / 0.6041 GB, free: 7.43 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007119/0.8077, allocations: 3.053 MB / 0.6071 GB, free: 4.324 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003158/0.808, allocations: 156 kB / 0.6073 GB, free: 4.152 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001759/0.8082, allocations: 36 kB / 0.6073 GB, free: 4.117 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001075/0.8093, allocations: 99.78 kB / 0.6074 GB, free: 4.02 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003337/0.8097, allocations: 137.8 kB / 0.6075 GB, free: 3.883 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001047/0.8098, allocations: 55.98 kB / 0.6076 GB, free: 3.828 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002546/0.81, allocations: 223.2 kB / 0.6078 GB, free: 3.613 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8101, allocations: 4 kB / 0.6078 GB, free: 3.609 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002517/0.8126, allocations: 0.7359 MB / 0.6085 GB, free: 2.871 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 (144): * Single equations (assignments): 131 * 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: 5 * 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: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 3 {5 28,2 4,2 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003385/0.8129, allocations: 159 kB / 0.6087 GB, free: 2.707 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01727/0.8302, allocations: 4.703 MB / 0.6133 GB, free: 13.9 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.406e-06/0.8303, allocations: 0 / 0.6133 GB, free: 13.9 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008133/0.8384, allocations: 2.081 MB / 0.6153 GB, free: 11.78 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001648/0.8401, allocations: 218.7 kB / 0.6155 GB, free: 11.57 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005992/0.8461, allocations: 3.459 MB / 0.6189 GB, free: 8.059 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008422/0.847, allocations: 1.109 MB / 0.62 GB, free: 6.918 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001706/0.8487, allocations: 211.5 kB / 0.6202 GB, free: 6.707 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003963/0.8491, allocations: 87.39 kB / 0.6202 GB, free: 6.621 MB / 410.7 MB Notification: Performance of SimCode: time 1.202e-06/0.8491, allocations: 0 / 0.6202 GB, free: 6.621 MB / 410.7 MB Notification: Performance of Templates: time 0.03791/0.887, allocations: 21.21 MB / 0.641 GB, free: 1.395 MB / 426.7 MB make -j1 -f AES_AES.Coursework.ThermSys_Generation.AHU_control_case_003.makefile (rm -f AES_AES.Coursework.ThermSys_Generation.AHU_control_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_Generation.AHU_control_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_Generation.AHU_control_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_Generation.AHU_control_case_003.sim & ./AES_AES.Coursework.ThermSys_Generation.AHU_control_case_003 -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ThermSys_Generation.AHU_control_case_003.pipe 2>&1)