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.0007362/0.0007363, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.004131/0.004131, allocations: 169.9 kB / 16.27 MB, free: 6.652 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.255/1.255, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1918/0.1918, allocations: 22.34 MB / 313.8 MB, free: 13.08 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002697/0.0002697, allocations: 8 kB / 382.6 MB, free: 10.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2189/0.2192, allocations: 55.98 MB / 438.6 MB, free: 39.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002): time 0.002627/0.2218, allocations: 3.848 MB / 442.4 MB, free: 36.51 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001341/0.2232, allocations: 1.318 MB / 443.7 MB, free: 35.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000142/0.2233, allocations: 6.281 kB / 443.8 MB, free: 35.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.328e-05/0.2234, allocations: 60.39 kB / 443.8 MB, free: 35.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003274/0.2238, allocations: 209.2 kB / 444 MB, free: 35.38 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003691/0.2241, allocations: 274.6 kB / 444.3 MB, free: 35.19 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005836/0.2247, allocations: 1.092 MB / 445.4 MB, free: 34.65 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004194/0.2252, allocations: 472.8 kB / 445.8 MB, free: 34.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002988/0.2255, allocations: 406.5 kB / 446.2 MB, free: 34.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003982/0.2259, allocations: 478.6 kB / 446.7 MB, free: 34.14 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.121e-05/0.226, allocations: 56.34 kB / 446.8 MB, free: 34.14 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001029/0.2261, allocations: 55.81 kB / 446.8 MB, free: 34.14 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.786e-05/0.2262, allocations: 167 kB / 447 MB, free: 34.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002639/0.2265, allocations: 455 kB / 447.4 MB, free: 33.79 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000529/0.227, allocations: 1.037 MB / 448.5 MB, free: 33.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.227, allocations: 7 kB / 448.5 MB, free: 33.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.227, allocations: 0 / 448.5 MB, free: 33.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.586e-06/0.227, allocations: 0 / 448.5 MB, free: 33.48 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.001776/0.2288, allocations: 0.9296 MB / 449.4 MB, free: 32.87 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.978e-05/0.2288, allocations: 15.38 kB / 449.4 MB, free: 32.87 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001216/0.229, allocations: 77.56 kB / 449.5 MB, free: 32.83 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001342/0.2291, allocations: 255.3 kB / 449.7 MB, free: 32.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.001e-05/0.2292, allocations: 67.38 kB / 449.8 MB, free: 32.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001171/0.2293, allocations: 86.88 kB / 449.9 MB, free: 32.51 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001141/0.2304, allocations: 0.8047 MB / 450.7 MB, free: 32.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.821e-05/0.2305, allocations: 0 / 450.7 MB, free: 32.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.51e-05/0.2305, allocations: 36.5 kB / 450.7 MB, free: 32.15 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.481e-05/0.2306, allocations: 26.31 kB / 450.8 MB, free: 32.15 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00118/0.2317, allocations: 0.8245 MB / 451.6 MB, free: 31.87 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.003214/0.235, allocations: 2.606 MB / 454.2 MB, free: 30.26 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001752/0.2367, allocations: 1.005 MB / 455.2 MB, free: 29.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005294/0.2373, allocations: 419.1 kB / 455.6 MB, free: 29.71 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.687e-05/0.2373, allocations: 16.34 kB / 455.6 MB, free: 29.7 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.669e-05/0.2374, allocations: 44.81 kB / 455.7 MB, free: 29.66 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004291/0.2378, allocations: 127.2 kB / 455.8 MB, free: 29.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=113): time 2.255e-06/0.2378, allocations: 3.938 kB / 455.8 MB, free: 29.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=124): time 0.007579/0.2454, allocations: 3.56 MB / 459.3 MB, free: 27.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.526e-05/0.2454, allocations: 65.44 kB / 459.4 MB, free: 27.74 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001594/0.2456, allocations: 221.2 kB / 459.6 MB, free: 27.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.365e-05/0.2457, allocations: 49.23 kB / 459.7 MB, free: 27.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.84e-05/0.2458, allocations: 236.5 kB / 459.9 MB, free: 27.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001883/0.2459, allocations: 424.9 kB / 460.3 MB, free: 27.01 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001087/0.2461, allocations: 93.41 kB / 460.4 MB, free: 26.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.771e-05/0.2461, allocations: 359.3 kB / 460.8 MB, free: 26.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005691/0.2467, allocations: 365.2 kB / 461.1 MB, free: 26.48 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006241/0.2473, allocations: 456.9 kB / 461.6 MB, free: 26.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01905/0.2664, allocations: 3.549 MB / 465.1 MB, free: 25.4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.2664, allocations: 3.938 kB / 465.1 MB, free: 25.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002464/0.2689, allocations: 1.212 MB / 466.3 MB, free: 24.87 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.2689, allocations: 5.5 kB / 466.3 MB, free: 24.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.2689, allocations: 1.75 kB / 466.3 MB, free: 24.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001184/0.2701, allocations: 227.1 kB / 466.6 MB, free: 24.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005963/0.2761, allocations: 0.8109 MB / 467.4 MB, free: 24.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007902/0.284, allocations: 13.91 MB / 481.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006648/0.2847, allocations: 45.36 kB / 481.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.622e-05/0.2848, allocations: 43.58 kB / 481.4 MB, free: 10.72 MB / 350.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 {(3,4,77.8%), (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.000369/0.2851, allocations: 269.9 kB / 481.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001069/0.2853, allocations: 49.31 kB / 481.7 MB, free: 10.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003213/0.2885, allocations: 1.488 MB / 483.2 MB, free: 9.816 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.116e-05/0.2885, allocations: 15.66 kB / 483.2 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.2885, allocations: 2.156 kB / 483.2 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.327e-05/0.2885, allocations: 7.328 kB / 483.2 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004049/0.2926, allocations: 2.592 MB / 485.8 MB, free: 8.387 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.067e-06/0.2926, allocations: 10.84 kB / 485.8 MB, free: 8.383 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005578/0.2982, allocations: 0.7562 MB / 486.6 MB, free: 8.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002236/0.3004, allocations: 392.1 kB / 486.9 MB, free: 8.246 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.495e-05/0.3005, allocations: 32.91 kB / 487 MB, free: 8.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009373/0.3099, allocations: 14.13 MB / 0.4894 GB, free: 10.13 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.884e-06/0.3099, allocations: 11.86 kB / 0.4894 GB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0037/0.3136, allocations: 2.074 MB / 0.4914 GB, free: 8.969 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001215/0.3138, allocations: 134.2 kB / 0.4915 GB, free: 8.844 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000104/0.3139, allocations: 31.42 kB / 0.4916 GB, free: 8.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007045/0.3146, allocations: 53.89 kB / 0.4916 GB, free: 8.773 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002236/0.3148, allocations: 124.5 kB / 0.4917 GB, free: 8.688 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.355e-05/0.3149, allocations: 42.58 kB / 0.4918 GB, free: 8.648 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001476/0.3151, allocations: 167 kB / 0.4919 GB, free: 8.5 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3151, allocations: 0 / 0.4919 GB, free: 8.5 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009572/0.316, allocations: 259.9 kB / 0.4922 GB, free: 8.246 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 {(3,4,77.8%), (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.0001777/0.3162, allocations: 151.6 kB / 0.4923 GB, free: 8.09 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ProcessComponents/Thermal/Air/MAvolume.mo:13:3-13:61:writable] Warning: Variable $DER.V.p has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.007136/0.3234, allocations: 2.06 MB / 0.4943 GB, free: 6.02 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.3234, allocations: 4 kB / 0.4943 GB, free: 6.016 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005943/0.3293, allocations: 1.63 MB / 0.4959 GB, free: 4.332 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001166/0.3305, allocations: 185.5 kB / 0.4961 GB, free: 4.148 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002967/0.3335, allocations: 2.329 MB / 0.4984 GB, free: 1.715 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004428/0.3339, allocations: 0.9338 MB / 0.4993 GB, free: 0.7578 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006933/0.3346, allocations: 117.5 kB / 0.4994 GB, free: 0.6406 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002636/0.3349, allocations: 67.42 kB / 0.4995 GB, free: 0.5742 MB / 366.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3349, allocations: 0 / 0.4995 GB, free: 0.5742 MB / 366.1 MB Notification: Performance of Templates: time 0.01926/0.3542, allocations: 12.84 MB / 0.512 GB, free: 3.859 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)