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.0013/0.001299, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001407/0.001408, allocations: 188.2 kB / 16.25 MB, free: 6.637 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.346/1.346, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1998/0.1998, allocations: 22.36 MB / 312.4 MB, free: 12.68 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002219/0.002219, allocations: 60.09 kB / 380.3 MB, free: 10.98 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.291/0.2933, allocations: 54.94 MB / 435.3 MB, free: 39.56 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002): time 0.003783/0.2971, allocations: 4.26 MB / 439.5 MB, free: 36.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001784/0.2989, allocations: 1.329 MB / 440.8 MB, free: 35.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001799/0.2991, allocations: 6.594 kB / 440.8 MB, free: 35.51 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001372/0.2993, allocations: 62.14 kB / 440.9 MB, free: 35.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003618/0.2996, allocations: 211.5 kB / 441.1 MB, free: 35.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004469/0.3001, allocations: 267.2 kB / 441.4 MB, free: 35.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006893/0.3008, allocations: 1.159 MB / 442.5 MB, free: 34.56 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004662/0.3013, allocations: 0.5445 MB / 443.1 MB, free: 34.33 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003508/0.3016, allocations: 472.5 kB / 443.5 MB, free: 34.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004291/0.3021, allocations: 0.5128 MB / 444.1 MB, free: 33.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000111/0.3022, allocations: 109 kB / 444.2 MB, free: 33.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001317/0.3023, allocations: 109 kB / 444.3 MB, free: 33.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001305/0.3025, allocations: 232.5 kB / 444.5 MB, free: 33.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003103/0.3028, allocations: 476.6 kB / 445 MB, free: 33.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006274/0.3034, allocations: 1.093 MB / 446.1 MB, free: 33.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.3034, allocations: 0 / 446.1 MB, free: 33.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3034, allocations: 0 / 446.1 MB, free: 33.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.281e-05/0.3034, allocations: 0 / 446.1 MB, free: 33.02 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.002084/0.3055, allocations: 1.078 MB / 447.1 MB, free: 32.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.3056, allocations: 9.188 kB / 447.1 MB, free: 32.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001338/0.3057, allocations: 79.66 kB / 447.2 MB, free: 32.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001637/0.3059, allocations: 262.5 kB / 447.5 MB, free: 32.03 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.66e-05/0.3059, allocations: 75.69 kB / 447.5 MB, free: 31.99 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001182/0.3061, allocations: 83.66 kB / 447.6 MB, free: 31.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001229/0.3073, allocations: 0.805 MB / 448.4 MB, free: 31.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.12e-05/0.3073, allocations: 0 / 448.4 MB, free: 31.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.738e-05/0.3074, allocations: 36.03 kB / 448.5 MB, free: 31.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.437e-05/0.3074, allocations: 24.78 kB / 448.5 MB, free: 31.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001189/0.3086, allocations: 0.8252 MB / 449.3 MB, free: 31.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: 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.003399/0.312, allocations: 2.603 MB / 451.9 MB, free: 29.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001775/0.3138, allocations: 0.9941 MB / 452.9 MB, free: 29.35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005501/0.3144, allocations: 422.4 kB / 453.3 MB, free: 29.17 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.123e-05/0.3145, allocations: 14.48 kB / 453.3 MB, free: 29.17 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.309e-05/0.3145, allocations: 45.97 kB / 453.4 MB, free: 29.12 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000475/0.315, allocations: 131.2 kB / 453.5 MB, free: 29.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=113): time 2.525e-06/0.315, allocations: 0 / 453.5 MB, free: 29.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=124): time 0.007596/0.3226, allocations: 3.518 MB / 457 MB, free: 27.28 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.871e-05/0.3226, allocations: 69.03 kB / 457.1 MB, free: 27.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001727/0.3228, allocations: 224.6 kB / 457.3 MB, free: 27.06 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.651e-05/0.3229, allocations: 46.89 kB / 457.4 MB, free: 27.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.719e-05/0.323, allocations: 232.1 kB / 457.6 MB, free: 26.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000205/0.3232, allocations: 428.4 kB / 458 MB, free: 26.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002549/0.3235, allocations: 176.1 kB / 458.2 MB, free: 26.4 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.794e-05/0.3235, allocations: 363.6 kB / 458.5 MB, free: 26.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005524/0.3241, allocations: 360.4 kB / 458.9 MB, free: 25.92 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006347/0.3247, allocations: 460.4 kB / 459.3 MB, free: 25.71 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01871/0.3435, allocations: 3.477 MB / 462.8 MB, free: 24.85 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/0.3435, allocations: 3.938 kB / 462.8 MB, free: 24.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002346/0.3458, allocations: 1.208 MB / 464 MB, free: 24.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.137e-05/0.3459, allocations: 4.812 kB / 464 MB, free: 24.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.966e-06/0.3459, allocations: 5.125 kB / 464 MB, free: 24.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001011/0.3469, allocations: 211.2 kB / 464.2 MB, free: 24.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006237/0.3532, allocations: 0.8173 MB / 465.1 MB, free: 24.19 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008521/0.3617, allocations: 14.94 MB / 480 MB, free: 9.129 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009473/0.3627, allocations: 53.97 kB / 480.1 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.276e-05/0.3628, allocations: 43.09 kB / 480.1 MB, free: 9.094 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 {(2,5,100.0%), (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.0005112/0.3633, allocations: 268.6 kB / 480.4 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001197/0.3634, allocations: 54.34 kB / 480.4 MB, free: 8.867 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003145/0.3666, allocations: 1.485 MB / 481.9 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.227e-05/0.3666, allocations: 13.19 kB / 481.9 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.605e-06/0.3666, allocations: 6.078 kB / 481.9 MB, free: 8.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.74e-05/0.3666, allocations: 7.656 kB / 481.9 MB, free: 8.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004245/0.3709, allocations: 2.585 MB / 484.5 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.008e-05/0.3709, allocations: 6.516 kB / 484.5 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005699/0.3766, allocations: 0.7606 MB / 485.3 MB, free: 6.703 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002041/0.3787, allocations: 364.8 kB / 485.6 MB, free: 6.617 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001327/0.3788, allocations: 35.86 kB / 485.7 MB, free: 6.598 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01108/0.3899, allocations: 15.19 MB / 0.4891 GB, free: 7.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.955e-06/0.3899, allocations: 13.72 kB / 0.4891 GB, free: 7.422 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003959/0.3939, allocations: 2.056 MB / 0.4911 GB, free: 6.273 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001911/0.3941, allocations: 139.3 kB / 0.4913 GB, free: 6.145 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001145/0.3942, allocations: 30.84 kB / 0.4913 GB, free: 6.129 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007557/0.395, allocations: 57.88 kB / 0.4914 GB, free: 6.102 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002961/0.3953, allocations: 117.9 kB / 0.4915 GB, free: 6.074 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.646e-05/0.3954, allocations: 40.17 kB / 0.4915 GB, free: 6.066 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001729/0.3956, allocations: 169.4 kB / 0.4917 GB, free: 5.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3956, allocations: 3.938 kB / 0.4917 GB, free: 5.926 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001137/0.3967, allocations: 264 kB / 0.4919 GB, free: 5.668 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 {(2,5,100.0%), (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.0002072/0.3969, allocations: 149.4 kB / 0.4921 GB, free: 5.516 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.008031/0.405, allocations: 2.098 MB / 0.4941 GB, free: 3.625 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.456e-06/0.405, allocations: 0 / 0.4941 GB, free: 3.625 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00641/0.4114, allocations: 1.623 MB / 0.4957 GB, free: 2.008 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00112/0.4126, allocations: 201.5 kB / 0.4959 GB, free: 1.805 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003219/0.4158, allocations: 2.232 MB / 0.4981 GB, free: 15.47 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004925/0.4163, allocations: 0.9338 MB / 0.499 GB, free: 14.52 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008034/0.4171, allocations: 121.5 kB / 0.4991 GB, free: 14.39 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002563/0.4174, allocations: 67.41 kB / 0.4992 GB, free: 14.33 MB / 382.1 MB Notification: Performance of SimCode: time 4.31e-07/0.4174, allocations: 0 / 0.4992 GB, free: 14.33 MB / 382.1 MB Notification: Performance of Templates: time 0.02083/0.4382, allocations: 13.57 MB / 0.5124 GB, free: 0.8867 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)