Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_003.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_case_studies.HVAC_simple.AHU_control_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_003") translateModel(AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_003,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_003") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0012/0.0012, allocations: 110.7 kB / 16.42 MB, free: 6.031 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00123/0.00123, allocations: 187.3 kB / 17.35 MB, free: 5.602 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.341/1.341, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09374/0.09374, allocations: 22.33 MB / 313.5 MB, free: 8.875 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002367/0.002367, allocations: 59.91 kB / 437.8 MB, free: 11.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1115, allocations: 54.96 MB / 492.7 MB, free: 4.73 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_003): time 0.007769/0.1193, allocations: 6.838 MB / 499.5 MB, free: 13.86 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003941/0.1233, allocations: 2.201 MB / 0.49 GB, free: 11.65 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007487/0.124, allocations: 12 kB / 0.49 GB, free: 11.64 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004965/0.1246, allocations: 178.1 kB / 0.4902 GB, free: 11.46 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001123/0.1257, allocations: 432.1 kB / 0.4906 GB, free: 11.04 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001427/0.1271, allocations: 0.6474 MB / 0.4912 GB, free: 10.39 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00241/0.1296, allocations: 2.16 MB / 0.4933 GB, free: 8.215 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001763/0.1313, allocations: 1.331 MB / 0.4946 GB, free: 6.859 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001322/0.1327, allocations: 0.8883 MB / 0.4955 GB, free: 5.969 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001565/0.1342, allocations: 1.059 MB / 0.4965 GB, free: 4.906 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004977/0.1348, allocations: 220 kB / 0.4967 GB, free: 4.691 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007269/0.1355, allocations: 252 kB / 0.497 GB, free: 4.445 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004474/0.1359, allocations: 478.7 kB / 0.4974 GB, free: 3.977 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009024/0.1369, allocations: 0.922 MB / 0.4983 GB, free: 3.051 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002054/0.1389, allocations: 2.261 MB / 0.5005 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.1389, allocations: 0 / 0.5005 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1389, allocations: 0 / 0.5005 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.007e-05/0.139, allocations: 0 / 0.5005 GB, free: 0.7812 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: 422 * Number of variables: 422 Notification: Performance of Generate backend data structure: time 0.1974/0.3364, allocations: 1.931 MB / 0.5024 GB, free: 21.75 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.3364, allocations: 15.69 kB / 0.5024 GB, free: 21.75 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003134/0.3367, allocations: 161.9 kB / 0.5026 GB, free: 21.67 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008107/0.3376, allocations: 0.6392 MB / 0.5032 GB, free: 21.45 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.755e-05/0.3376, allocations: 125.3 kB / 0.5033 GB, free: 21.45 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002348/0.3379, allocations: 164.5 kB / 0.5035 GB, free: 21.45 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002782/0.3407, allocations: 1.8 MB / 0.5053 GB, free: 21.33 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.282e-05/0.3407, allocations: 0 / 0.5053 GB, free: 21.33 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001394/0.3409, allocations: 73 kB / 0.5053 GB, free: 21.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.736e-05/0.3409, allocations: 40.47 kB / 0.5054 GB, free: 21.32 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002784/0.3437, allocations: 1.687 MB / 0.507 GB, free: 21.31 MB / 382.1 MB Warning: Alias set with conflicting start values * Candidate: Room1.T(start = Room1.Tstart = 293.15, confidence number = 2) * Candidate: Room1.air.T(start = 288.15, confidence number = 8) * Candidate: Room1.heatPort.T(start = 288.15, confidence number = 8) * Candidate: LocalActuator_Room1.port.T(start = 288.15, confidence number = 8) * Candidate: conv1a.port_a.T(start = 288.15, confidence number = 8) => Select value from Room1.T(start = Room1.Tstart = 293.15) for variable: Room1.T Warning: Alias set with conflicting start values * Candidate: Room2.T(start = Room2.Tstart = 293.15, confidence number = 2) * Candidate: Room2.air.T(start = 288.15, confidence number = 8) * Candidate: Room2.heatPort.T(start = 288.15, confidence number = 8) * Candidate: conv2a.port_a.T(start = 288.15, confidence number = 8) => Select value from Room2.T(start = Room2.Tstart = 293.15) for variable: Room2.T Warning: Alias set with conflicting start values * Candidate: U1.T(start = U1.Tstart = 293.15, confidence number = 2) * Candidate: U1.air.T(start = 288.15, confidence number = 8) => Select value from U1.T(start = U1.Tstart = 293.15) for variable: U1.T Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01025/0.354, allocations: 5.908 MB / 0.5128 GB, free: 19.61 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002818/0.3568, allocations: 1.6 MB / 0.5143 GB, free: 19.54 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001258/0.3581, allocations: 0.8167 MB / 0.5151 GB, free: 19.26 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001204/0.3582, allocations: 36.2 kB / 0.5152 GB, free: 19.25 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.161e-05/0.3582, allocations: 53.98 kB / 0.5152 GB, free: 19.2 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001262/0.3595, allocations: 293.5 kB / 0.5155 GB, free: 19.09 MB / 382.1 MB Notification: Performance of pre-optimization done (n=198): time 4.418e-06/0.3595, allocations: 5.125 kB / 0.5155 GB, free: 19.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=218): time 0.02752/0.3871, allocations: 8.554 MB / 0.5239 GB, free: 15.21 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.527e-05/0.3872, allocations: 126.3 kB / 0.524 GB, free: 15.09 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003493/0.3875, allocations: 326 kB / 0.5243 GB, free: 14.87 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001299/0.3877, allocations: 61.86 kB / 0.5244 GB, free: 14.81 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001706/0.3878, allocations: 482.6 kB / 0.5248 GB, free: 14.39 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003849/0.3882, allocations: 0.7605 MB / 0.5256 GB, free: 13.72 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004934/0.3887, allocations: 329.9 kB / 0.5259 GB, free: 13.53 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.376e-05/0.3888, allocations: 331.9 kB / 0.5262 GB, free: 13.21 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001189/0.39, allocations: 0.7024 MB / 0.5269 GB, free: 12.84 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00139/0.3914, allocations: 0.9514 MB / 0.5278 GB, free: 12.21 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.04184/0.4332, allocations: 7.993 MB / 0.5356 GB, free: 7.426 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.4333, allocations: 0 / 0.5356 GB, free: 7.426 MB / 382.1 MB Notification: Performance of matching and sorting (n=249) (initialization): time 0.007205/0.4405, allocations: 2.902 MB / 0.5384 GB, free: 4.492 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.4405, allocations: 9.875 kB / 0.5385 GB, free: 4.484 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.4405, allocations: 4 kB / 0.5385 GB, free: 4.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005339/0.4459, allocations: 1.037 MB / 0.5395 GB, free: 3.418 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008646/0.4545, allocations: 1.192 MB / 0.5406 GB, free: 2.234 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02066/0.4752, allocations: 25.09 MB / 0.5651 GB, free: 6.895 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001595/0.4768, allocations: 67.97 kB / 0.5652 GB, free: 6.828 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001632/0.477, allocations: 83.94 kB / 0.5653 GB, free: 6.746 MB / 414.1 MB Warning: Assuming fixed start value for the following 6 variables: U1.T:VARIABLE(min = 0.0 start = U1.Tstart unit = "K" fixed = true nominal = 300.0 ) "controlled T" type: Real U1.phi:VARIABLE(start = U1.phistart fixed = true ) type: Real Room2.p:VARIABLE(min = 0.0 start = Room2.pstart unit = "Pa" fixed = true nominal = 1e5 stateSelect=StateSelect.always ) type: Real Room2.T:VARIABLE(min = 0.0 start = Room2.Tstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real Room1.p:VARIABLE(min = 0.0 start = Room1.pstart unit = "Pa" fixed = true nominal = 1e5 stateSelect=StateSelect.always ) type: Real Room1.T:VARIABLE(min = 0.0 start = Room1.Tstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001739/0.4788, allocations: 0.9022 MB / 0.5662 GB, free: 5.848 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001382/0.4801, allocations: 0.9279 MB / 0.5671 GB, free: 4.844 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.04487/0.525, allocations: 7.934 MB / 0.5748 GB, free: 12.84 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.664e-06/0.5251, allocations: 320 / 0.5748 GB, free: 12.84 MB / 430.1 MB Notification: Performance of matching and sorting (n=249) (initialization_lambda0): time 0.007928/0.533, allocations: 2.79 MB / 0.5775 GB, free: 10.02 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.533, allocations: 8 kB / 0.5775 GB, free: 10.01 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.5331, allocations: 7.984 kB / 0.5776 GB, free: 10 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005635/0.5387, allocations: 1.028 MB / 0.5786 GB, free: 8.957 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00925/0.548, allocations: 1.184 MB / 0.5797 GB, free: 7.773 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01977/0.5677, allocations: 25.07 MB / 0.6042 GB, free: 12.42 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001478/0.5692, allocations: 55.98 kB / 0.6043 GB, free: 12.37 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002964/0.5696, allocations: 83.94 kB / 0.6043 GB, free: 12.29 MB / 462.1 MB Warning: Assuming fixed start value for the following 6 variables: U1.T:VARIABLE(min = 0.0 start = U1.Tstart unit = "K" fixed = true nominal = 300.0 ) "controlled T" type: Real U1.phi:VARIABLE(start = U1.phistart fixed = true ) type: Real Room2.p:VARIABLE(min = 0.0 start = Room2.pstart unit = "Pa" fixed = true nominal = 1e5 stateSelect=StateSelect.always ) type: Real Room2.T:VARIABLE(min = 0.0 start = Room2.Tstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real Room1.p:VARIABLE(min = 0.0 start = Room1.pstart unit = "Pa" fixed = true nominal = 1e5 stateSelect=StateSelect.always ) type: Real Room1.T:VARIABLE(min = 0.0 start = Room1.Tstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (200): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 9 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 9 systems {1, 1, 1, 1, 1, 1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(2,5,100.0%), (1,1,100.0%), (2,5,100.0%), (1,2,100.0%), (1,2,100.0%), (1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,25)} Notification: Performance of prepare postOptimizeDAE: time 0.00067/0.5702, allocations: 307.6 kB / 0.6046 GB, free: 11.98 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000319/0.5706, allocations: 107.3 kB / 0.6047 GB, free: 11.88 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008081/0.5787, allocations: 3.047 MB / 0.6077 GB, free: 8.793 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.629e-05/0.5787, allocations: 19.95 kB / 0.6077 GB, free: 8.773 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.5787, allocations: 0 / 0.6077 GB, free: 8.773 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002052/0.5789, allocations: 168.4 kB / 0.6079 GB, free: 8.59 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002003/0.5791, allocations: 47.92 kB / 0.6079 GB, free: 8.543 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001079/0.5802, allocations: 59.97 kB / 0.608 GB, free: 8.484 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004041/0.5806, allocations: 189.8 kB / 0.6082 GB, free: 8.297 MB / 462.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01445/0.5951, allocations: 3.548 MB / 0.6116 GB, free: 4.75 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004902/0.6, allocations: 3.006 MB / 0.6146 GB, free: 1.715 MB / 462.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001325/0.6014, allocations: 0.8316 MB / 0.6154 GB, free: 0.8867 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0002474/0.6016, allocations: 231.1 kB / 0.6156 GB, free: 0.668 MB / 462.1 MB Notification: Performance of Backend: time 8.02e-07/0.6016, allocations: 0 / 0.6156 GB, free: 0.668 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.02239/0.624, allocations: 5.984 MB / 0.6214 GB, free: 10.5 MB / 478.1 MB Notification: Performance of SimCode: time 0.004845/0.6289, allocations: 3.672 MB / 0.625 GB, free: 6.789 MB / 478.1 MB Notification: Performance of Templates: time 0.05187/0.6808, allocations: 33.87 MB / 0.6581 GB, free: 4.984 MB / 0.4981 GB make -j1 -f AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_003.makefile (rm -f AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_003.pipe ; mkfifo AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_003.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_003.pipe >> ../files/AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_003.sim & ./AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_003 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_case_studies.HVAC_simple.AHU_control_case_003.pipe 2>&1)