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.001329/0.001329, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001577/0.001577, allocations: 194.3 kB / 16.53 MB, free: 6.664 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.432/1.432, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2822/0.2822, allocations: 22.34 MB / 312.7 MB, free: 12.49 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002399/0.002399, allocations: 59.91 kB / 380.8 MB, free: 10.51 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.312/0.3145, allocations: 54.94 MB / 435.8 MB, free: 39.9 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002): time 0.004849/0.3194, allocations: 4.23 MB / 440 MB, free: 36.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002204/0.3216, allocations: 1.345 MB / 441.3 MB, free: 35.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004746/0.3221, allocations: 5.219 kB / 441.3 MB, free: 35.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002694/0.3224, allocations: 86.59 kB / 441.4 MB, free: 35.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007352/0.3231, allocations: 238.1 kB / 441.7 MB, free: 35.63 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006337/0.3238, allocations: 307.3 kB / 442 MB, free: 35.45 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008706/0.3247, allocations: 1.166 MB / 443.1 MB, free: 34.85 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005257/0.3252, allocations: 0.5566 MB / 443.7 MB, free: 34.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003547/0.3256, allocations: 460.2 kB / 444.1 MB, free: 34.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004729/0.326, allocations: 0.5096 MB / 444.6 MB, free: 34.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001364/0.3262, allocations: 113.3 kB / 444.8 MB, free: 34.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001627/0.3264, allocations: 111.6 kB / 444.9 MB, free: 34.17 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000142/0.3265, allocations: 228.9 kB / 445.1 MB, free: 34.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003263/0.3268, allocations: 475.8 kB / 445.6 MB, free: 33.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007222/0.3276, allocations: 1.1 MB / 446.7 MB, free: 33.31 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.3276, allocations: 0 / 446.7 MB, free: 33.31 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3276, allocations: 0 / 446.7 MB, free: 33.31 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.215e-05/0.3276, allocations: 0 / 446.7 MB, free: 33.31 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.002028/0.3297, allocations: 1.068 MB / 447.7 MB, free: 32.63 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.671e-05/0.3297, allocations: 11.41 kB / 447.7 MB, free: 32.63 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001346/0.3298, allocations: 83.5 kB / 447.8 MB, free: 32.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000154/0.33, allocations: 255.1 kB / 448.1 MB, free: 32.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.312e-05/0.33, allocations: 75.69 kB / 448.1 MB, free: 32.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001062/0.3302, allocations: 84.72 kB / 448.2 MB, free: 32.26 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001085/0.3313, allocations: 0.811 MB / 449 MB, free: 31.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.78e-05/0.3313, allocations: 0 / 449 MB, free: 31.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.324e-05/0.3314, allocations: 34.38 kB / 449.1 MB, free: 31.9 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.465e-05/0.3314, allocations: 21.78 kB / 449.1 MB, free: 31.9 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001122/0.3325, allocations: 0.8278 MB / 449.9 MB, free: 31.61 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.003337/0.3359, allocations: 2.62 MB / 452.5 MB, free: 30 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001732/0.3376, allocations: 0.9914 MB / 453.5 MB, free: 29.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005543/0.3382, allocations: 418.4 kB / 453.9 MB, free: 29.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.277e-05/0.3382, allocations: 24.97 kB / 454 MB, free: 29.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.289e-05/0.3383, allocations: 50.31 kB / 454 MB, free: 29.4 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004237/0.3387, allocations: 124.6 kB / 454.1 MB, free: 29.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=113): time 2.916e-06/0.3387, allocations: 0 / 454.1 MB, free: 29.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=124): time 0.007528/0.3462, allocations: 3.529 MB / 457.7 MB, free: 27.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.513e-05/0.3463, allocations: 68.12 kB / 457.7 MB, free: 27.48 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002006/0.3465, allocations: 219.1 kB / 457.9 MB, free: 27.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.254e-05/0.3466, allocations: 46.2 kB / 458 MB, free: 27.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.899e-05/0.3467, allocations: 234.6 kB / 458.2 MB, free: 27.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002038/0.3469, allocations: 427.2 kB / 458.6 MB, free: 26.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002551/0.3471, allocations: 175.7 kB / 458.8 MB, free: 26.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.691e-05/0.3472, allocations: 363.2 kB / 459.2 MB, free: 26.35 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005629/0.3478, allocations: 360.2 kB / 459.5 MB, free: 26.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006336/0.3484, allocations: 459.6 kB / 460 MB, free: 25.99 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01886/0.3673, allocations: 3.48 MB / 463.4 MB, free: 25.13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.154e-05/0.3674, allocations: 4.688 kB / 463.4 MB, free: 25.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002976/0.3704, allocations: 1.209 MB / 464.6 MB, free: 24.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.583e-05/0.3704, allocations: 5.828 kB / 464.7 MB, free: 24.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.3704, allocations: 2.156 kB / 464.7 MB, free: 24.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001034/0.3715, allocations: 212.4 kB / 464.9 MB, free: 24.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006151/0.3777, allocations: 0.8161 MB / 465.7 MB, free: 24.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009463/0.3871, allocations: 14.94 MB / 480.6 MB, free: 9.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008938/0.3881, allocations: 33.69 kB / 480.7 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000165/0.3883, allocations: 39.16 kB / 480.7 MB, free: 9.383 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 = 100000.0 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.0005962/0.3889, allocations: 236.1 kB / 480.9 MB, free: 9.184 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001773/0.389, allocations: 50.12 kB / 481 MB, free: 9.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003245/0.3923, allocations: 1.49 MB / 482.5 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.17e-05/0.3923, allocations: 12.16 kB / 482.5 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.3923, allocations: 2.594 kB / 482.5 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.617e-05/0.3924, allocations: 10.05 kB / 482.5 MB, free: 8.465 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004703/0.3971, allocations: 2.575 MB / 485.1 MB, free: 7.055 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.582e-05/0.3971, allocations: 5.062 kB / 485.1 MB, free: 7.055 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005549/0.4027, allocations: 0.7524 MB / 485.8 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002064/0.4047, allocations: 368.9 kB / 486.2 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002137/0.405, allocations: 36.39 kB / 486.2 MB, free: 6.902 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01243/0.4174, allocations: 15.19 MB / 0.4896 GB, free: 7.738 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-05/0.4175, allocations: 11.22 kB / 0.4897 GB, free: 7.734 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00516/0.4226, allocations: 2.056 MB / 0.4917 GB, free: 6.406 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002819/0.4229, allocations: 147.4 kB / 0.4918 GB, free: 6.246 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001864/0.4231, allocations: 29.45 kB / 0.4918 GB, free: 6.219 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008043/0.424, allocations: 34.44 kB / 0.4919 GB, free: 6.188 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004254/0.4244, allocations: 123.2 kB / 0.492 GB, free: 6.105 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001046/0.4245, allocations: 37.97 kB / 0.492 GB, free: 6.07 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002385/0.4248, allocations: 162.8 kB / 0.4922 GB, free: 5.926 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.4248, allocations: 0 / 0.4922 GB, free: 5.926 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0015/0.4263, allocations: 260 kB / 0.4924 GB, free: 5.672 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.000282/0.4266, allocations: 156.2 kB / 0.4926 GB, free: 5.512 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.008194/0.4348, allocations: 2.105 MB / 0.4946 GB, free: 3.465 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 9.748e-06/0.4348, allocations: 0 / 0.4946 GB, free: 3.465 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006368/0.4412, allocations: 1.618 MB / 0.4962 GB, free: 1.801 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001849/0.4431, allocations: 201.5 kB / 0.4964 GB, free: 1.598 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004234/0.4473, allocations: 1.883 MB / 0.4982 GB, free: 15.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006355/0.448, allocations: 0.9338 MB / 0.4992 GB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009719/0.449, allocations: 125.5 kB / 0.4993 GB, free: 14.54 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002857/0.4493, allocations: 63.42 kB / 0.4993 GB, free: 14.47 MB / 382.1 MB Notification: Performance of SimCode: time 1.202e-06/0.4493, allocations: 0 / 0.4993 GB, free: 14.47 MB / 382.1 MB Notification: Performance of Templates: time 0.02503/0.4743, allocations: 13.63 MB / 0.5126 GB, free: 0.9727 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)