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.001062/0.001062, allocations: 102.2 kB / 16.27 MB, free: 6 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.001095/0.001095, allocations: 193.3 kB / 17.2 MB, free: 5.609 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.313/1.313, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09326/0.09326, allocations: 22.33 MB / 313.4 MB, free: 8.965 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 63.45 kB / 381.5 MB, free: 41.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07832/0.07967, allocations: 54.96 MB / 436.4 MB, free: 13.05 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002): time 0.005134/0.08482, allocations: 4.238 MB / 440.6 MB, free: 8.785 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002271/0.08712, allocations: 1.329 MB / 442 MB, free: 7.453 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003408/0.08748, allocations: 7.938 kB / 442 MB, free: 7.445 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002035/0.08772, allocations: 87.06 kB / 442.1 MB, free: 7.359 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005664/0.0883, allocations: 245.8 kB / 442.3 MB, free: 7.117 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005884/0.08889, allocations: 299.5 kB / 442.6 MB, free: 6.824 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001062/0.08996, allocations: 1.158 MB / 443.8 MB, free: 5.664 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006233/0.0906, allocations: 0.5632 MB / 444.3 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004497/0.09106, allocations: 454.8 kB / 444.8 MB, free: 4.656 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005713/0.09164, allocations: 0.5138 MB / 445.3 MB, free: 4.141 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001344/0.09178, allocations: 108 kB / 445.4 MB, free: 4.035 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001692/0.09196, allocations: 108 kB / 445.5 MB, free: 3.93 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001814/0.09214, allocations: 231.4 kB / 445.7 MB, free: 3.703 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004153/0.09257, allocations: 478.1 kB / 446.2 MB, free: 3.234 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008502/0.09342, allocations: 1.091 MB / 447.3 MB, free: 2.141 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.688e-06/0.09344, allocations: 0 / 447.3 MB, free: 2.141 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.09345, allocations: 3.938 kB / 447.3 MB, free: 2.137 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.228e-05/0.09346, allocations: 3.984 kB / 447.3 MB, free: 2.133 MB / 318.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.002233/0.0957, allocations: 1.077 MB / 448.4 MB, free: 1.004 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.331e-05/0.09574, allocations: 8.031 kB / 448.4 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001479/0.0959, allocations: 80 kB / 448.4 MB, free: 0.918 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001926/0.0961, allocations: 254.1 kB / 448.7 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.324e-05/0.09616, allocations: 70.12 kB / 448.8 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001251/0.09629, allocations: 84 kB / 448.8 MB, free: 496 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001264/0.09756, allocations: 0.8155 MB / 449.7 MB, free: 15.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.09759, allocations: 0 / 449.7 MB, free: 15.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.263e-05/0.09768, allocations: 36 kB / 449.7 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.569e-05/0.0977, allocations: 20 kB / 449.7 MB, free: 15.61 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001366/0.09907, allocations: 0.8237 MB / 450.5 MB, free: 14.78 MB / 334.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.004084/0.1032, allocations: 2.635 MB / 453.2 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002116/0.1053, allocations: 0.9871 MB / 454.2 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006852/0.106, allocations: 428.8 kB / 454.6 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.065e-05/0.1061, allocations: 12.98 kB / 454.6 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.142e-05/0.1061, allocations: 43.56 kB / 454.6 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004932/0.1066, allocations: 127.1 kB / 454.8 MB, free: 10.4 MB / 334.1 MB Notification: Performance of pre-optimization done (n=113): time 3.626e-06/0.1066, allocations: 4 kB / 454.8 MB, free: 10.4 MB / 334.1 MB Notification: Performance of matching and sorting (n=124): time 0.008584/0.1152, allocations: 3.529 MB / 458.3 MB, free: 6.75 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.692e-05/0.1153, allocations: 68.39 kB / 458.4 MB, free: 6.668 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002332/0.1156, allocations: 215.8 kB / 458.6 MB, free: 6.449 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.176e-05/0.1157, allocations: 49.64 kB / 458.6 MB, free: 6.395 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001373/0.1158, allocations: 249.1 kB / 458.9 MB, free: 6.145 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000295/0.1161, allocations: 421.8 kB / 459.3 MB, free: 5.727 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002885/0.1164, allocations: 174.9 kB / 459.4 MB, free: 5.551 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001337/0.1166, allocations: 358.8 kB / 459.8 MB, free: 5.191 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000627/0.1172, allocations: 358.5 kB / 460.1 MB, free: 4.84 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006984/0.1179, allocations: 458.5 kB / 460.6 MB, free: 4.375 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01857/0.1365, allocations: 3.484 MB / 464.1 MB, free: 0.875 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/0.1365, allocations: 3.938 kB / 464.1 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002648/0.1392, allocations: 1.199 MB / 465.3 MB, free: 15.65 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.529e-05/0.1392, allocations: 10.34 kB / 465.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.1392, allocations: 0 / 465.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001011/0.1402, allocations: 223.1 kB / 465.5 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006041/0.1463, allocations: 0.8115 MB / 466.3 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01224/0.1586, allocations: 14.94 MB / 481.3 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009083/0.1595, allocations: 32.02 kB / 481.3 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002127/0.1597, allocations: 35.98 kB / 481.3 MB, free: 14.18 MB / 366.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.0007459/0.1605, allocations: 247.5 kB / 481.6 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001967/0.1607, allocations: 51.44 kB / 481.6 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003502/0.1642, allocations: 1.492 MB / 483.1 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-05/0.1642, allocations: 12 kB / 483.1 MB, free: 12.35 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.1643, allocations: 4 kB / 483.1 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.38e-05/0.1643, allocations: 7.969 kB / 483.1 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004376/0.1687, allocations: 2.57 MB / 485.7 MB, free: 9.617 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.37e-05/0.1687, allocations: 8 kB / 485.7 MB, free: 9.609 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005502/0.1742, allocations: 0.7616 MB / 486.5 MB, free: 8.848 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002011/0.1762, allocations: 367 kB / 486.8 MB, free: 8.477 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001142/0.1764, allocations: 31.98 kB / 486.9 MB, free: 8.445 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0123/0.1887, allocations: 15.2 MB / 0.4903 GB, free: 7.832 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.376e-06/0.1887, allocations: 16 kB / 0.4903 GB, free: 7.816 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004034/0.1927, allocations: 2.047 MB / 0.4923 GB, free: 5.66 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001815/0.193, allocations: 140.4 kB / 0.4924 GB, free: 5.504 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001271/0.1931, allocations: 35.98 kB / 0.4925 GB, free: 5.469 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007102/0.1938, allocations: 39.94 kB / 0.4925 GB, free: 5.43 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002778/0.1941, allocations: 120.7 kB / 0.4926 GB, free: 5.312 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.939e-05/0.1942, allocations: 40 kB / 0.4927 GB, free: 5.273 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001727/0.1944, allocations: 168.1 kB / 0.4928 GB, free: 5.109 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.773e-06/0.1944, allocations: 0 / 0.4928 GB, free: 5.109 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001078/0.1955, allocations: 263.9 kB / 0.4931 GB, free: 4.852 MB / 382.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.000211/0.1957, allocations: 146.9 kB / 0.4932 GB, free: 4.699 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00775/0.2034, allocations: 2.065 MB / 0.4952 GB, free: 2.578 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.694e-06/0.2035, allocations: 0 / 0.4952 GB, free: 2.578 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005926/0.2094, allocations: 1.61 MB / 0.4968 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00125/0.2107, allocations: 201.7 kB / 0.497 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003225/0.2139, allocations: 1.91 MB / 0.4989 GB, free: 14.7 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000585/0.2145, allocations: 0.9377 MB / 0.4998 GB, free: 13.74 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003573/0.2149, allocations: 75.41 kB / 0.4998 GB, free: 13.67 MB / 398.1 MB Notification: Performance of SimCode: time 4.9e-07/0.2149, allocations: 0 / 0.4998 GB, free: 13.67 MB / 398.1 MB Notification: Performance of Templates: time 0.1917/0.4066, allocations: 36.59 MB / 0.5356 GB, free: 71.24 MB / 398.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)