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.001143/0.001147, allocations: 100.3 kB / 16.35 MB, free: 5.828 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.001139/0.001139, allocations: 194.5 kB / 17.29 MB, free: 5.484 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.383/1.383, allocations: 222.9 MB / 241 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2163/0.2163, allocations: 22.34 MB / 313.5 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 59.91 kB / 382.3 MB, free: 9.746 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2639/0.2652, allocations: 54.94 MB / 437.2 MB, free: 40.04 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002): time 0.004028/0.2693, allocations: 4.229 MB / 441.5 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001626/0.2709, allocations: 1.346 MB / 442.8 MB, free: 36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001696/0.2711, allocations: 2.781 kB / 442.8 MB, free: 36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000135/0.2713, allocations: 87.27 kB / 442.9 MB, free: 35.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003531/0.2716, allocations: 234.1 kB / 443.1 MB, free: 35.78 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004486/0.2721, allocations: 308.5 kB / 443.4 MB, free: 35.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006649/0.2728, allocations: 1.169 MB / 444.6 MB, free: 34.99 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005084/0.2733, allocations: 0.5603 MB / 445.2 MB, free: 34.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003522/0.2736, allocations: 463.3 kB / 445.6 MB, free: 34.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004578/0.2741, allocations: 0.5059 MB / 446.1 MB, free: 34.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001081/0.2742, allocations: 112.8 kB / 446.2 MB, free: 34.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001265/0.2744, allocations: 109.3 kB / 446.3 MB, free: 34.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001398/0.2745, allocations: 237.4 kB / 446.6 MB, free: 34.16 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003153/0.2748, allocations: 476.8 kB / 447 MB, free: 33.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006365/0.2755, allocations: 1.102 MB / 448.1 MB, free: 33.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.2755, allocations: 0 / 448.1 MB, free: 33.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.2755, allocations: 0 / 448.1 MB, free: 33.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.058e-05/0.2755, allocations: 0 / 448.1 MB, free: 33.45 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.002032/0.2775, allocations: 1.076 MB / 449.2 MB, free: 32.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.2776, allocations: 14.75 kB / 449.2 MB, free: 32.76 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001333/0.2777, allocations: 78.31 kB / 449.3 MB, free: 32.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000161/0.2779, allocations: 256.6 kB / 449.5 MB, free: 32.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.474e-05/0.2779, allocations: 68.97 kB / 449.6 MB, free: 32.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001117/0.2781, allocations: 89.25 kB / 449.7 MB, free: 32.4 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001143/0.2792, allocations: 0.807 MB / 450.5 MB, free: 32.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.818e-05/0.2792, allocations: 0 / 450.5 MB, free: 32.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.139e-05/0.2793, allocations: 35.94 kB / 450.5 MB, free: 32.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.466e-05/0.2793, allocations: 19.62 kB / 450.6 MB, free: 32.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001279/0.2806, allocations: 0.8327 MB / 451.4 MB, free: 31.75 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.00359/0.2842, allocations: 2.595 MB / 454 MB, free: 30.15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001829/0.2861, allocations: 0.998 MB / 455 MB, free: 29.78 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005619/0.2866, allocations: 421.2 kB / 455.4 MB, free: 29.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.106e-05/0.2867, allocations: 23.12 kB / 455.4 MB, free: 29.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.698e-05/0.2868, allocations: 51.75 kB / 455.5 MB, free: 29.54 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000455/0.2872, allocations: 121 kB / 455.6 MB, free: 29.48 MB / 350.1 MB Notification: Performance of pre-optimization done (n=113): time 2.635e-06/0.2872, allocations: 0 / 455.6 MB, free: 29.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=124): time 0.008034/0.2953, allocations: 3.531 MB / 459.1 MB, free: 27.7 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.549e-05/0.2953, allocations: 64.28 kB / 459.2 MB, free: 27.64 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002054/0.2956, allocations: 219.6 kB / 459.4 MB, free: 27.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.509e-05/0.2956, allocations: 45.11 kB / 459.4 MB, free: 27.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001103/0.2957, allocations: 236.3 kB / 459.7 MB, free: 27.26 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002484/0.296, allocations: 421.2 kB / 460.1 MB, free: 26.92 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002792/0.2963, allocations: 179.7 kB / 460.3 MB, free: 26.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.2964, allocations: 364.5 kB / 460.6 MB, free: 26.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000637/0.297, allocations: 359.9 kB / 461 MB, free: 26.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007027/0.2977, allocations: 459.2 kB / 461.4 MB, free: 26.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01879/0.3165, allocations: 3.472 MB / 464.9 MB, free: 25.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.915e-06/0.3166, allocations: 5.25 kB / 464.9 MB, free: 25.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.003092/0.3197, allocations: 1.21 MB / 466.1 MB, free: 24.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.391e-05/0.3197, allocations: 4.719 kB / 466.1 MB, free: 24.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.3198, allocations: 1.156 kB / 466.1 MB, free: 24.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00103/0.3208, allocations: 216.7 kB / 466.3 MB, free: 24.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006218/0.327, allocations: 0.8139 MB / 467.1 MB, free: 24.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009309/0.3364, allocations: 14.94 MB / 482.1 MB, free: 9.574 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008363/0.3372, allocations: 27.41 kB / 482.1 MB, free: 9.559 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001482/0.3374, allocations: 39.73 kB / 482.1 MB, free: 9.551 MB / 350.1 MB Warning: Assuming fixed start value for the following 4 variables: U1.T:VARIABLE(min = 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 = 0.0 start = V.pstart unit = "Pa" fixed = true nominal = 1e5 stateSelect=StateSelect.always ) type: Real V.T:VARIABLE(min = 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.0005283/0.3379, allocations: 237 kB / 482.4 MB, free: 9.352 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001539/0.3381, allocations: 49.92 kB / 482.4 MB, free: 9.328 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003166/0.3413, allocations: 1.49 MB / 483.9 MB, free: 8.633 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.046e-05/0.3413, allocations: 12.44 kB / 483.9 MB, free: 8.633 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.218e-05/0.3413, allocations: 1.281 kB / 483.9 MB, free: 8.633 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.601e-05/0.3413, allocations: 9.141 kB / 483.9 MB, free: 8.633 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004528/0.3459, allocations: 2.578 MB / 486.5 MB, free: 7.223 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.347e-05/0.3459, allocations: 5.281 kB / 486.5 MB, free: 7.223 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005785/0.3517, allocations: 0.7566 MB / 487.3 MB, free: 7.176 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002016/0.3537, allocations: 368 kB / 487.6 MB, free: 7.086 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001481/0.3539, allocations: 33.3 kB / 487.7 MB, free: 7.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01117/0.3651, allocations: 15.18 MB / 0.4911 GB, free: 7.906 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.184e-05/0.3651, allocations: 11.28 kB / 0.4911 GB, free: 7.902 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004226/0.3693, allocations: 2.061 MB / 0.4931 GB, free: 6.406 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000226/0.3696, allocations: 144 kB / 0.4932 GB, free: 6.25 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001371/0.3697, allocations: 29.55 kB / 0.4932 GB, free: 6.223 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000737/0.3705, allocations: 38.62 kB / 0.4933 GB, free: 6.188 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003186/0.3708, allocations: 114.6 kB / 0.4934 GB, free: 6.113 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001052/0.3709, allocations: 47.98 kB / 0.4934 GB, free: 6.066 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001784/0.3711, allocations: 168.1 kB / 0.4936 GB, free: 5.902 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.873e-06/0.3711, allocations: 0 / 0.4936 GB, free: 5.902 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00118/0.3723, allocations: 267.9 kB / 0.4939 GB, free: 5.641 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.0002163/0.3725, allocations: 140.1 kB / 0.494 GB, free: 5.496 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.007501/0.38, allocations: 2.053 MB / 0.496 GB, free: 3.387 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.3801, allocations: 0 / 0.496 GB, free: 3.387 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006153/0.3862, allocations: 1.626 MB / 0.4976 GB, free: 1.715 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001162/0.3874, allocations: 201.7 kB / 0.4978 GB, free: 1.512 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003453/0.3909, allocations: 1.876 MB / 0.4996 GB, free: 15.54 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006466/0.3915, allocations: 0.9338 MB / 0.5005 GB, free: 14.58 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006408/0.3922, allocations: 117.5 kB / 0.5006 GB, free: 14.46 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002792/0.3925, allocations: 67.41 kB / 0.5007 GB, free: 14.39 MB / 382.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3925, allocations: 4 kB / 0.5007 GB, free: 14.39 MB / 382.1 MB Notification: Performance of Templates: time 0.02331/0.4158, allocations: 13.66 MB / 0.514 GB, free: 0.8633 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 -s gbode -lv LOG_STATS > AES_AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002.pipe 2>&1)