Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.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_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001") translateModel(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009754/0.0009755, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.006926/0.006926, allocations: 169 kB / 16.26 MB, free: 6.652 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.462/1.462, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2209/0.2209, allocations: 22.35 MB / 313.8 MB, free: 13.07 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003662/0.0003659, allocations: 8 kB / 382.6 MB, free: 10.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3759/0.3763, allocations: 55.98 MB / 438.6 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.003594/0.3799, allocations: 3.638 MB / 442.2 MB, free: 36.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001968/0.3819, allocations: 1.269 MB / 443.5 MB, free: 35.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001812/0.3821, allocations: 2.625 kB / 443.5 MB, free: 35.7 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001001/0.3822, allocations: 56.11 kB / 443.5 MB, free: 35.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004008/0.3826, allocations: 196.6 kB / 443.7 MB, free: 35.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004712/0.3831, allocations: 257.8 kB / 444 MB, free: 35.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006739/0.3838, allocations: 1.023 MB / 445 MB, free: 34.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004217/0.3842, allocations: 354.8 kB / 445.3 MB, free: 34.74 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000348/0.3846, allocations: 338.7 kB / 445.7 MB, free: 34.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004373/0.385, allocations: 391 kB / 446.1 MB, free: 34.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.814e-05/0.3851, allocations: 43.03 kB / 446.1 MB, free: 34.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001045/0.3852, allocations: 43.25 kB / 446.1 MB, free: 34.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001011/0.3853, allocations: 136.9 kB / 446.3 MB, free: 34.37 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002879/0.3856, allocations: 401.2 kB / 446.7 MB, free: 34.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006708/0.3863, allocations: 0.8947 MB / 447.6 MB, free: 33.88 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.743e-06/0.3863, allocations: 0 / 447.6 MB, free: 33.88 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.564e-06/0.3863, allocations: 4 kB / 447.6 MB, free: 33.88 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.767e-05/0.3864, allocations: 0 / 447.6 MB, free: 33.88 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: 207 * Number of variables: 207 Notification: Performance of Generate backend data structure: time 0.001758/0.3881, allocations: 0.8608 MB / 448.4 MB, free: 33.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/0.3882, allocations: 12.94 kB / 448.4 MB, free: 33.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000139/0.3883, allocations: 78.25 kB / 448.5 MB, free: 33.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002052/0.3885, allocations: 240.3 kB / 448.8 MB, free: 33 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.489e-05/0.3886, allocations: 64.12 kB / 448.8 MB, free: 32.97 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001177/0.3887, allocations: 82.12 kB / 448.9 MB, free: 32.94 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001151/0.3899, allocations: 0.6925 MB / 449.6 MB, free: 32.65 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.874e-05/0.3899, allocations: 0 / 449.6 MB, free: 32.65 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.285e-05/0.39, allocations: 33.34 kB / 449.6 MB, free: 32.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.912e-05/0.39, allocations: 22.03 kB / 449.6 MB, free: 32.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001112/0.3911, allocations: 0.6971 MB / 450.3 MB, free: 32.39 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: AHU.T(start = AHU.Tstart = 293.15, confidence number = 2) * Candidate: AHU.air.T(start = 288.15, confidence number = 8) => Select value from AHU.T(start = AHU.Tstart = 293.15) for variable: AHU.T Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003174/0.3943, allocations: 2.306 MB / 452.6 MB, free: 30.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001001/0.3953, allocations: 0.6722 MB / 453.3 MB, free: 30.62 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004713/0.3958, allocations: 339.9 kB / 453.7 MB, free: 30.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.644e-05/0.3959, allocations: 16.2 kB / 453.7 MB, free: 30.47 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.708e-05/0.3959, allocations: 43.34 kB / 453.7 MB, free: 30.42 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 2.755e-06/0.3959, allocations: 0 / 453.7 MB, free: 30.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.006979/0.4029, allocations: 3.127 MB / 456.8 MB, free: 28.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/0.403, allocations: 63.81 kB / 456.9 MB, free: 28.74 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001981/0.4032, allocations: 209 kB / 457.1 MB, free: 28.6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.581e-05/0.4032, allocations: 41.02 kB / 457.1 MB, free: 28.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.4034, allocations: 231.5 kB / 457.4 MB, free: 28.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002131/0.4036, allocations: 381.8 kB / 457.7 MB, free: 28.06 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001099/0.4037, allocations: 78.27 kB / 457.8 MB, free: 28.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.685e-05/0.4038, allocations: 360.7 kB / 458.2 MB, free: 27.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005034/0.4043, allocations: 300.2 kB / 458.5 MB, free: 27.56 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005589/0.4049, allocations: 389.8 kB / 458.8 MB, free: 27.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01158/0.4165, allocations: 2.317 MB / 461.2 MB, free: 26.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.434e-06/0.4165, allocations: 0 / 461.2 MB, free: 26.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002574/0.4191, allocations: 1.046 MB / 462.2 MB, free: 26.22 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.932e-05/0.4191, allocations: 5.344 kB / 462.2 MB, free: 26.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/0.4192, allocations: 1.25 kB / 462.2 MB, free: 26.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001203/0.4204, allocations: 233.6 kB / 462.4 MB, free: 26.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005543/0.4259, allocations: 0.7458 MB / 463.2 MB, free: 26.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009088/0.435, allocations: 13.91 MB / 477.1 MB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007448/0.4358, allocations: 57.97 kB / 477.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.668e-05/0.4359, allocations: 26.22 kB / 477.2 MB, free: 12.07 MB / 350.1 MB Warning: Assuming fixed start value for the following 4 variables: AHU.T:VARIABLE(min = max(0.0, 0.0) start = AHU.Tstart unit = "K" fixed = true nominal = 300.0 ) "controlled T" type: Real AHU.phi:VARIABLE(start = AHU.phistart fixed = true ) 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, 0.0))))))))))) start = V.pstart unit = "Pa" fixed = true nominal = 100000.0 stateSelect=StateSelect.always ) type: Real 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 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 (112): * Single equations (assignments): 102 * 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 {(3,4,77.8%), (1,1,100.0%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004794/0.4364, allocations: 249.4 kB / 477.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001195/0.4365, allocations: 47.91 kB / 477.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00287/0.4394, allocations: 1.258 MB / 478.7 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/0.4394, allocations: 11 kB / 478.7 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.036e-05/0.4394, allocations: 1.281 kB / 478.7 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.518e-05/0.4395, allocations: 14.94 kB / 478.8 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004449/0.4439, allocations: 2.387 MB / 481.1 MB, free: 9.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.625e-05/0.444, allocations: 10.88 kB / 481.1 MB, free: 9.906 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005181/0.4491, allocations: 0.7044 MB / 481.9 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002326/0.4515, allocations: 373.8 kB / 482.2 MB, free: 9.777 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002145/0.4517, allocations: 36.61 kB / 482.3 MB, free: 9.758 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01083/0.4626, allocations: 14.07 MB / 496.3 MB, free: 11.7 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-05/0.4626, allocations: 19.12 kB / 496.3 MB, free: 11.69 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004564/0.4672, allocations: 1.824 MB / 498.2 MB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002368/0.4675, allocations: 129.7 kB / 498.3 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001348/0.4676, allocations: 31.56 kB / 498.3 MB, free: 10.49 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008466/0.4685, allocations: 50.41 kB / 498.4 MB, free: 10.47 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000385/0.4689, allocations: 118.2 kB / 498.5 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001121/0.469, allocations: 34.97 kB / 498.5 MB, free: 10.43 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002088/0.4692, allocations: 155.1 kB / 498.7 MB, free: 10.33 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4692, allocations: 1.156 kB / 498.7 MB, free: 10.33 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001392/0.4706, allocations: 230.7 kB / 498.9 MB, free: 10.29 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * Number of states: 5 (AHU.T,AHU.phi,V.Mv,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 (102): * Single equations (assignments): 92 * 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): 3 systems {(3,4,77.8%), (1,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002558/0.4709, allocations: 152.9 kB / 499 MB, free: 10.16 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.007603/0.4785, allocations: 1.9 MB / 0.4892 GB, free: 9.344 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.117e-06/0.4785, allocations: 5.125 kB / 0.4892 GB, free: 9.34 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006529/0.485, allocations: 1.538 MB / 0.4907 GB, free: 8.648 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001641/0.4867, allocations: 173.8 kB / 0.4909 GB, free: 8.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004074/0.4908, allocations: 2.159 MB / 0.493 GB, free: 6.688 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006581/0.4915, allocations: 0.9097 MB / 0.4939 GB, free: 5.824 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007545/0.4923, allocations: 93.11 kB / 0.494 GB, free: 5.75 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002101/0.4925, allocations: 48.38 kB / 0.494 GB, free: 5.703 MB / 366.1 MB Notification: Performance of SimCode: time 8.22e-07/0.4925, allocations: 0 / 0.494 GB, free: 5.703 MB / 366.1 MB Notification: Performance of Templates: time 0.02081/0.5133, allocations: 10.93 MB / 0.5047 GB, free: 11.31 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.makefile (rm -f AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.pipe ; mkfifo AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.pipe >> ../files/AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.sim & ./AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.pipe 2>&1)