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.0009372/0.0009372, allocations: 97.88 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.006019/0.006019, allocations: 170.6 kB / 16.27 MB, free: 6.648 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.359/1.359, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2077/0.2077, allocations: 22.35 MB / 313.8 MB, free: 13.1 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003321/0.000332, allocations: 8 kB / 382.6 MB, free: 10.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2976/0.298, allocations: 55.99 MB / 438.6 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002): time 0.003029/0.3011, allocations: 3.849 MB / 442.4 MB, free: 36.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001731/0.3028, allocations: 1.315 MB / 443.7 MB, free: 35.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001843/0.303, allocations: 5.125 kB / 443.8 MB, free: 35.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001109/0.3031, allocations: 63.12 kB / 443.8 MB, free: 35.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003979/0.3035, allocations: 204.1 kB / 444 MB, free: 35.33 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000466/0.304, allocations: 268.3 kB / 444.3 MB, free: 35.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006782/0.3047, allocations: 1.095 MB / 445.4 MB, free: 34.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000535/0.3052, allocations: 473.9 kB / 445.8 MB, free: 34.45 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003775/0.3056, allocations: 397 kB / 446.2 MB, free: 34.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004332/0.3061, allocations: 484.7 kB / 446.7 MB, free: 34.1 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.888e-05/0.3062, allocations: 56.72 kB / 446.8 MB, free: 34.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001044/0.3063, allocations: 57.72 kB / 446.8 MB, free: 34.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001142/0.3064, allocations: 180.1 kB / 447 MB, free: 33.99 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003271/0.3067, allocations: 445.1 kB / 447.4 MB, free: 33.74 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000641/0.3074, allocations: 1.041 MB / 448.5 MB, free: 33.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.728e-06/0.3074, allocations: 0 / 448.5 MB, free: 33.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3074, allocations: 0 / 448.5 MB, free: 33.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.478e-05/0.3074, allocations: 0 / 448.5 MB, free: 33.43 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.00187/0.3093, allocations: 0.9278 MB / 449.4 MB, free: 32.83 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.688e-05/0.3094, allocations: 12.38 kB / 449.4 MB, free: 32.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001393/0.3095, allocations: 80.22 kB / 449.5 MB, free: 32.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000187/0.3097, allocations: 256.7 kB / 449.7 MB, free: 32.52 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.171e-05/0.3098, allocations: 74.94 kB / 449.8 MB, free: 32.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000122/0.3099, allocations: 85.34 kB / 449.9 MB, free: 32.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001223/0.3111, allocations: 0.8071 MB / 450.7 MB, free: 32.13 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.965e-05/0.3112, allocations: 0 / 450.7 MB, free: 32.13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.781e-05/0.3112, allocations: 35.53 kB / 450.7 MB, free: 32.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.753e-05/0.3113, allocations: 20.41 kB / 450.7 MB, free: 32.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001172/0.3124, allocations: 0.8237 MB / 451.6 MB, free: 31.82 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.003513/0.316, allocations: 2.617 MB / 454.2 MB, free: 30.2 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001792/0.3178, allocations: 0.9901 MB / 455.2 MB, free: 29.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005573/0.3183, allocations: 427.7 kB / 455.6 MB, free: 29.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.724e-05/0.3184, allocations: 16.33 kB / 455.6 MB, free: 29.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.806e-05/0.3185, allocations: 48 kB / 455.7 MB, free: 29.61 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005083/0.319, allocations: 128 kB / 455.8 MB, free: 29.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=113): time 3.967e-06/0.319, allocations: 0 / 455.8 MB, free: 29.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=124): time 0.00832/0.3273, allocations: 3.562 MB / 459.3 MB, free: 27.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.652e-05/0.3274, allocations: 64.47 kB / 459.4 MB, free: 27.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002702/0.3277, allocations: 220.5 kB / 459.6 MB, free: 27.54 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.84e-05/0.3278, allocations: 41.39 kB / 459.7 MB, free: 27.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001291/0.3279, allocations: 240.1 kB / 459.9 MB, free: 27.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00028/0.3282, allocations: 421.9 kB / 460.3 MB, free: 26.97 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001331/0.3283, allocations: 88.11 kB / 460.4 MB, free: 26.92 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.705e-05/0.3284, allocations: 373.8 kB / 460.8 MB, free: 26.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006172/0.329, allocations: 357.4 kB / 461.1 MB, free: 26.43 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006819/0.3297, allocations: 456.8 kB / 461.6 MB, free: 26.23 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02017/0.3499, allocations: 3.549 MB / 465.1 MB, free: 25.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.364e-06/0.35, allocations: 7.875 kB / 465.1 MB, free: 25.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002863/0.3528, allocations: 1.213 MB / 466.3 MB, free: 24.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.081e-05/0.3529, allocations: 7.719 kB / 466.3 MB, free: 24.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.14e-05/0.3529, allocations: 1 kB / 466.3 MB, free: 24.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001219/0.3541, allocations: 232 kB / 466.6 MB, free: 24.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006277/0.3604, allocations: 0.815 MB / 467.4 MB, free: 24.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009359/0.3698, allocations: 13.9 MB / 481.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001092/0.371, allocations: 51.2 kB / 481.3 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.425e-05/0.3711, allocations: 39.22 kB / 481.4 MB, free: 10.68 MB / 350.1 MB Warning: Assuming fixed start value for the following 4 variables: U1.T:VARIABLE(min = max(0.0, 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 = 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 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 (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 {(3,4,77.8%), (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.0005817/0.3717, allocations: 271.6 kB / 481.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001338/0.3718, allocations: 53.56 kB / 481.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003416/0.3752, allocations: 1.49 MB / 483.2 MB, free: 9.766 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.596e-05/0.3753, allocations: 17.34 kB / 483.2 MB, free: 9.762 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.034e-06/0.3753, allocations: 1.719 kB / 483.2 MB, free: 9.762 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.165e-05/0.3753, allocations: 8.453 kB / 483.2 MB, free: 9.762 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004925/0.3802, allocations: 2.589 MB / 485.8 MB, free: 8.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.24e-05/0.3803, allocations: 6.656 kB / 485.8 MB, free: 8.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005592/0.3859, allocations: 0.76 MB / 486.6 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002469/0.3884, allocations: 395.7 kB / 486.9 MB, free: 8.195 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002098/0.3886, allocations: 32.61 kB / 487 MB, free: 8.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01122/0.3998, allocations: 14.12 MB / 0.4894 GB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.054e-05/0.3999, allocations: 16.12 kB / 0.4894 GB, free: 10.08 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004743/0.4046, allocations: 2.07 MB / 0.4914 GB, free: 8.93 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002554/0.4049, allocations: 134.3 kB / 0.4915 GB, free: 8.805 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001356/0.4051, allocations: 34.83 kB / 0.4915 GB, free: 8.785 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008295/0.4059, allocations: 61.69 kB / 0.4916 GB, free: 8.742 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003461/0.4063, allocations: 119.8 kB / 0.4917 GB, free: 8.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.773e-05/0.4063, allocations: 43.33 kB / 0.4918 GB, free: 8.621 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002068/0.4066, allocations: 166 kB / 0.4919 GB, free: 8.473 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.9e-07/0.4066, allocations: 0 / 0.4919 GB, free: 8.473 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001307/0.4079, allocations: 263.9 kB / 0.4922 GB, free: 8.215 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 (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,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002452/0.4081, allocations: 146.5 kB / 0.4923 GB, free: 8.066 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.007811/0.416, allocations: 2.06 MB / 0.4943 GB, free: 6.016 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.027e-06/0.416, allocations: 0 / 0.4943 GB, free: 6.016 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006508/0.4225, allocations: 1.634 MB / 0.4959 GB, free: 4.328 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001623/0.4241, allocations: 185.6 kB / 0.4961 GB, free: 4.145 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003964/0.4281, allocations: 2.318 MB / 0.4984 GB, free: 1.715 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005614/0.4287, allocations: 0.9338 MB / 0.4993 GB, free: 0.7578 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008447/0.4296, allocations: 121.5 kB / 0.4994 GB, free: 0.6367 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003127/0.4299, allocations: 63.41 kB / 0.4994 GB, free: 0.5742 MB / 366.1 MB Notification: Performance of SimCode: time 8.32e-07/0.4299, allocations: 0 / 0.4994 GB, free: 0.5742 MB / 366.1 MB Notification: Performance of Templates: time 0.02407/0.454, allocations: 12.85 MB / 0.512 GB, free: 3.852 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)