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.001529/0.001529, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001134/0.001134, allocations: 192.1 kB / 16.13 MB, free: 6.645 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.307/1.307, allocations: 222.9 MB / 239.8 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1931/0.1931, allocations: 22.37 MB / 312.3 MB, free: 12.71 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 63.91 kB / 380.1 MB, free: 11.12 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2814/0.2828, allocations: 54.94 MB / 435.1 MB, free: 39.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002): time 0.003886/0.2868, allocations: 4.255 MB / 439.3 MB, free: 36.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001602/0.2884, allocations: 1.332 MB / 440.7 MB, free: 35.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001628/0.2886, allocations: 5.531 kB / 440.7 MB, free: 35.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001358/0.2887, allocations: 60.31 kB / 440.7 MB, free: 35.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003301/0.289, allocations: 206.7 kB / 440.9 MB, free: 35.4 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004092/0.2895, allocations: 278.7 kB / 441.2 MB, free: 35.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006181/0.2901, allocations: 1.09 MB / 442.3 MB, free: 34.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004498/0.2905, allocations: 489.7 kB / 442.8 MB, free: 34.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003219/0.2909, allocations: 402.1 kB / 443.2 MB, free: 34.35 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004166/0.2913, allocations: 496.5 kB / 443.6 MB, free: 34.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.324e-05/0.2914, allocations: 56.62 kB / 443.7 MB, free: 34.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001271/0.2915, allocations: 61 kB / 443.8 MB, free: 34.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001176/0.2917, allocations: 174.1 kB / 443.9 MB, free: 34.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003041/0.292, allocations: 430.5 kB / 444.3 MB, free: 33.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005663/0.2925, allocations: 1.053 MB / 445.4 MB, free: 33.42 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.2925, allocations: 3.531 kB / 445.4 MB, free: 33.42 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.91e-07/0.2926, allocations: 0 / 445.4 MB, free: 33.42 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.148e-06/0.2926, allocations: 4 kB / 445.4 MB, free: 33.41 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.002009/0.2946, allocations: 1.071 MB / 446.5 MB, free: 32.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.2946, allocations: 14.22 kB / 446.5 MB, free: 32.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001478/0.2948, allocations: 87.88 kB / 446.6 MB, free: 32.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001911/0.295, allocations: 259.5 kB / 446.8 MB, free: 32.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.299e-05/0.295, allocations: 73.5 kB / 446.9 MB, free: 32.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001197/0.2952, allocations: 85.59 kB / 447 MB, free: 32.35 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001167/0.2963, allocations: 0.8077 MB / 447.8 MB, free: 32.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.769e-05/0.2964, allocations: 0 / 447.8 MB, free: 32.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.106e-05/0.2965, allocations: 36.47 kB / 447.8 MB, free: 31.99 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.677e-05/0.2965, allocations: 20.78 kB / 447.8 MB, free: 31.99 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001202/0.2977, allocations: 0.8236 MB / 448.7 MB, free: 31.71 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.003437/0.3011, allocations: 2.596 MB / 451.3 MB, free: 30.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001706/0.3028, allocations: 0.9973 MB / 452.3 MB, free: 29.74 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005223/0.3034, allocations: 421.1 kB / 452.7 MB, free: 29.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.577e-05/0.3035, allocations: 16.33 kB / 452.7 MB, free: 29.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.356e-05/0.3035, allocations: 49.25 kB / 452.7 MB, free: 29.51 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004285/0.3039, allocations: 119.3 kB / 452.9 MB, free: 29.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=113): time 2.145e-06/0.3039, allocations: 0 / 452.9 MB, free: 29.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=124): time 0.007684/0.3116, allocations: 3.533 MB / 456.4 MB, free: 27.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.765e-05/0.3117, allocations: 65.47 kB / 456.4 MB, free: 27.6 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002037/0.3119, allocations: 214.6 kB / 456.7 MB, free: 27.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.161e-05/0.312, allocations: 46.77 kB / 456.7 MB, free: 27.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.3121, allocations: 240.4 kB / 456.9 MB, free: 27.22 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002268/0.3123, allocations: 422.5 kB / 457.4 MB, free: 26.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002693/0.3126, allocations: 181.2 kB / 457.5 MB, free: 26.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.644e-05/0.3127, allocations: 358.7 kB / 457.9 MB, free: 26.46 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005932/0.3133, allocations: 365.3 kB / 458.2 MB, free: 26.31 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006732/0.314, allocations: 456.4 kB / 458.7 MB, free: 26.1 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01834/0.3323, allocations: 3.484 MB / 462.2 MB, free: 25.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.2e-06/0.3323, allocations: 5.438 kB / 462.2 MB, free: 25.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002423/0.3348, allocations: 1.201 MB / 463.4 MB, free: 24.71 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.214e-05/0.3348, allocations: 5.484 kB / 463.4 MB, free: 24.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.3348, allocations: 6.156 kB / 463.4 MB, free: 24.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000998/0.3358, allocations: 211.3 kB / 463.6 MB, free: 24.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006097/0.3419, allocations: 0.8168 MB / 464.4 MB, free: 24.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008266/0.3502, allocations: 13.88 MB / 478.3 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009121/0.3511, allocations: 51.31 kB / 478.3 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.912e-05/0.3512, allocations: 39.66 kB / 478.4 MB, free: 10.55 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.0004902/0.3517, allocations: 260.8 kB / 478.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001113/0.3519, allocations: 55.2 kB / 478.7 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003089/0.3549, allocations: 1.484 MB / 480.2 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.281e-05/0.355, allocations: 17.16 kB / 480.2 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.355, allocations: 6.688 kB / 480.2 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.479e-05/0.355, allocations: 7.359 kB / 480.2 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004214/0.3592, allocations: 2.581 MB / 482.8 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.997e-06/0.3592, allocations: 5.969 kB / 482.8 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005646/0.3649, allocations: 0.7568 MB / 483.5 MB, free: 8.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001997/0.3669, allocations: 375.5 kB / 483.9 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.765e-05/0.367, allocations: 37.52 kB / 483.9 MB, free: 8.051 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009888/0.3769, allocations: 14.09 MB / 498 MB, free: 9.965 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.286e-06/0.3769, allocations: 11.88 kB / 498 MB, free: 9.961 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004077/0.381, allocations: 2.06 MB / 0.4884 GB, free: 8.812 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002085/0.3813, allocations: 137.7 kB / 0.4885 GB, free: 8.684 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001157/0.3814, allocations: 31.7 kB / 0.4885 GB, free: 8.668 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008005/0.3822, allocations: 49.64 kB / 0.4886 GB, free: 8.648 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003054/0.3825, allocations: 117.4 kB / 0.4887 GB, free: 8.617 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.664e-05/0.3826, allocations: 42.81 kB / 0.4887 GB, free: 8.609 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001827/0.3828, allocations: 170.5 kB / 0.4889 GB, free: 8.5 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3828, allocations: 0 / 0.4889 GB, free: 8.5 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001271/0.3841, allocations: 273.4 kB / 0.4892 GB, free: 8.453 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.0002192/0.3843, allocations: 142.1 kB / 0.4893 GB, free: 8.332 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.007641/0.3919, allocations: 2.042 MB / 0.4913 GB, free: 6.531 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.392, allocations: 3.938 kB / 0.4913 GB, free: 6.527 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00621/0.3982, allocations: 1.625 MB / 0.4929 GB, free: 4.898 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001214/0.3994, allocations: 181.5 kB / 0.4931 GB, free: 4.719 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003402/0.4028, allocations: 2.236 MB / 0.4952 GB, free: 2.383 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004695/0.4033, allocations: 0.9377 MB / 0.4962 GB, free: 1.422 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007587/0.4041, allocations: 113.5 kB / 0.4963 GB, free: 1.309 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002641/0.4044, allocations: 63.41 kB / 0.4963 GB, free: 1.246 MB / 366.1 MB Notification: Performance of SimCode: time 9.82e-07/0.4044, allocations: 0 / 0.4963 GB, free: 1.246 MB / 366.1 MB Notification: Performance of Templates: time 0.01966/0.424, allocations: 12.93 MB / 0.509 GB, free: 4.43 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)