Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.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_component_models.Controlled_AHU_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002") translateModel(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001148/0.001148, allocations: 117.5 kB / 16.42 MB, free: 6.02 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.001173/0.001173, allocations: 182.8 kB / 17.35 MB, free: 5.625 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.288/1.288, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09294/0.09294, allocations: 22.33 MB / 313.5 MB, free: 8.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 63.91 kB / 437.7 MB, free: 11.78 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09267/0.09392, allocations: 54.95 MB / 492.7 MB, free: 4.777 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002): time 0.00475/0.0987, allocations: 4.243 MB / 496.9 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001824/0.1005, allocations: 1.325 MB / 498.3 MB, free: 15.18 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001595/0.1007, allocations: 4 kB / 498.3 MB, free: 15.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001436/0.1009, allocations: 87.08 kB / 498.3 MB, free: 15.09 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003928/0.1013, allocations: 237.9 kB / 498.6 MB, free: 14.86 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005016/0.1018, allocations: 307.5 kB / 498.9 MB, free: 14.55 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009157/0.1027, allocations: 1.169 MB / 0.4883 GB, free: 13.38 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006039/0.1033, allocations: 0.5555 MB / 0.4889 GB, free: 12.82 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004412/0.1038, allocations: 470.7 kB / 0.4893 GB, free: 12.36 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005756/0.1044, allocations: 0.5022 MB / 0.4898 GB, free: 11.86 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001464/0.1045, allocations: 108 kB / 0.4899 GB, free: 11.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001645/0.1047, allocations: 108 kB / 0.49 GB, free: 11.64 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001876/0.1049, allocations: 231.4 kB / 0.4902 GB, free: 11.42 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004193/0.1053, allocations: 478.1 kB / 0.4907 GB, free: 10.95 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000954/0.1063, allocations: 1.121 MB / 0.4918 GB, free: 9.824 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1063, allocations: 0 / 0.4918 GB, free: 9.824 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1063, allocations: 0 / 0.4918 GB, free: 9.824 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.959e-05/0.1063, allocations: 0 / 0.4918 GB, free: 9.824 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: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.002327/0.1086, allocations: 1.084 MB / 0.4928 GB, free: 8.691 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.76e-05/0.1087, allocations: 12.03 kB / 0.4929 GB, free: 8.68 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001405/0.1088, allocations: 84.42 kB / 0.4929 GB, free: 8.598 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002278/0.1091, allocations: 255.9 kB / 0.4932 GB, free: 8.309 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.45e-05/0.1091, allocations: 74.06 kB / 0.4933 GB, free: 8.234 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001288/0.1093, allocations: 88 kB / 0.4933 GB, free: 8.148 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00131/0.1106, allocations: 0.7999 MB / 0.4941 GB, free: 7.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.336e-05/0.1106, allocations: 7.984 kB / 0.4941 GB, free: 7.332 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.852e-05/0.1107, allocations: 36 kB / 0.4942 GB, free: 7.297 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.888e-05/0.1107, allocations: 20 kB / 0.4942 GB, free: 7.277 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001419/0.1121, allocations: 0.8277 MB / 0.495 GB, free: 6.453 MB / 382.1 MB Warning: Alias set with conflicting start values * Candidate: V.T(start = V.Tstart = 291.15, confidence number = 2) * Candidate: V.air.T(start = 288.15, confidence number = 8) * Candidate: V.heatPort.T(start = 288.15, confidence number = 8) => Select value from V.T(start = V.Tstart = 291.15) for variable: V.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.004158/0.1163, allocations: 2.605 MB / 0.4975 GB, free: 3.707 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002029/0.1184, allocations: 1.011 MB / 0.4985 GB, free: 2.695 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006449/0.119, allocations: 419.7 kB / 0.4989 GB, free: 2.281 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.712e-05/0.1191, allocations: 12.98 kB / 0.4989 GB, free: 2.27 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.164e-05/0.1191, allocations: 47.56 kB / 0.499 GB, free: 2.211 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004432/0.1196, allocations: 127.4 kB / 0.4991 GB, free: 2.086 MB / 382.1 MB Notification: Performance of pre-optimization done (n=113): time 2.585e-06/0.1196, allocations: 0 / 0.4991 GB, free: 2.086 MB / 382.1 MB Notification: Performance of matching and sorting (n=124): time 0.2018/0.3214, allocations: 3.533 MB / 0.5026 GB, free: 21.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.113e-05/0.3215, allocations: 68.47 kB / 0.5026 GB, free: 21.84 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001807/0.3217, allocations: 218 kB / 0.5028 GB, free: 21.74 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.355e-05/0.3217, allocations: 49.58 kB / 0.5029 GB, free: 21.71 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.165e-05/0.3218, allocations: 243.3 kB / 0.5031 GB, free: 21.57 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002106/0.3221, allocations: 445 kB / 0.5035 GB, free: 21.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002622/0.3223, allocations: 176.5 kB / 0.5037 GB, free: 21.3 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.282e-05/0.3224, allocations: 358 kB / 0.504 GB, free: 20.99 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005483/0.323, allocations: 362.4 kB / 0.5044 GB, free: 20.99 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006108/0.3236, allocations: 462.6 kB / 0.5048 GB, free: 20.93 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0184/0.342, allocations: 3.475 MB / 0.5082 GB, free: 20.79 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/0.342, allocations: 5.375 kB / 0.5082 GB, free: 20.78 MB / 382.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002613/0.3446, allocations: 1.209 MB / 0.5094 GB, free: 20.65 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.3447, allocations: 8.406 kB / 0.5094 GB, free: 20.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.3447, allocations: 2.156 kB / 0.5094 GB, free: 20.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001048/0.3457, allocations: 209.7 kB / 0.5096 GB, free: 20.61 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006332/0.3521, allocations: 0.8147 MB / 0.5104 GB, free: 20.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008523/0.3606, allocations: 14.94 MB / 0.525 GB, free: 6.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007261/0.3614, allocations: 31.38 kB / 0.525 GB, free: 6.336 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.891e-05/0.3615, allocations: 39.62 kB / 0.5251 GB, free: 6.336 MB / 382.1 MB Warning: Assuming fixed start value for the following 4 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 V.p:VARIABLE(min = 0.0 start = V.pstart unit = "Pa" fixed = true nominal = 1e5 stateSelect=StateSelect.always ) type: Real V.T:VARIABLE(min = 0.0 start = V.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: 5 * 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 (124): * Single equations (assignments): 114 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 4 * 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): 6 systems {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): 4 systems {(2,5,100.0%), (1,2,100.0%), (1,1,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003987/0.3619, allocations: 238 kB / 0.5253 GB, free: 6.203 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/0.362, allocations: 55.28 kB / 0.5253 GB, free: 6.176 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003193/0.3652, allocations: 1.479 MB / 0.5268 GB, free: 6.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.57e-05/0.3652, allocations: 11.53 kB / 0.5268 GB, free: 6.016 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.3652, allocations: 0 / 0.5268 GB, free: 6.016 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.407e-05/0.3653, allocations: 130.6 kB / 0.5269 GB, free: 5.891 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.679e-05/0.3654, allocations: 20.44 kB / 0.5269 GB, free: 5.891 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005611/0.366, allocations: 29.2 kB / 0.527 GB, free: 5.891 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002096/0.3662, allocations: 93.55 kB / 0.5271 GB, free: 5.883 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.00848/0.3747, allocations: 1.969 MB / 0.529 GB, free: 5.613 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002671/0.3774, allocations: 1.714 MB / 0.5307 GB, free: 4.906 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0006814/0.3781, allocations: 483.6 kB / 0.5311 GB, free: 4.715 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001517/0.3782, allocations: 176.3 kB / 0.5313 GB, free: 4.605 MB / 382.1 MB Notification: Performance of Backend: time 5.71e-07/0.3782, allocations: 4 kB / 0.5313 GB, free: 4.602 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00712/0.3854, allocations: 1.744 MB / 0.533 GB, free: 3.797 MB / 382.1 MB Notification: Performance of SimCode: time 0.002272/0.3876, allocations: 2.01 MB / 0.535 GB, free: 2.465 MB / 382.1 MB Notification: Performance of Templates: time 0.01803/0.4057, allocations: 12.64 MB / 0.5473 GB, free: 10.8 MB / 398.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.sim & ./AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.pipe 2>&1)