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.0008117/0.0008117, allocations: 97.78 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008191/0.0008193, allocations: 181.8 kB / 16.92 MB, free: 6.918 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.328/1.328, allocations: 223.3 MB / 241 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2146/0.2146, allocations: 22.35 MB / 314.4 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003053/0.0003053, allocations: 8 kB / 383.3 MB, free: 10.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2834/0.2837, allocations: 55.98 MB / 439.2 MB, free: 39.4 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_component_models.Controlled_AHU_case_002): time 0.002966/0.2867, allocations: 3.856 MB / 443.1 MB, free: 36.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00234/0.2891, allocations: 1.315 MB / 444.4 MB, free: 35.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004357/0.2896, allocations: 4.875 kB / 444.4 MB, free: 35.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000166/0.2897, allocations: 63.98 kB / 444.5 MB, free: 35.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005027/0.2903, allocations: 204.2 kB / 444.7 MB, free: 35.4 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006336/0.2909, allocations: 273.7 kB / 444.9 MB, free: 35.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007674/0.2917, allocations: 1.093 MB / 446 MB, free: 34.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00057/0.2923, allocations: 472.9 kB / 446.5 MB, free: 34.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000412/0.2927, allocations: 401.6 kB / 446.9 MB, free: 34.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004303/0.2931, allocations: 484.7 kB / 447.4 MB, free: 34.16 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.639e-05/0.2932, allocations: 57.66 kB / 447.4 MB, free: 34.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001056/0.2933, allocations: 53.25 kB / 447.5 MB, free: 34.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000107/0.2934, allocations: 168.6 kB / 447.6 MB, free: 34.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002874/0.2937, allocations: 449.8 kB / 448.1 MB, free: 33.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005578/0.2943, allocations: 0.812 MB / 448.9 MB, free: 33.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.2943, allocations: 0 / 448.9 MB, free: 33.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.2943, allocations: 2.594 kB / 448.9 MB, free: 33.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.185e-05/0.2943, allocations: 0 / 448.9 MB, free: 33.64 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.001888/0.2962, allocations: 0.9288 MB / 449.8 MB, free: 33.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.2963, allocations: 12.53 kB / 449.8 MB, free: 33.03 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000134/0.2964, allocations: 78.25 kB / 449.9 MB, free: 32.99 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001658/0.2966, allocations: 258.3 kB / 450.2 MB, free: 32.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.428e-05/0.2966, allocations: 69.69 kB / 450.2 MB, free: 32.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001144/0.2968, allocations: 85.41 kB / 450.3 MB, free: 32.67 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001261/0.298, allocations: 0.8089 MB / 451.1 MB, free: 32.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.861e-05/0.2981, allocations: 0 / 451.1 MB, free: 32.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.514e-05/0.2981, allocations: 34.78 kB / 451.2 MB, free: 32.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.452e-05/0.2982, allocations: 20.53 kB / 451.2 MB, free: 32.31 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001301/0.2995, allocations: 0.8281 MB / 452 MB, free: 32.03 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.003595/0.3031, allocations: 2.619 MB / 454.6 MB, free: 30.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001736/0.3048, allocations: 0.9924 MB / 455.6 MB, free: 30.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005302/0.3054, allocations: 425 kB / 456 MB, free: 29.87 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.102e-05/0.3054, allocations: 20.33 kB / 456 MB, free: 29.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.144e-05/0.3055, allocations: 45.42 kB / 456.1 MB, free: 29.81 MB / 350.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004873/0.306, allocations: 125.6 kB / 456.2 MB, free: 29.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=113): time 2.956e-06/0.306, allocations: 2.938 kB / 456.2 MB, free: 29.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=124): time 0.00814/0.3141, allocations: 3.556 MB / 459.8 MB, free: 27.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.275e-05/0.3142, allocations: 64.03 kB / 459.8 MB, free: 27.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002589/0.3144, allocations: 222.8 kB / 460.1 MB, free: 27.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.161e-05/0.3145, allocations: 46.55 kB / 460.1 MB, free: 27.7 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001491/0.3147, allocations: 234.9 kB / 460.3 MB, free: 27.51 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002338/0.3149, allocations: 428 kB / 460.7 MB, free: 27.17 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001142/0.315, allocations: 94.06 kB / 460.8 MB, free: 27.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.548e-05/0.3151, allocations: 358.8 kB / 461.2 MB, free: 26.79 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005737/0.3157, allocations: 362.2 kB / 461.5 MB, free: 26.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000705/0.3164, allocations: 458.7 kB / 462 MB, free: 26.43 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01918/0.3356, allocations: 3.544 MB / 465.5 MB, free: 25.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.623e-06/0.3356, allocations: 5.062 kB / 465.5 MB, free: 25.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002651/0.3383, allocations: 1.208 MB / 466.7 MB, free: 25.04 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.917e-05/0.3384, allocations: 4.906 kB / 466.8 MB, free: 25.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.3384, allocations: 2.156 kB / 466.8 MB, free: 25.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001225/0.3396, allocations: 232.4 kB / 467 MB, free: 24.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006121/0.3458, allocations: 0.8181 MB / 467.8 MB, free: 24.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009144/0.3549, allocations: 13.9 MB / 481.7 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009351/0.3559, allocations: 55.05 kB / 481.8 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.194e-05/0.356, allocations: 38.47 kB / 481.8 MB, free: 10.89 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.0004935/0.3565, allocations: 280 kB / 482.1 MB, free: 10.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001136/0.3566, allocations: 54.38 kB / 482.1 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003497/0.3601, allocations: 1.487 MB / 483.6 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.618e-05/0.3602, allocations: 16.5 kB / 483.6 MB, free: 9.969 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.044e-06/0.3602, allocations: 2.469 kB / 483.6 MB, free: 9.969 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.654e-05/0.3602, allocations: 6.094 kB / 483.6 MB, free: 9.969 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004706/0.3649, allocations: 2.588 MB / 486.2 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.104e-05/0.3649, allocations: 10.34 kB / 486.2 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005423/0.3704, allocations: 0.7579 MB / 487 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00241/0.3728, allocations: 392 kB / 487.4 MB, free: 8.406 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001499/0.373, allocations: 37.22 kB / 487.4 MB, free: 8.387 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01119/0.3842, allocations: 14.14 MB / 0.4898 GB, free: 10.29 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.441e-05/0.3842, allocations: 14.97 kB / 0.4898 GB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004474/0.3887, allocations: 2.069 MB / 0.4918 GB, free: 9.125 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002386/0.389, allocations: 139.2 kB / 0.4919 GB, free: 8.996 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001077/0.3891, allocations: 31.17 kB / 0.492 GB, free: 8.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00078/0.3899, allocations: 50.3 kB / 0.492 GB, free: 8.961 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003606/0.3902, allocations: 119.4 kB / 0.4921 GB, free: 8.918 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.182e-05/0.3903, allocations: 46.62 kB / 0.4922 GB, free: 8.875 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001757/0.3905, allocations: 162.4 kB / 0.4923 GB, free: 8.73 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3905, allocations: 7.938 kB / 0.4923 GB, free: 8.723 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001214/0.3917, allocations: 259.9 kB / 0.4926 GB, free: 8.469 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.0002068/0.3919, allocations: 144.4 kB / 0.4927 GB, free: 8.32 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.007267/0.3992, allocations: 2.033 MB / 0.4947 GB, free: 6.328 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.932e-06/0.3992, allocations: 0 / 0.4947 GB, free: 6.328 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006227/0.4055, allocations: 1.603 MB / 0.4963 GB, free: 4.672 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001395/0.4069, allocations: 189.4 kB / 0.4965 GB, free: 4.484 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003547/0.4105, allocations: 2.359 MB / 0.4988 GB, free: 2.016 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005291/0.411, allocations: 0.9416 MB / 0.4997 GB, free: 1.051 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004218/0.4114, allocations: 75.41 kB / 0.4998 GB, free: 0.9766 MB / 366.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4114, allocations: 0 / 0.4998 GB, free: 0.9766 MB / 366.1 MB Notification: Performance of Templates: time 0.03878/0.4502, allocations: 36.56 MB / 0.5355 GB, free: 12.38 MB / 414.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)