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.0009309/0.0009307, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.0008966/0.0008966, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.588/1.588, allocations: 223.3 MB / 240 MB, free: 5.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2295/0.2295, allocations: 22.34 MB / 313.4 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003267/0.0003267, allocations: 8 kB / 381.9 MB, free: 10.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3374/0.3377, allocations: 55.98 MB / 437.9 MB, free: 39.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002): time 0.003358/0.3412, allocations: 3.647 MB / 441.6 MB, free: 36.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001715/0.3429, allocations: 1.288 MB / 442.8 MB, free: 35.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002024/0.3431, allocations: 2.75 kB / 442.9 MB, free: 35.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001211/0.3432, allocations: 63.48 kB / 442.9 MB, free: 35.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000412/0.3437, allocations: 209.8 kB / 443.1 MB, free: 35.51 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004452/0.3441, allocations: 204.8 kB / 443.3 MB, free: 35.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007761/0.3449, allocations: 1.048 MB / 444.4 MB, free: 34.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005887/0.3455, allocations: 463.8 kB / 444.8 MB, free: 34.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003668/0.3459, allocations: 389.9 kB / 445.2 MB, free: 34.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004743/0.3464, allocations: 468.8 kB / 445.7 MB, free: 34.38 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.192e-05/0.3465, allocations: 54.78 kB / 445.7 MB, free: 34.38 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000113/0.3466, allocations: 55.78 kB / 445.8 MB, free: 34.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001283/0.3467, allocations: 165.8 kB / 445.9 MB, free: 34.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000143/0.3469, allocations: 176.2 kB / 446.1 MB, free: 34.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005441/0.3474, allocations: 0.8127 MB / 446.9 MB, free: 34.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.3474, allocations: 0 / 446.9 MB, free: 34.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3474, allocations: 0 / 446.9 MB, free: 34.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.669e-06/0.3474, allocations: 4 kB / 446.9 MB, free: 34.01 MB / 350.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.001829/0.3493, allocations: 0.9347 MB / 447.9 MB, free: 33.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.3493, allocations: 8.719 kB / 447.9 MB, free: 33.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001482/0.3495, allocations: 82.62 kB / 447.9 MB, free: 33.37 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001901/0.3497, allocations: 246.2 kB / 448.2 MB, free: 33.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.857e-05/0.3497, allocations: 63.78 kB / 448.2 MB, free: 33.09 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000103/0.3498, allocations: 90.52 kB / 448.3 MB, free: 33.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001203/0.3511, allocations: 0.8019 MB / 449.1 MB, free: 32.72 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.873e-05/0.3511, allocations: 3.953 kB / 449.1 MB, free: 32.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.253e-05/0.3512, allocations: 33.78 kB / 449.2 MB, free: 32.69 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.958e-05/0.3512, allocations: 26.47 kB / 449.2 MB, free: 32.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001215/0.3524, allocations: 0.8136 MB / 450 MB, free: 32.41 MB / 350.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.003461/0.3559, allocations: 2.617 MB / 452.6 MB, free: 30.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001765/0.3577, allocations: 0.9876 MB / 453.6 MB, free: 30.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005571/0.3582, allocations: 415.8 kB / 454 MB, free: 30.26 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.486e-05/0.3583, allocations: 23.42 kB / 454 MB, free: 30.25 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.841e-05/0.3583, allocations: 49.52 kB / 454.1 MB, free: 30.2 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004423/0.3588, allocations: 123.1 kB / 454.2 MB, free: 30.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=113): time 4.138e-06/0.3588, allocations: 2.625 kB / 454.2 MB, free: 30.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=124): time 0.007655/0.3665, allocations: 3.541 MB / 457.8 MB, free: 28.35 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.659e-05/0.3665, allocations: 63.78 kB / 457.8 MB, free: 28.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002042/0.3668, allocations: 218.6 kB / 458 MB, free: 28.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.118e-05/0.3668, allocations: 47.27 kB / 458.1 MB, free: 28.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001248/0.3669, allocations: 239.5 kB / 458.3 MB, free: 27.9 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002355/0.3672, allocations: 418.4 kB / 458.7 MB, free: 27.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.651e-05/0.3673, allocations: 25.28 kB / 458.7 MB, free: 27.55 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.194e-05/0.3673, allocations: 362.2 kB / 459.1 MB, free: 27.21 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005971/0.3679, allocations: 355.2 kB / 459.4 MB, free: 27.07 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006345/0.3686, allocations: 449.3 kB / 459.9 MB, free: 26.86 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006847/0.3693, allocations: 434 kB / 460.3 MB, free: 26.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.656e-06/0.3693, allocations: 1.031 kB / 460.3 MB, free: 26.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002471/0.3718, allocations: 1.207 MB / 461.5 MB, free: 26.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.679e-05/0.3718, allocations: 7.625 kB / 461.5 MB, free: 26.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.3718, allocations: 1.156 kB / 461.5 MB, free: 26.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001041/0.3729, allocations: 227 kB / 461.7 MB, free: 26.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005496/0.3784, allocations: 0.8183 MB / 462.6 MB, free: 25.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009123/0.3875, allocations: 13.89 MB / 476.5 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00104/0.3886, allocations: 56.38 kB / 476.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.95e-05/0.3887, allocations: 41.38 kB / 476.5 MB, free: 11.95 MB / 350.1 MB Warning: Assuming fixed start value for the following 4 variables: V.T:VARIABLE(min = max(0.0, max(0.0, 0.0)) start = V.Tstart unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) type: Real V.p:VARIABLE(min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0))))))))))))) start = V.pstart unit = "Pa" fixed = true nominal = 100000.0 stateSelect=StateSelect.always ) type: Real 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: 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 (linear and non-linear blocks): 6 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 6 {1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,77.8%) 4,(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006239/0.3893, allocations: 257.8 kB / 476.8 MB, free: 11.76 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001496/0.3895, allocations: 54.19 kB / 476.9 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003451/0.393, allocations: 1.491 MB / 478.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.05e-05/0.393, allocations: 18.28 kB / 478.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.398e-06/0.393, allocations: 1.938 kB / 478.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.248e-05/0.393, allocations: 6.703 kB / 478.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005184/0.3982, allocations: 2.574 MB / 480.9 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-05/0.3983, allocations: 5.5 kB / 481 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005044/0.4033, allocations: 0.7574 MB / 481.7 MB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002109/0.4054, allocations: 388.5 kB / 482.1 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000145/0.4056, allocations: 40.64 kB / 482.1 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01054/0.4162, allocations: 14.13 MB / 496.3 MB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.361e-05/0.4162, allocations: 18.22 kB / 496.3 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004739/0.4209, allocations: 2.048 MB / 498.3 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002943/0.4213, allocations: 136 kB / 498.5 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001707/0.4214, allocations: 34.25 kB / 498.5 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008423/0.4223, allocations: 54.81 kB / 498.5 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003882/0.4227, allocations: 129.1 kB / 498.7 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001158/0.4228, allocations: 46.2 kB / 498.7 MB, free: 9.992 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002178/0.4231, allocations: 162.9 kB / 498.9 MB, free: 9.891 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4231, allocations: 0 / 498.9 MB, free: 9.891 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001809/0.4249, allocations: 256.7 kB / 499.1 MB, free: 9.852 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 5 (U1.T,U1.phi,V.Ma,V.p,V.T) * 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 (119): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 6 {1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,77.8%) 4,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.000346/0.4252, allocations: 153.6 kB / 499.3 MB, free: 9.715 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Air/MAvolume.mo:13:3-13:61:writable] Warning: Variable $DER.V.p has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.007857/0.4331, allocations: 2.045 MB / 0.4896 GB, free: 8.859 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.386e-05/0.4331, allocations: 0.9062 kB / 0.4896 GB, free: 8.859 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006429/0.4396, allocations: 1.632 MB / 0.4912 GB, free: 8.129 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001433/0.441, allocations: 188.3 kB / 0.4913 GB, free: 7.996 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003925/0.445, allocations: 2.253 MB / 0.4935 GB, free: 5.812 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007137/0.4457, allocations: 0.9419 MB / 0.4945 GB, free: 4.93 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0009001/0.4466, allocations: 116.2 kB / 0.4946 GB, free: 4.832 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002806/0.4469, allocations: 62 kB / 0.4946 GB, free: 4.777 MB / 366.1 MB Notification: Performance of SimCode: time 1.172e-06/0.4469, allocations: 0 / 0.4946 GB, free: 4.777 MB / 366.1 MB Notification: Performance of Templates: time 0.02492/0.4718, allocations: 12.42 MB / 0.5068 GB, free: 8.715 MB / 382.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)