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.001261/0.001261, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001442/0.001442, allocations: 193.8 kB / 16.25 MB, free: 6.629 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.352/1.352, allocations: 222.9 MB / 239.9 MB, free: 4.496 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1956/0.1956, allocations: 22.36 MB / 312.4 MB, free: 12.59 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001132/0.001132, allocations: 63.89 kB / 380.3 MB, free: 10.91 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2686/0.2698, allocations: 54.94 MB / 435.2 MB, free: 39.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.003961/0.2738, allocations: 4.049 MB / 439.3 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001724/0.2755, allocations: 1.286 MB / 440.6 MB, free: 35.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000168/0.2757, allocations: 4.969 kB / 440.6 MB, free: 35.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001368/0.2759, allocations: 57.42 kB / 440.6 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000349/0.2762, allocations: 187.4 kB / 440.8 MB, free: 35.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004225/0.2767, allocations: 257.5 kB / 441.1 MB, free: 35.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006495/0.2773, allocations: 1.085 MB / 442.2 MB, free: 34.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000403/0.2777, allocations: 434 kB / 442.6 MB, free: 34.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003172/0.2781, allocations: 408.7 kB / 443 MB, free: 34.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003532/0.2784, allocations: 417.1 kB / 443.4 MB, free: 34.39 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.578e-05/0.2785, allocations: 93.88 kB / 443.5 MB, free: 34.39 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001093/0.2786, allocations: 93.41 kB / 443.6 MB, free: 34.39 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000104/0.2788, allocations: 199.6 kB / 443.8 MB, free: 34.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002502/0.279, allocations: 423.1 kB / 444.2 MB, free: 34.01 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005438/0.2796, allocations: 0.952 MB / 445.1 MB, free: 33.63 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.2796, allocations: 0 / 445.1 MB, free: 33.63 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.2796, allocations: 3.938 kB / 445.1 MB, free: 33.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.909e-06/0.2796, allocations: 0 / 445.1 MB, free: 33.62 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.001783/0.2814, allocations: 0.9819 MB / 446.1 MB, free: 32.97 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.573e-05/0.2814, allocations: 8.375 kB / 446.1 MB, free: 32.97 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001209/0.2816, allocations: 72.62 kB / 446.2 MB, free: 32.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001528/0.2817, allocations: 251.1 kB / 446.4 MB, free: 32.67 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.969e-05/0.2818, allocations: 59.12 kB / 446.5 MB, free: 32.65 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.802e-05/0.2819, allocations: 80.81 kB / 446.6 MB, free: 32.62 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001015/0.2829, allocations: 0.6924 MB / 447.3 MB, free: 32.33 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.843e-05/0.2829, allocations: 0 / 447.3 MB, free: 32.33 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.636e-05/0.283, allocations: 42.39 kB / 447.3 MB, free: 32.3 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.486e-05/0.283, allocations: 20.09 kB / 447.3 MB, free: 32.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009731/0.284, allocations: 0.6984 MB / 448 MB, free: 32.06 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.002815/0.2868, allocations: 2.288 MB / 450.3 MB, free: 30.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009148/0.2877, allocations: 0.6805 MB / 451 MB, free: 30.3 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004164/0.2882, allocations: 330.8 kB / 451.3 MB, free: 30.16 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.344e-05/0.2882, allocations: 24.23 kB / 451.3 MB, free: 30.14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.374e-05/0.2883, allocations: 46.19 kB / 451.4 MB, free: 30.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=102): time 1.994e-06/0.2883, allocations: 2.625 kB / 451.4 MB, free: 30.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=112): time 0.006965/0.2953, allocations: 3.098 MB / 454.5 MB, free: 28.47 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.585e-05/0.2953, allocations: 63.12 kB / 454.5 MB, free: 28.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001999/0.2955, allocations: 201 kB / 454.7 MB, free: 28.28 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.668e-05/0.2956, allocations: 46.08 kB / 454.8 MB, free: 28.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.39e-05/0.2957, allocations: 231.2 kB / 455 MB, free: 28.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002033/0.2959, allocations: 383 kB / 455.4 MB, free: 27.74 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002245/0.2961, allocations: 144.1 kB / 455.5 MB, free: 27.66 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.713e-05/0.2962, allocations: 360 kB / 455.9 MB, free: 27.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005043/0.2967, allocations: 301.6 kB / 456.2 MB, free: 27.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005227/0.2973, allocations: 390.8 kB / 456.6 MB, free: 27.02 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01137/0.3086, allocations: 2.254 MB / 458.8 MB, free: 26.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.3087, allocations: 4 kB / 458.8 MB, free: 26.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002141/0.3108, allocations: 1.037 MB / 459.8 MB, free: 25.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.3108, allocations: 8.359 kB / 459.9 MB, free: 25.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.305e-06/0.3109, allocations: 2.156 kB / 459.9 MB, free: 25.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009868/0.3119, allocations: 214.1 kB / 460.1 MB, free: 25.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005906/0.3178, allocations: 0.7532 MB / 460.8 MB, free: 25.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008878/0.3267, allocations: 14.94 MB / 475.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007631/0.3274, allocations: 54.78 kB / 475.8 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.222e-05/0.3275, allocations: 29.69 kB / 475.8 MB, free: 10.65 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.0004368/0.328, allocations: 252.5 kB / 476.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.986e-05/0.3281, allocations: 51.78 kB / 476.1 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002713/0.3308, allocations: 1.24 MB / 477.4 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.345e-05/0.3308, allocations: 15 kB / 477.4 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/0.3308, allocations: 2.984 kB / 477.4 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.655e-05/0.3309, allocations: 5.203 kB / 477.4 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003956/0.3348, allocations: 2.386 MB / 479.8 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-05/0.3348, allocations: 10.66 kB / 479.8 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005354/0.3402, allocations: 0.7017 MB / 480.5 MB, free: 8.453 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002001/0.3422, allocations: 359.8 kB / 480.9 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.4e-05/0.3423, allocations: 36.94 kB / 480.9 MB, free: 8.344 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01065/0.353, allocations: 15.12 MB / 496 MB, free: 9.207 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-05/0.353, allocations: 11.16 kB / 496 MB, free: 9.203 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003623/0.3567, allocations: 1.822 MB / 497.8 MB, free: 8.141 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001837/0.3569, allocations: 124.9 kB / 498 MB, free: 8.023 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000101/0.357, allocations: 32.34 kB / 498 MB, free: 8.008 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006765/0.3576, allocations: 49.39 kB / 498 MB, free: 7.988 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003049/0.358, allocations: 116.8 kB / 498.2 MB, free: 7.949 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.28e-05/0.358, allocations: 38.83 kB / 498.2 MB, free: 7.941 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001558/0.3582, allocations: 158 kB / 498.4 MB, free: 7.84 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.3582, allocations: 0 / 498.4 MB, free: 7.84 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001095/0.3593, allocations: 238.2 kB / 498.6 MB, free: 7.805 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.0002163/0.3595, allocations: 143.7 kB / 498.7 MB, free: 7.68 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.008083/0.3676, allocations: 1.935 MB / 0.4889 GB, free: 6.824 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.047e-06/0.3677, allocations: 1.031 kB / 0.4889 GB, free: 6.824 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006332/0.374, allocations: 1.521 MB / 0.4904 GB, free: 6.137 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001173/0.3752, allocations: 181.3 kB / 0.4906 GB, free: 6.066 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003247/0.3784, allocations: 2.087 MB / 0.4926 GB, free: 4.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005485/0.379, allocations: 0.9133 MB / 0.4935 GB, free: 3.387 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006413/0.3797, allocations: 89.25 kB / 0.4936 GB, free: 3.316 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001953/0.3799, allocations: 49.03 kB / 0.4936 GB, free: 3.27 MB / 366.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3799, allocations: 3.938 kB / 0.4937 GB, free: 3.266 MB / 366.1 MB Notification: Performance of Templates: time 0.01782/0.3977, allocations: 11.53 MB / 0.5049 GB, free: 8.477 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)