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.0009769/0.0009769, allocations: 106.6 kB / 15.99 MB, free: 6.359 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.0009707/0.0009707, allocations: 193.8 kB / 16.91 MB, free: 6.195 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.208/1.208, allocations: 222.9 MB / 240.6 MB, free: 15.42 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08587/0.08587, allocations: 22.32 MB / 313.1 MB, free: 9.137 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001336/0.001336, allocations: 63.73 kB / 380.9 MB, free: 41.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08644/0.0878, allocations: 54.95 MB / 435.9 MB, free: 13.51 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002): time 0.004886/0.09272, allocations: 4.261 MB / 440.1 MB, free: 9.223 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002069/0.09481, allocations: 1.321 MB / 441.5 MB, free: 7.898 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002218/0.09505, allocations: 7.938 kB / 441.5 MB, free: 7.891 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001564/0.09524, allocations: 63.44 kB / 441.5 MB, free: 7.828 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003827/0.09562, allocations: 206.3 kB / 441.7 MB, free: 7.625 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004639/0.09609, allocations: 275.7 kB / 442 MB, free: 7.355 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008102/0.09691, allocations: 1.158 MB / 443.2 MB, free: 6.195 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005492/0.09747, allocations: 0.5437 MB / 443.7 MB, free: 5.652 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003977/0.09787, allocations: 470.7 kB / 444.2 MB, free: 5.191 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004749/0.09836, allocations: 0.5099 MB / 444.7 MB, free: 4.68 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001154/0.09848, allocations: 108 kB / 444.8 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001284/0.09861, allocations: 112 kB / 444.9 MB, free: 4.465 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001469/0.09877, allocations: 223.4 kB / 445.1 MB, free: 4.246 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003471/0.09912, allocations: 478.1 kB / 445.6 MB, free: 3.777 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005901/0.09972, allocations: 0.8342 MB / 446.4 MB, free: 2.941 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.09973, allocations: 0 / 446.4 MB, free: 2.941 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.09974, allocations: 0 / 446.4 MB, free: 2.941 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.488e-06/0.09975, allocations: 4 kB / 446.4 MB, free: 2.938 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.002108/0.1019, allocations: 1.077 MB / 447.5 MB, free: 1.809 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.43e-05/0.1019, allocations: 8.031 kB / 447.5 MB, free: 1.801 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001331/0.102, allocations: 80 kB / 447.6 MB, free: 1.723 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001877/0.1022, allocations: 255.8 kB / 447.8 MB, free: 1.434 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.73e-05/0.1023, allocations: 70.12 kB / 447.9 MB, free: 1.367 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001217/0.1024, allocations: 92 kB / 448 MB, free: 1.277 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00124/0.1037, allocations: 0.8077 MB / 448.8 MB, free: 472 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.963e-05/0.1037, allocations: 3.984 kB / 448.8 MB, free: 468 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.932e-05/0.1038, allocations: 36 kB / 448.8 MB, free: 432 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.578e-05/0.1038, allocations: 20 kB / 448.8 MB, free: 412 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001247/0.1051, allocations: 0.8277 MB / 449.7 MB, free: 15.57 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.003653/0.1087, allocations: 2.597 MB / 452.3 MB, free: 12.84 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001808/0.1105, allocations: 0.9863 MB / 453.3 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000576/0.1111, allocations: 422.2 kB / 453.7 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.216e-05/0.1112, allocations: 20.92 kB / 453.7 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.792e-05/0.1112, allocations: 51.56 kB / 453.7 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004495/0.1117, allocations: 123.2 kB / 453.9 MB, free: 11.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=113): time 2.775e-06/0.1117, allocations: 7.875 kB / 453.9 MB, free: 11.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=124): time 0.00788/0.1196, allocations: 3.536 MB / 457.4 MB, free: 7.574 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.896e-05/0.1197, allocations: 68.39 kB / 457.5 MB, free: 7.492 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000203/0.1199, allocations: 215.9 kB / 457.7 MB, free: 7.273 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.131e-05/0.12, allocations: 49.64 kB / 457.7 MB, free: 7.219 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001265/0.1201, allocations: 237.1 kB / 458 MB, free: 6.98 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002821/0.1204, allocations: 429.7 kB / 458.4 MB, free: 6.555 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002692/0.1206, allocations: 174.9 kB / 458.5 MB, free: 6.379 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.1208, allocations: 362.8 kB / 458.9 MB, free: 6.016 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005915/0.1214, allocations: 358.4 kB / 459.3 MB, free: 5.664 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006433/0.122, allocations: 458.5 kB / 459.7 MB, free: 5.199 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01787/0.1399, allocations: 3.477 MB / 463.2 MB, free: 1.707 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.952e-06/0.1399, allocations: 3.938 kB / 463.2 MB, free: 1.703 MB / 334.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002418/0.1424, allocations: 1.203 MB / 464.4 MB, free: 492 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.1424, allocations: 8 kB / 464.4 MB, free: 484 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.1424, allocations: 0 / 464.4 MB, free: 484 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009985/0.1434, allocations: 223.1 kB / 464.6 MB, free: 248 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006007/0.1494, allocations: 0.8154 MB / 465.4 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01083/0.1603, allocations: 14.94 MB / 480.4 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007594/0.1611, allocations: 56.06 kB / 480.4 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.454e-05/0.1612, allocations: 39.97 kB / 480.5 MB, free: 14.96 MB / 366.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.00046/0.1616, allocations: 263.1 kB / 480.7 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001319/0.1618, allocations: 59.28 kB / 480.8 MB, free: 14.64 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003183/0.165, allocations: 1.476 MB / 482.3 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.357e-05/0.165, allocations: 15.98 kB / 482.3 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.295e-06/0.165, allocations: 4 kB / 482.3 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.204e-05/0.165, allocations: 7.969 kB / 482.3 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004381/0.1694, allocations: 2.586 MB / 484.9 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.043e-05/0.1694, allocations: 4 kB / 484.9 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005513/0.1749, allocations: 0.7494 MB / 485.6 MB, free: 9.621 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001979/0.1769, allocations: 374.8 kB / 486 MB, free: 9.242 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.842e-05/0.177, allocations: 39.98 kB / 486 MB, free: 9.203 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01107/0.1881, allocations: 15.18 MB / 0.4895 GB, free: 8.609 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.003e-06/0.1881, allocations: 7.938 kB / 0.4895 GB, free: 8.602 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003557/0.1917, allocations: 2.075 MB / 0.4915 GB, free: 6.418 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001531/0.1919, allocations: 140.5 kB / 0.4916 GB, free: 6.262 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001139/0.192, allocations: 31.98 kB / 0.4917 GB, free: 6.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007426/0.1927, allocations: 51.98 kB / 0.4917 GB, free: 6.18 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000231/0.193, allocations: 128.6 kB / 0.4918 GB, free: 6.055 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.597e-05/0.1931, allocations: 40 kB / 0.4919 GB, free: 6.016 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001426/0.1932, allocations: 164.1 kB / 0.492 GB, free: 5.855 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1932, allocations: 0 / 0.492 GB, free: 5.855 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001029/0.1943, allocations: 268 kB / 0.4923 GB, free: 5.594 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.0001962/0.1945, allocations: 145.8 kB / 0.4924 GB, free: 5.445 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007645/0.2021, allocations: 2.061 MB / 0.4944 GB, free: 3.328 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.2021, allocations: 0 / 0.4944 GB, free: 3.328 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005845/0.208, allocations: 1.614 MB / 0.496 GB, free: 1.664 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00107/0.2091, allocations: 200.4 kB / 0.4962 GB, free: 1.465 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002996/0.2121, allocations: 2.253 MB / 0.4984 GB, free: 15.1 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00044/0.2125, allocations: 0.9338 MB / 0.4993 GB, free: 14.14 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003214/0.2129, allocations: 71.41 kB / 0.4994 GB, free: 14.07 MB / 398.1 MB Notification: Performance of SimCode: time 6.51e-07/0.2129, allocations: 0 / 0.4994 GB, free: 14.07 MB / 398.1 MB Notification: Performance of Templates: time 0.1775/0.3903, allocations: 36.59 MB / 0.5351 GB, free: 71.64 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)