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.001507/0.001513, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001941/0.001941, allocations: 193.8 kB / 16.14 MB, free: 6.719 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.316/1.316, allocations: 222.9 MB / 239.8 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1952/0.1952, allocations: 22.34 MB / 312.3 MB, free: 12.62 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 59.91 kB / 380.1 MB, free: 11.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2405/0.2418, allocations: 54.94 MB / 435 MB, free: 39.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.00417/0.246, allocations: 4.048 MB / 439.1 MB, free: 36.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001938/0.248, allocations: 1.285 MB / 440.4 MB, free: 35.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004248/0.2484, allocations: 4.875 kB / 440.4 MB, free: 35.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002306/0.2487, allocations: 59.78 kB / 440.4 MB, free: 35.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005578/0.2492, allocations: 191 kB / 440.6 MB, free: 35.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005412/0.2498, allocations: 260.6 kB / 440.9 MB, free: 35.44 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007372/0.2505, allocations: 1.02 MB / 441.9 MB, free: 34.94 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004095/0.251, allocations: 354.9 kB / 442.2 MB, free: 34.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003062/0.2513, allocations: 353.1 kB / 442.6 MB, free: 34.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003015/0.2516, allocations: 390.5 kB / 443 MB, free: 34.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.553e-05/0.2517, allocations: 45.34 kB / 443 MB, free: 34.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001093/0.2518, allocations: 44.53 kB / 443 MB, free: 34.52 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.807e-05/0.2519, allocations: 146.4 kB / 443.2 MB, free: 34.44 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002456/0.2521, allocations: 373.4 kB / 443.6 MB, free: 34.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004858/0.2526, allocations: 0.918 MB / 444.5 MB, free: 33.89 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.2526, allocations: 4 kB / 444.5 MB, free: 33.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.01e-07/0.2527, allocations: 0 / 444.5 MB, free: 33.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.062e-05/0.2527, allocations: 0 / 444.5 MB, free: 33.89 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.001765/0.2544, allocations: 0.9817 MB / 445.5 MB, free: 33.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.2545, allocations: 16.47 kB / 445.5 MB, free: 33.22 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000117/0.2546, allocations: 78.78 kB / 445.5 MB, free: 33.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001449/0.2548, allocations: 239.3 kB / 445.8 MB, free: 32.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.765e-05/0.2548, allocations: 59.69 kB / 445.8 MB, free: 32.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.212e-05/0.2549, allocations: 83.34 kB / 445.9 MB, free: 32.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009743/0.2559, allocations: 0.6972 MB / 446.6 MB, free: 32.58 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/0.2559, allocations: 0 / 446.6 MB, free: 32.58 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.283e-05/0.256, allocations: 33.5 kB / 446.7 MB, free: 32.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.476e-05/0.256, allocations: 17.38 kB / 446.7 MB, free: 32.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001003/0.257, allocations: 0.7006 MB / 447.4 MB, free: 32.32 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.002946/0.26, allocations: 2.283 MB / 449.7 MB, free: 30.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009268/0.2609, allocations: 0.6866 MB / 450.3 MB, free: 30.56 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004313/0.2614, allocations: 331.3 kB / 450.7 MB, free: 30.42 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.167e-05/0.2614, allocations: 15.11 kB / 450.7 MB, free: 30.42 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.013e-05/0.2614, allocations: 43.34 kB / 450.7 MB, free: 30.37 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 3.116e-06/0.2615, allocations: 4 kB / 450.7 MB, free: 30.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.006799/0.2683, allocations: 3.094 MB / 453.8 MB, free: 28.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.267e-05/0.2683, allocations: 66.58 kB / 453.9 MB, free: 28.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001699/0.2685, allocations: 209 kB / 454.1 MB, free: 28.55 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.257e-05/0.2686, allocations: 41.05 kB / 454.1 MB, free: 28.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.76e-05/0.2687, allocations: 234.6 kB / 454.4 MB, free: 28.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001861/0.2688, allocations: 383.3 kB / 454.7 MB, free: 28.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000201/0.2691, allocations: 151.4 kB / 454.9 MB, free: 27.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.183e-05/0.2691, allocations: 360.8 kB / 455.2 MB, free: 27.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004749/0.2696, allocations: 293 kB / 455.5 MB, free: 27.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005677/0.2702, allocations: 389.3 kB / 455.9 MB, free: 27.3 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01086/0.281, allocations: 2.25 MB / 458.1 MB, free: 26.62 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/0.2811, allocations: 0 / 458.1 MB, free: 26.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002166/0.2833, allocations: 1.042 MB / 459.2 MB, free: 26.15 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.178e-05/0.2833, allocations: 7.609 kB / 459.2 MB, free: 26.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.2833, allocations: 1.125 kB / 459.2 MB, free: 26.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001025/0.2843, allocations: 214.8 kB / 459.4 MB, free: 26.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006018/0.2904, allocations: 0.7571 MB / 460.2 MB, free: 26.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008881/0.2993, allocations: 13.87 MB / 474 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007504/0.3001, allocations: 63 kB / 474.1 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.475e-05/0.3001, allocations: 29.16 kB / 474.1 MB, free: 11.99 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 {(2,5,100.0%), (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.0004555/0.3006, allocations: 249.7 kB / 474.4 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.3007, allocations: 48.95 kB / 474.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002768/0.3035, allocations: 1.251 MB / 475.7 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.153e-05/0.3035, allocations: 11.38 kB / 475.7 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.3035, allocations: 2.156 kB / 475.7 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.35e-05/0.3035, allocations: 6.906 kB / 475.7 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003856/0.3074, allocations: 2.377 MB / 478.1 MB, free: 9.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.086e-05/0.3074, allocations: 14.91 kB / 478.1 MB, free: 9.832 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005275/0.3127, allocations: 0.6984 MB / 478.8 MB, free: 9.789 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001969/0.3147, allocations: 355.8 kB / 479.1 MB, free: 9.703 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001167/0.3148, allocations: 32.56 kB / 479.2 MB, free: 9.688 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009699/0.3245, allocations: 14.03 MB / 493.2 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-05/0.3246, allocations: 16.03 kB / 493.2 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003695/0.3283, allocations: 1.821 MB / 495 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002584/0.3286, allocations: 124.9 kB / 495.1 MB, free: 10.44 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001282/0.3287, allocations: 31.44 kB / 495.2 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007315/0.3294, allocations: 51.19 kB / 495.2 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004249/0.3299, allocations: 117.7 kB / 495.3 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001047/0.33, allocations: 38.31 kB / 495.4 MB, free: 10.36 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001894/0.3302, allocations: 157.9 kB / 495.5 MB, free: 10.26 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3302, allocations: 0 / 495.5 MB, free: 10.26 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001224/0.3314, allocations: 241.9 kB / 495.8 MB, free: 10.22 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 {(2,5,100.0%), (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.0002193/0.3317, allocations: 142 kB / 495.9 MB, free: 10.09 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.007644/0.3393, allocations: 1.883 MB / 497.8 MB, free: 9.273 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.02e-05/0.3393, allocations: 2.375 kB / 497.8 MB, free: 9.273 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00636/0.3457, allocations: 1.515 MB / 499.3 MB, free: 8.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001151/0.3469, allocations: 168.6 kB / 499.5 MB, free: 8.531 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003468/0.3504, allocations: 2.088 MB / 0.4898 GB, free: 7.027 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005626/0.3509, allocations: 0.9111 MB / 0.4907 GB, free: 6.297 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006649/0.3516, allocations: 93.67 kB / 0.4908 GB, free: 6.223 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002367/0.3519, allocations: 48.66 kB / 0.4908 GB, free: 6.176 MB / 366.1 MB Notification: Performance of SimCode: time 8.51e-07/0.3519, allocations: 0 / 0.4908 GB, free: 6.176 MB / 366.1 MB Notification: Performance of Templates: time 0.01992/0.3718, allocations: 10.98 MB / 0.5015 GB, free: 12 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)