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.001044/0.001044, allocations: 99.39 kB / 15.05 MB, free: 1.105 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.001259/0.001259, allocations: 177.3 kB / 15.95 MB, free: 216 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.443/1.443, allocations: 223.2 MB / 239.9 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2425/0.2425, allocations: 22.34 MB / 313.3 MB, free: 13.16 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004082/0.0004084, allocations: 8 kB / 381.8 MB, free: 10.64 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3311/0.3316, allocations: 55.96 MB / 437.8 MB, free: 39.07 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.003062/0.3347, allocations: 3.116 MB / 440.9 MB, free: 36.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001729/0.3364, allocations: 1.28 MB / 442.2 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001622/0.3366, allocations: 9.469 kB / 442.2 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.398e-05/0.3367, allocations: 56.77 kB / 442.3 MB, free: 35.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003546/0.3371, allocations: 231.5 kB / 442.5 MB, free: 35.69 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004238/0.3375, allocations: 189.9 kB / 442.7 MB, free: 35.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005614/0.3381, allocations: 0.6624 MB / 443.3 MB, free: 35.22 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003701/0.3385, allocations: 347.4 kB / 443.7 MB, free: 35.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003608/0.3388, allocations: 337.8 kB / 444 MB, free: 34.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003524/0.3392, allocations: 369.5 kB / 444.4 MB, free: 34.83 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.674e-05/0.3393, allocations: 42.34 kB / 444.4 MB, free: 34.83 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.36e-05/0.3394, allocations: 45.12 kB / 444.5 MB, free: 34.83 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001006/0.3395, allocations: 139.6 kB / 444.6 MB, free: 34.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001094/0.3396, allocations: 160.6 kB / 444.8 MB, free: 34.67 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004471/0.3401, allocations: 0.704 MB / 445.5 MB, free: 34.51 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.484e-06/0.3401, allocations: 0 / 445.5 MB, free: 34.51 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3401, allocations: 0 / 445.5 MB, free: 34.51 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.031e-05/0.3401, allocations: 0 / 445.5 MB, free: 34.51 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.001631/0.3417, allocations: 0.8705 MB / 446.3 MB, free: 33.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.3418, allocations: 8.219 kB / 446.3 MB, free: 33.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001239/0.3419, allocations: 71.34 kB / 446.4 MB, free: 33.89 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001855/0.3421, allocations: 237.1 kB / 446.6 MB, free: 33.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.936e-05/0.3422, allocations: 62.09 kB / 446.7 MB, free: 33.61 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001047/0.3423, allocations: 82.69 kB / 446.8 MB, free: 33.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001037/0.3433, allocations: 0.6786 MB / 447.5 MB, free: 33.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.871e-05/0.3433, allocations: 2.688 kB / 447.5 MB, free: 33.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.176e-05/0.3434, allocations: 38.22 kB / 447.5 MB, free: 33.26 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.684e-05/0.3434, allocations: 19.69 kB / 447.5 MB, free: 33.26 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001008/0.3445, allocations: 0.6875 MB / 448.2 MB, free: 33.03 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.002964/0.3474, allocations: 2.304 MB / 450.5 MB, free: 31.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009124/0.3484, allocations: 0.6735 MB / 451.2 MB, free: 31.26 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.557e-05/0.3484, allocations: 14.08 kB / 451.2 MB, free: 31.26 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.197e-05/0.3485, allocations: 45.34 kB / 451.2 MB, free: 31.21 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 2.595e-06/0.3485, allocations: 0 / 451.2 MB, free: 31.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.006377/0.3548, allocations: 3.115 MB / 454.4 MB, free: 29.58 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.327e-05/0.3549, allocations: 69.19 kB / 454.4 MB, free: 29.51 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001668/0.3551, allocations: 200.4 kB / 454.6 MB, free: 29.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.37e-05/0.3551, allocations: 41.36 kB / 454.7 MB, free: 29.33 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.437e-05/0.3552, allocations: 230.3 kB / 454.9 MB, free: 29.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001751/0.3554, allocations: 380.9 kB / 455.3 MB, free: 28.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.187e-05/0.3555, allocations: 21.09 kB / 455.3 MB, free: 28.83 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.031e-05/0.3555, allocations: 357.1 kB / 455.6 MB, free: 28.49 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004156/0.356, allocations: 293 kB / 455.9 MB, free: 28.38 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004682/0.3564, allocations: 373.7 kB / 456.3 MB, free: 28.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004989/0.3569, allocations: 354.7 kB / 456.6 MB, free: 28.02 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.3569, allocations: 7.828 kB / 456.6 MB, free: 28.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002039/0.359, allocations: 1.041 MB / 457.7 MB, free: 27.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/0.359, allocations: 6.312 kB / 457.7 MB, free: 27.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.359, allocations: 1.188 kB / 457.7 MB, free: 27.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001063/0.3601, allocations: 238.5 kB / 457.9 MB, free: 27.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005252/0.3654, allocations: 0.7589 MB / 458.7 MB, free: 27.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00912/0.3745, allocations: 13.96 MB / 472.6 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008853/0.3754, allocations: 41.19 kB / 472.7 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.07e-05/0.3755, allocations: 29.59 kB / 472.7 MB, free: 13.38 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, 0.0))))))))))) start = V.pstart unit = "Pa" fixed = true nominal = 100000.0 stateSelect=StateSelect.always ) type: Real AHU.phi:VARIABLE(start = AHU.phistart fixed = true ) type: Real AHU.T:VARIABLE(min = max(0.0, 0.0) start = AHU.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 (112): * Single equations (assignments): 102 * 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%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004986/0.376, allocations: 254.5 kB / 472.9 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001053/0.3761, allocations: 51.91 kB / 473 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002695/0.3788, allocations: 1.248 MB / 474.2 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.431e-05/0.3789, allocations: 15.84 kB / 474.3 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.3789, allocations: 2 kB / 474.3 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.725e-05/0.3789, allocations: 6.5 kB / 474.3 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004066/0.383, allocations: 2.381 MB / 476.6 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-05/0.383, allocations: 6.906 kB / 476.7 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00462/0.3876, allocations: 0.7006 MB / 477.4 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002068/0.3897, allocations: 383.5 kB / 477.7 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.893e-05/0.3898, allocations: 36.06 kB / 477.8 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009854/0.3997, allocations: 14.13 MB / 491.9 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.977e-06/0.3997, allocations: 14.81 kB / 491.9 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003528/0.4033, allocations: 2.155 MB / 494.1 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002144/0.4035, allocations: 129.9 kB / 494.2 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.367e-05/0.4036, allocations: 30.81 kB / 494.2 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006184/0.4042, allocations: 55.36 kB / 494.3 MB, free: 11.23 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002655/0.4045, allocations: 118.8 kB / 494.4 MB, free: 11.19 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.425e-05/0.4046, allocations: 46.94 kB / 494.4 MB, free: 11.18 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001495/0.4047, allocations: 152.9 kB / 494.6 MB, free: 11.08 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4048, allocations: 0 / 494.6 MB, free: 11.08 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001017/0.4058, allocations: 235 kB / 494.8 MB, free: 11.04 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 (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 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001855/0.406, allocations: 141.2 kB / 494.9 MB, free: 10.91 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.006847/0.4128, allocations: 1.892 MB / 496.8 MB, free: 10.1 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.73e-06/0.4128, allocations: 1.531 kB / 496.8 MB, free: 10.1 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005642/0.4185, allocations: 1.532 MB / 498.4 MB, free: 9.414 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008829/0.4194, allocations: 151.4 kB / 498.5 MB, free: 9.367 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003048/0.4225, allocations: 2.085 MB / 0.4889 GB, free: 7.922 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005252/0.423, allocations: 0.9288 MB / 0.4898 GB, free: 7.203 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006094/0.4236, allocations: 90.83 kB / 0.4899 GB, free: 7.164 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001784/0.4238, allocations: 48.92 kB / 0.4899 GB, free: 7.156 MB / 366.1 MB Notification: Performance of SimCode: time 8.32e-07/0.4238, allocations: 0 / 0.4899 GB, free: 7.156 MB / 366.1 MB Notification: Performance of Templates: time 0.01823/0.442, allocations: 10.54 MB / 0.5002 GB, free: 15.12 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: