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.001128/0.001128, allocations: 92.55 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001492/0.001492, allocations: 175.8 kB / 16.92 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.341/1.341, allocations: 223.3 MB / 241 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.1979/0.1979, allocations: 22.33 MB / 314.4 MB, free: 13.08 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003215/0.0003216, allocations: 15.94 kB / 383.3 MB, free: 10.11 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2794/0.2798, allocations: 55.98 MB / 439.2 MB, free: 39.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.002937/0.2827, allocations: 3.638 MB / 442.9 MB, free: 36.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001961/0.2847, allocations: 1.272 MB / 444.2 MB, free: 35.53 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002159/0.285, allocations: 5.781 kB / 444.2 MB, free: 35.53 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001066/0.2851, allocations: 53.64 kB / 444.2 MB, free: 35.51 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004143/0.2855, allocations: 192.8 kB / 444.4 MB, free: 35.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004826/0.286, allocations: 256.8 kB / 444.6 MB, free: 35.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006407/0.2866, allocations: 1.021 MB / 445.7 MB, free: 34.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004489/0.2871, allocations: 347.6 kB / 446 MB, free: 34.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003678/0.2875, allocations: 344.8 kB / 446.3 MB, free: 34.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003448/0.2878, allocations: 384.9 kB / 446.7 MB, free: 34.3 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.823e-05/0.2879, allocations: 44.59 kB / 446.8 MB, free: 34.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.839e-05/0.288, allocations: 45.62 kB / 446.8 MB, free: 34.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.264e-05/0.2881, allocations: 142.5 kB / 446.9 MB, free: 34.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002851/0.2884, allocations: 393.4 kB / 447.3 MB, free: 33.99 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004497/0.2888, allocations: 0.7046 MB / 448 MB, free: 33.84 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2889, allocations: 0 / 448 MB, free: 33.84 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.2889, allocations: 2.938 kB / 448 MB, free: 33.84 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.279e-05/0.2889, allocations: 0 / 448 MB, free: 33.84 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.00165/0.2905, allocations: 0.856 MB / 448.9 MB, free: 33.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.2906, allocations: 19.75 kB / 448.9 MB, free: 33.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000137/0.2907, allocations: 72.38 kB / 449 MB, free: 33.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000166/0.2909, allocations: 247.2 kB / 449.2 MB, free: 32.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.092e-05/0.291, allocations: 64.12 kB / 449.3 MB, free: 32.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001279/0.2911, allocations: 80.19 kB / 449.4 MB, free: 32.9 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001041/0.2921, allocations: 0.6876 MB / 450.1 MB, free: 32.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.927e-05/0.2922, allocations: 7.875 kB / 450.1 MB, free: 32.6 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.744e-05/0.2922, allocations: 37 kB / 450.1 MB, free: 32.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.807e-05/0.2923, allocations: 17.56 kB / 450.1 MB, free: 32.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001033/0.2933, allocations: 0.6982 MB / 450.8 MB, free: 32.34 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.002968/0.2963, allocations: 2.297 MB / 453.1 MB, free: 30.85 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009591/0.2973, allocations: 0.6853 MB / 453.8 MB, free: 30.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004466/0.2977, allocations: 328.5 kB / 454.1 MB, free: 30.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.864e-05/0.2978, allocations: 19.48 kB / 454.1 MB, free: 30.42 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.307e-05/0.2978, allocations: 44.28 kB / 454.2 MB, free: 30.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 2.655e-06/0.2978, allocations: 0 / 454.2 MB, free: 30.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.00702/0.3049, allocations: 3.12 MB / 457.3 MB, free: 28.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.386e-05/0.3049, allocations: 63.75 kB / 457.4 MB, free: 28.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000188/0.3051, allocations: 206.8 kB / 457.6 MB, free: 28.56 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.907e-05/0.3052, allocations: 45.83 kB / 457.6 MB, free: 28.51 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.3053, allocations: 231.8 kB / 457.8 MB, free: 28.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002185/0.3055, allocations: 389.3 kB / 458.2 MB, free: 28.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001263/0.3057, allocations: 79.91 kB / 458.3 MB, free: 27.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.3058, allocations: 361.4 kB / 458.6 MB, free: 27.63 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005186/0.3063, allocations: 299.1 kB / 458.9 MB, free: 27.51 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005799/0.3069, allocations: 385.1 kB / 459.3 MB, free: 27.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01133/0.3182, allocations: 2.308 MB / 461.6 MB, free: 26.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.042e-06/0.3183, allocations: 3.234 kB / 461.6 MB, free: 26.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002338/0.3206, allocations: 1.045 MB / 462.7 MB, free: 26.18 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.221e-05/0.3207, allocations: 5.531 kB / 462.7 MB, free: 26.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.3207, allocations: 1.062 kB / 462.7 MB, free: 26.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001145/0.3218, allocations: 236.7 kB / 462.9 MB, free: 26.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005619/0.3274, allocations: 0.7506 MB / 463.7 MB, free: 26.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008491/0.336, allocations: 13.9 MB / 477.6 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007432/0.3367, allocations: 53.27 kB / 477.6 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.86e-05/0.3368, allocations: 30.8 kB / 477.6 MB, free: 12.02 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.0004232/0.3372, allocations: 262.6 kB / 477.9 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.324e-05/0.3373, allocations: 52.28 kB / 478 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002834/0.3402, allocations: 1.257 MB / 479.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-05/0.3402, allocations: 11.34 kB / 479.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.3402, allocations: 2.156 kB / 479.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.558e-05/0.3402, allocations: 6.625 kB / 479.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00399/0.3442, allocations: 2.379 MB / 481.6 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-05/0.3442, allocations: 7.688 kB / 481.6 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005007/0.3493, allocations: 0.7039 MB / 482.3 MB, free: 9.824 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002241/0.3515, allocations: 383.5 kB / 482.7 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.155e-05/0.3516, allocations: 31.2 kB / 482.7 MB, free: 9.715 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01078/0.3624, allocations: 14.07 MB / 496.8 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.398e-05/0.3624, allocations: 14.97 kB / 496.8 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003589/0.366, allocations: 1.828 MB / 498.6 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001905/0.3662, allocations: 134.2 kB / 498.8 MB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.756e-05/0.3663, allocations: 25.8 kB / 498.8 MB, free: 10.44 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000623/0.367, allocations: 48.78 kB / 498.8 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002713/0.3672, allocations: 117.3 kB / 499 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.856e-05/0.3673, allocations: 39.59 kB / 499 MB, free: 10.38 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001658/0.3675, allocations: 155.1 kB / 499.1 MB, free: 10.28 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3675, allocations: 4 kB / 499.1 MB, free: 10.28 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009991/0.3685, allocations: 231 kB / 499.4 MB, free: 10.24 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.0002118/0.3687, allocations: 143 kB / 499.5 MB, free: 10.12 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.006815/0.3755, allocations: 1.871 MB / 0.4896 GB, free: 9.305 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.102e-06/0.3756, allocations: 1.656 kB / 0.4896 GB, free: 9.305 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005993/0.3816, allocations: 1.513 MB / 0.4911 GB, free: 8.613 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001237/0.3828, allocations: 172 kB / 0.4913 GB, free: 8.555 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003256/0.3861, allocations: 2.194 MB / 0.4934 GB, free: 6.719 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005106/0.3866, allocations: 0.909 MB / 0.4943 GB, free: 5.855 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002568/0.3869, allocations: 57.08 kB / 0.4944 GB, free: 5.801 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3869, allocations: 3.938 kB / 0.4944 GB, free: 5.797 MB / 366.1 MB Notification: Performance of Templates: time 0.03201/0.4189, allocations: 33.02 MB / 0.5266 GB, free: 5.293 MB / 398.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)