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.001436/0.001436, allocations: 105.5 kB / 16.41 MB, free: 6.492 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.001112/0.001112, allocations: 189.5 kB / 17.34 MB, free: 5.75 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.31/1.31, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09162/0.09162, allocations: 22.33 MB / 313.5 MB, free: 8.898 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 71.88 kB / 437.7 MB, free: 11.77 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09642/0.09762, allocations: 54.95 MB / 492.7 MB, free: 4.773 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002): time 0.004896/0.1026, allocations: 4.232 MB / 496.9 MB, free: 0.5156 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002432/0.105, allocations: 1.341 MB / 498.2 MB, free: 15.17 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003192/0.1054, allocations: 4 kB / 498.3 MB, free: 15.17 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001949/0.1056, allocations: 87.06 kB / 498.3 MB, free: 15.08 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004895/0.1061, allocations: 233.9 kB / 498.6 MB, free: 14.85 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007202/0.1068, allocations: 319.4 kB / 498.9 MB, free: 14.54 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001004/0.1079, allocations: 1.165 MB / 0.4883 GB, free: 13.37 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006715/0.1085, allocations: 0.5476 MB / 0.4889 GB, free: 12.82 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004869/0.109, allocations: 466.8 kB / 0.4893 GB, free: 12.36 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000621/0.1097, allocations: 0.5061 MB / 0.4898 GB, free: 11.85 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001431/0.1098, allocations: 108 kB / 0.4899 GB, free: 11.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001488/0.11, allocations: 112 kB / 0.49 GB, free: 11.64 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002011/0.1102, allocations: 227.4 kB / 0.4902 GB, free: 11.41 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004586/0.1107, allocations: 486 kB / 0.4907 GB, free: 10.94 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009613/0.1116, allocations: 1.102 MB / 0.4918 GB, free: 9.832 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.1116, allocations: 4 kB / 0.4918 GB, free: 9.828 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.1116, allocations: 0 / 0.4918 GB, free: 9.828 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.209e-05/0.1117, allocations: 0 / 0.4918 GB, free: 9.828 MB / 382.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.002288/0.114, allocations: 1.077 MB / 0.4928 GB, free: 8.703 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.114, allocations: 11.97 kB / 0.4928 GB, free: 8.691 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001514/0.1142, allocations: 84 kB / 0.4929 GB, free: 8.609 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002291/0.1144, allocations: 251.9 kB / 0.4932 GB, free: 8.324 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.362e-05/0.1145, allocations: 70.12 kB / 0.4932 GB, free: 8.254 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001223/0.1146, allocations: 92 kB / 0.4933 GB, free: 8.164 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001282/0.1159, allocations: 0.7999 MB / 0.4941 GB, free: 7.355 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.932e-05/0.1159, allocations: 0 / 0.4941 GB, free: 7.355 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.21e-05/0.116, allocations: 36 kB / 0.4941 GB, free: 7.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.81e-05/0.116, allocations: 20 kB / 0.4941 GB, free: 7.301 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001331/0.1174, allocations: 0.8276 MB / 0.4949 GB, free: 6.477 MB / 382.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.004047/0.1214, allocations: 2.605 MB / 0.4975 GB, free: 3.73 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001945/0.1234, allocations: 0.9897 MB / 0.4985 GB, free: 2.738 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006262/0.124, allocations: 419.7 kB / 0.4989 GB, free: 2.324 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.047e-05/0.1241, allocations: 20.97 kB / 0.4989 GB, free: 2.305 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.26e-05/0.1242, allocations: 47.5 kB / 0.4989 GB, free: 2.246 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005038/0.1247, allocations: 123.2 kB / 0.499 GB, free: 2.125 MB / 382.1 MB Notification: Performance of pre-optimization done (n=113): time 3.266e-06/0.1247, allocations: 4 kB / 0.499 GB, free: 2.121 MB / 382.1 MB Notification: Performance of matching and sorting (n=124): time 0.2258/0.3505, allocations: 3.528 MB / 0.5025 GB, free: 21.97 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.031e-05/0.3505, allocations: 70.09 kB / 0.5026 GB, free: 21.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001983/0.3507, allocations: 217.5 kB / 0.5028 GB, free: 21.8 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.776e-05/0.3508, allocations: 47.42 kB / 0.5028 GB, free: 21.77 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.941e-05/0.3509, allocations: 237.4 kB / 0.503 GB, free: 21.61 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002196/0.3511, allocations: 422.2 kB / 0.5034 GB, free: 21.34 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002508/0.3514, allocations: 182 kB / 0.5036 GB, free: 21.32 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.846e-05/0.3515, allocations: 359.6 kB / 0.504 GB, free: 21.01 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005315/0.352, allocations: 361.2 kB / 0.5043 GB, free: 21.01 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005851/0.3526, allocations: 456.2 kB / 0.5047 GB, free: 20.95 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01864/0.3713, allocations: 3.477 MB / 0.5081 GB, free: 20.81 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.3713, allocations: 1.344 kB / 0.5081 GB, free: 20.81 MB / 382.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002453/0.3738, allocations: 1.207 MB / 0.5093 GB, free: 20.68 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.315e-05/0.3738, allocations: 6.156 kB / 0.5093 GB, free: 20.68 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.3738, allocations: 1.375 kB / 0.5093 GB, free: 20.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009865/0.3748, allocations: 213.5 kB / 0.5095 GB, free: 20.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00624/0.3811, allocations: 0.8128 MB / 0.5103 GB, free: 20.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008719/0.3898, allocations: 14.95 MB / 0.5249 GB, free: 6.363 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000855/0.3907, allocations: 28.27 kB / 0.5249 GB, free: 6.363 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.869e-05/0.3908, allocations: 43.77 kB / 0.525 GB, free: 6.363 MB / 382.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.0004431/0.3913, allocations: 230.1 kB / 0.5252 GB, free: 6.234 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000122/0.3914, allocations: 54.95 kB / 0.5253 GB, free: 6.207 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003182/0.3946, allocations: 1.485 MB / 0.5267 GB, free: 6.051 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.414e-05/0.3946, allocations: 17.03 kB / 0.5267 GB, free: 6.047 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.276e-06/0.3946, allocations: 1.5 kB / 0.5267 GB, free: 6.047 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.675e-05/0.3946, allocations: 6.422 kB / 0.5267 GB, free: 6.047 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004554/0.3992, allocations: 2.582 MB / 0.5292 GB, free: 5.262 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-05/0.3992, allocations: 10.78 kB / 0.5293 GB, free: 5.258 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005705/0.405, allocations: 0.7589 MB / 0.53 GB, free: 5.211 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002079/0.4071, allocations: 366.5 kB / 0.5303 GB, free: 5.125 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001775/0.4073, allocations: 36.83 kB / 0.5304 GB, free: 5.105 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01071/0.418, allocations: 15.18 MB / 0.5452 GB, free: 5.977 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.268e-06/0.418, allocations: 11.06 kB / 0.5452 GB, free: 5.973 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003863/0.4219, allocations: 2.057 MB / 0.5472 GB, free: 4.828 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001818/0.4221, allocations: 135.5 kB / 0.5474 GB, free: 4.703 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001158/0.4222, allocations: 35.27 kB / 0.5474 GB, free: 4.684 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000688/0.4229, allocations: 31.06 kB / 0.5474 GB, free: 4.668 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002784/0.4232, allocations: 126.6 kB / 0.5475 GB, free: 4.633 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.405e-05/0.4233, allocations: 41.44 kB / 0.5476 GB, free: 4.625 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001707/0.4235, allocations: 174 kB / 0.5477 GB, free: 4.516 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4235, allocations: 0.8125 kB / 0.5477 GB, free: 4.516 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001072/0.4245, allocations: 257.8 kB / 0.548 GB, free: 4.477 MB / 398.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.0001989/0.4247, allocations: 145 kB / 0.5481 GB, free: 4.352 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007348/0.4321, allocations: 2.029 MB / 0.5501 GB, free: 3.215 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 9.899e-06/0.4321, allocations: 1.031 kB / 0.5501 GB, free: 3.215 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005997/0.4381, allocations: 1.603 MB / 0.5517 GB, free: 2.281 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001147/0.4393, allocations: 205.8 kB / 0.5519 GB, free: 2.164 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003109/0.4424, allocations: 1.887 MB / 0.5537 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005109/0.443, allocations: 0.945 MB / 0.5546 GB, free: 60 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003721/0.4434, allocations: 74.34 kB / 0.5547 GB, free: 40 kB / 398.1 MB Notification: Performance of SimCode: time 7.31e-07/0.4434, allocations: 0 / 0.5547 GB, free: 40 kB / 398.1 MB Notification: Performance of Templates: time 0.034/0.4774, allocations: 36.76 MB / 0.5906 GB, free: 12.57 MB / 446.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)