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.001061/0.001061, allocations: 99.88 kB / 16.27 MB, free: 6.414 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.00109/0.00109, allocations: 191.7 kB / 17.2 MB, free: 5.953 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.339/1.339, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09437/0.09437, allocations: 22.33 MB / 313.4 MB, free: 8.945 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001425/0.001425, allocations: 63.75 kB / 381.5 MB, free: 41.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08101/0.08246, allocations: 54.96 MB / 436.4 MB, free: 13 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_001): time 0.004641/0.08714, allocations: 4.014 MB / 440.4 MB, free: 8.953 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001812/0.08897, allocations: 1.286 MB / 441.7 MB, free: 7.664 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001537/0.08914, allocations: 4 kB / 441.7 MB, free: 7.66 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001645/0.08933, allocations: 79.14 kB / 441.8 MB, free: 7.582 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003657/0.08971, allocations: 214.1 kB / 442 MB, free: 7.371 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004871/0.0902, allocations: 295.5 kB / 442.3 MB, free: 7.082 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008415/0.09105, allocations: 1.095 MB / 443.4 MB, free: 5.984 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004964/0.09156, allocations: 428.4 kB / 443.8 MB, free: 5.566 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003956/0.09196, allocations: 403 kB / 444.2 MB, free: 5.172 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004613/0.09243, allocations: 422.4 kB / 444.6 MB, free: 4.758 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001193/0.09256, allocations: 92 kB / 444.7 MB, free: 4.668 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001528/0.09272, allocations: 96 kB / 444.8 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001584/0.09288, allocations: 199.4 kB / 445 MB, free: 4.379 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003739/0.09326, allocations: 418.3 kB / 445.4 MB, free: 3.969 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007558/0.09402, allocations: 0.9504 MB / 446.4 MB, free: 3.016 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.09404, allocations: 0 / 446.4 MB, free: 3.016 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.09405, allocations: 0 / 446.4 MB, free: 3.016 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.441e-05/0.09407, allocations: 3.938 kB / 446.4 MB, free: 3.012 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: 207 * Number of variables: 207 Notification: Performance of Generate backend data structure: time 0.001974/0.09605, allocations: 0.9875 MB / 447.4 MB, free: 1.973 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.816e-05/0.0961, allocations: 12.03 kB / 447.4 MB, free: 1.961 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000142/0.09625, allocations: 76.03 kB / 447.4 MB, free: 1.887 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002155/0.09647, allocations: 243.4 kB / 447.7 MB, free: 1.609 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.299e-05/0.09653, allocations: 66.38 kB / 447.7 MB, free: 1.547 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000106/0.09664, allocations: 80.36 kB / 447.8 MB, free: 1.469 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001162/0.09781, allocations: 0.6945 MB / 448.5 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.748e-05/0.09784, allocations: 0 / 448.5 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.008e-05/0.09793, allocations: 32 kB / 448.5 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.684e-05/0.09795, allocations: 20 kB / 448.6 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001156/0.09911, allocations: 0.6988 MB / 449.3 MB, free: 16 kB / 318.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.003429/0.1026, allocations: 2.328 MB / 451.6 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001104/0.1037, allocations: 0.6719 MB / 452.3 MB, free: 12.87 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005343/0.1042, allocations: 327.8 kB / 452.6 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.394e-05/0.1043, allocations: 20.98 kB / 452.6 MB, free: 12.53 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.171e-05/0.1043, allocations: 47.59 kB / 452.6 MB, free: 12.47 MB / 334.1 MB Notification: Performance of pre-optimization done (n=102): time 2.725e-06/0.1043, allocations: 0 / 452.6 MB, free: 12.47 MB / 334.1 MB Notification: Performance of matching and sorting (n=112): time 0.007304/0.1116, allocations: 3.095 MB / 455.7 MB, free: 9.25 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.63e-05/0.1117, allocations: 64.41 kB / 455.8 MB, free: 9.176 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001753/0.1119, allocations: 199.8 kB / 456 MB, free: 8.969 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.59e-05/0.112, allocations: 45.7 kB / 456 MB, free: 8.918 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001233/0.1121, allocations: 228.9 kB / 456.3 MB, free: 8.688 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000252/0.1124, allocations: 382.3 kB / 456.6 MB, free: 8.309 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002331/0.1126, allocations: 150.7 kB / 456.8 MB, free: 8.156 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001386/0.1127, allocations: 358.8 kB / 457.1 MB, free: 7.797 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005251/0.1133, allocations: 293.9 kB / 457.4 MB, free: 7.508 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005711/0.1139, allocations: 387.1 kB / 457.8 MB, free: 7.117 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01067/0.1245, allocations: 2.252 MB / 460.1 MB, free: 4.848 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.1246, allocations: 0 / 460.1 MB, free: 4.848 MB / 334.1 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.002174/0.1267, allocations: 1.047 MB / 461.1 MB, free: 3.785 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/0.1268, allocations: 10.34 kB / 461.1 MB, free: 3.777 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.774e-06/0.1268, allocations: 0 / 461.1 MB, free: 3.777 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009731/0.1278, allocations: 219.1 kB / 461.3 MB, free: 3.551 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005567/0.1333, allocations: 0.7569 MB / 462.1 MB, free: 2.793 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01147/0.1448, allocations: 14.95 MB / 477 MB, free: 2.418 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005964/0.1454, allocations: 20.03 kB / 477.1 MB, free: 2.398 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.168e-05/0.1455, allocations: 32 kB / 477.1 MB, free: 2.367 MB / 350.1 MB Warning: Assuming fixed start value for the following 4 variables: AHU.T:VARIABLE(min = 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 = 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 (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.0004055/0.1459, allocations: 232.7 kB / 477.3 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000108/0.146, allocations: 47.44 kB / 477.4 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002702/0.1487, allocations: 1.246 MB / 478.6 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.809e-06/0.1488, allocations: 12 kB / 478.6 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.1488, allocations: 0 / 478.6 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/0.1488, allocations: 3.984 kB / 478.6 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003973/0.1528, allocations: 2.39 MB / 481 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.427e-06/0.1528, allocations: 8 kB / 481 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005156/0.158, allocations: 0.6946 MB / 481.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00192/0.1599, allocations: 358.9 kB / 482.1 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.929e-05/0.16, allocations: 39.92 kB / 482.1 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01213/0.1721, allocations: 15.11 MB / 497.2 MB, free: 12.61 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.686e-06/0.1722, allocations: 11.94 kB / 497.2 MB, free: 12.6 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003319/0.1755, allocations: 1.823 MB / 499.1 MB, free: 10.66 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001325/0.1757, allocations: 132.5 kB / 499.2 MB, free: 10.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.782e-05/0.1758, allocations: 31.98 kB / 499.2 MB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005681/0.1763, allocations: 35.98 kB / 499.2 MB, free: 10.45 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002491/0.1766, allocations: 112.6 kB / 499.4 MB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.49e-05/0.1767, allocations: 43.92 kB / 499.4 MB, free: 10.29 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001329/0.1768, allocations: 151 kB / 499.5 MB, free: 10.14 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1768, allocations: 0 / 499.5 MB, free: 10.14 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009307/0.1778, allocations: 236 kB / 499.8 MB, free: 9.914 MB / 382.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.0001895/0.178, allocations: 144.5 kB / 499.9 MB, free: 9.762 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006972/0.1849, allocations: 1.893 MB / 0.4901 GB, free: 7.82 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/0.185, allocations: 4 kB / 0.4901 GB, free: 7.816 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005574/0.1905, allocations: 1.501 MB / 0.4915 GB, free: 6.266 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001019/0.1916, allocations: 176.9 kB / 0.4917 GB, free: 6.094 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002868/0.1944, allocations: 1.802 MB / 0.4935 GB, free: 4.16 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004509/0.1949, allocations: 0.9091 MB / 0.4943 GB, free: 3.227 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002618/0.1952, allocations: 51.44 kB / 0.4944 GB, free: 3.176 MB / 382.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1952, allocations: 4 kB / 0.4944 GB, free: 3.172 MB / 382.1 MB Notification: Performance of Templates: time 0.1874/0.3826, allocations: 33.04 MB / 0.5267 GB, free: 76.77 MB / 398.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)