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/AES main/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/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") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_SS_case_001.mo:3:1-67:19:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HC_case_001.mo:3:1-55:16:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_002.mo:3:1-91:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/Coursework/ThermSys_case_studies/Heat_network/HNcontrol_HC_SS_case_001.mo:3:1-85:29:writable] Warning: Expected the package to have within AES.Coursework.ThermSys_case_studies.Heat_network; but got within AES.Coursework.ThermSys_case_studies.heat_network; (ignoring the potential error; the class might have been inserted at an unexpected location). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.0913/0.0913, allocations: 21.61 MB / 36.56 MB, free: 1.082 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009404/0.0009404, allocations: 183.1 kB / 42.82 MB, free: 3.785 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.271/1.271, allocations: 223.2 MB / 272.2 MB, free: 1.336 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008587/0.0008586, allocations: 105 kB / 328.7 MB, free: 11.68 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003309/0.000331, allocations: 11.98 kB / 397 MB, free: 46.44 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08033/0.08068, allocations: 55.81 MB / 452.9 MB, free: 6.609 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2769/0.3576, allocations: 84.09 MB / 0.5244 GB, free: 13.07 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002032/0.3578, allocations: 78.38 kB / 0.5244 GB, free: 13.07 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02373/0.3816, allocations: 11.1 MB / 0.5353 GB, free: 9.098 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3816, allocations: 4 kB / 0.5353 GB, free: 9.094 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.922e-05/0.3816, allocations: 15.5 kB / 0.5353 GB, free: 9.094 MB / 362.7 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.001722/0.3834, allocations: 0.9025 MB / 0.5362 GB, free: 8.453 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.109e-05/0.3834, allocations: 8.344 kB / 0.5362 GB, free: 8.453 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001185/0.3835, allocations: 81.5 kB / 0.5363 GB, free: 8.414 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000139/0.3837, allocations: 245.2 kB / 0.5365 GB, free: 8.156 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.728e-05/0.3837, allocations: 63.75 kB / 0.5366 GB, free: 8.156 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.772e-05/0.3838, allocations: 92.81 kB / 0.5366 GB, free: 8.152 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001092/0.3849, allocations: 0.8016 MB / 0.5374 GB, free: 7.941 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.666e-05/0.385, allocations: 0 / 0.5374 GB, free: 7.941 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.237e-05/0.385, allocations: 37.97 kB / 0.5375 GB, free: 7.938 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.286e-05/0.385, allocations: 26.98 kB / 0.5375 GB, free: 7.934 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001141/0.3862, allocations: 0.8344 MB / 0.5383 GB, free: 7.797 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003254/0.3895, allocations: 2.207 MB / 0.5405 GB, free: 6.855 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00167/0.3911, allocations: 0.9954 MB / 0.5414 GB, free: 6.703 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.427e-05/0.3912, allocations: 31.12 kB / 0.5415 GB, free: 6.699 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.042e-05/0.3912, allocations: 43.16 kB / 0.5415 GB, free: 6.66 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006486/0.3919, allocations: 162.7 kB / 0.5417 GB, free: 6.598 MB / 362.7 MB Notification: Performance of pre-optimization done (n=113): time 3.646e-06/0.3919, allocations: 0 / 0.5417 GB, free: 6.598 MB / 362.7 MB Notification: Performance of matching and sorting (n=124): time 0.007051/0.399, allocations: 3.557 MB / 0.5451 GB, free: 5.441 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.573e-05/0.399, allocations: 63.94 kB / 0.5452 GB, free: 5.375 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001419/0.3992, allocations: 195.6 kB / 0.5454 GB, free: 5.262 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.119e-05/0.3992, allocations: 52.2 kB / 0.5454 GB, free: 5.227 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.388e-05/0.3993, allocations: 243.5 kB / 0.5457 GB, free: 5.039 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001783/0.3995, allocations: 419.2 kB / 0.5461 GB, free: 4.734 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.111e-05/0.3996, allocations: 18.06 kB / 0.5461 GB, free: 4.734 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.041e-05/0.3996, allocations: 362.6 kB / 0.5464 GB, free: 4.406 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004946/0.4001, allocations: 357.1 kB / 0.5468 GB, free: 4.367 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005318/0.4007, allocations: 452.5 kB / 0.5472 GB, free: 4.258 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005813/0.4012, allocations: 431.6 kB / 0.5476 GB, free: 4.227 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.4013, allocations: 0 / 0.5476 GB, free: 4.227 MB / 362.7 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002161/0.4034, allocations: 1.208 MB / 0.5488 GB, free: 3.961 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.727e-05/0.4035, allocations: 7.875 kB / 0.5488 GB, free: 3.957 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.655e-06/0.4035, allocations: 3.938 kB / 0.5488 GB, free: 3.953 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001033/0.4045, allocations: 222.4 kB / 0.549 GB, free: 3.859 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005868/0.4104, allocations: 0.8114 MB / 0.5498 GB, free: 3.086 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01164/0.4221, allocations: 14.32 MB / 0.5638 GB, free: 4.258 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001006/0.4231, allocations: 53.77 kB / 0.5638 GB, free: 4.223 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.858e-05/0.4232, allocations: 43.28 kB / 0.5639 GB, free: 4.188 MB / 378.7 MB Warning: Assuming fixed start value for the following 4 variables: 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 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 U1.phi:VARIABLE(start = U1.phistart fixed = true ) type: Real U1.T:VARIABLE(min = max(0.0, 0.0) start = U1.Tstart unit = "K" fixed = true nominal = 300.0 ) "controlled T" 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 (linear and non-linear blocks): 6 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 6 {1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,77.8%) 4,(1,100.0%) 2,(1,100.0%) 1,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005211/0.4237, allocations: 260.4 kB / 0.5641 GB, free: 3.98 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/0.4238, allocations: 55.34 kB / 0.5642 GB, free: 3.926 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003094/0.4269, allocations: 1.486 MB / 0.5656 GB, free: 2.934 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.898e-06/0.427, allocations: 16 kB / 0.5656 GB, free: 2.918 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.427, allocations: 4.25 kB / 0.5656 GB, free: 2.914 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/0.427, allocations: 3.984 kB / 0.5656 GB, free: 2.91 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004173/0.4312, allocations: 2.585 MB / 0.5682 GB, free: 0.9414 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.845e-06/0.4312, allocations: 7.938 kB / 0.5682 GB, free: 0.9336 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005464/0.4367, allocations: 0.7595 MB / 0.5689 GB, free: 188 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002186/0.4389, allocations: 386.5 kB / 0.5693 GB, free: 15.83 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001344/0.439, allocations: 36.86 kB / 0.5693 GB, free: 15.81 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01275/0.4518, allocations: 14.54 MB / 0.5835 GB, free: 0.8398 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.093e-05/0.4518, allocations: 7.938 kB / 0.5835 GB, free: 0.832 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004023/0.4559, allocations: 2.397 MB / 0.5859 GB, free: 14.41 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002018/0.4561, allocations: 144.3 kB / 0.586 GB, free: 14.25 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001006/0.4562, allocations: 32 kB / 0.586 GB, free: 14.22 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000784/0.457, allocations: 51.97 kB / 0.5861 GB, free: 14.17 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002557/0.4572, allocations: 120.7 kB / 0.5862 GB, free: 14.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.023e-05/0.4573, allocations: 47.94 kB / 0.5862 GB, free: 14 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0001581/0.4575, allocations: 164.1 kB / 0.5864 GB, free: 13.84 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.282e-06/0.4575, allocations: 0 / 0.5864 GB, free: 13.84 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001088/0.4586, allocations: 267.9 kB / 0.5867 GB, free: 13.58 MB / 410.7 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 (linear and non-linear blocks): 6 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 6 {1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 2,(3,77.8%) 4,(1,100.0%) 2} * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002156/0.4588, allocations: 147 kB / 0.5868 GB, free: 13.43 MB / 410.7 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.006064/0.4649, allocations: 1.846 MB / 0.5886 GB, free: 11.53 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.748e-06/0.4649, allocations: 0 / 0.5886 GB, free: 11.53 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004928/0.4699, allocations: 1.427 MB / 0.59 GB, free: 10.05 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009044/0.4708, allocations: 169.5 kB / 0.5902 GB, free: 9.879 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00349/0.4743, allocations: 2.354 MB / 0.5925 GB, free: 7.43 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004576/0.4747, allocations: 0.9494 MB / 0.5934 GB, free: 6.453 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007951/0.4756, allocations: 117.5 kB / 0.5935 GB, free: 6.336 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002581/0.4758, allocations: 67.41 kB / 0.5936 GB, free: 6.27 MB / 410.7 MB Notification: Performance of SimCode: time 3.086e-06/0.4758, allocations: 0 / 0.5936 GB, free: 6.27 MB / 410.7 MB Notification: Performance of Templates: time 0.01841/0.4942, allocations: 12.83 MB / 0.6061 GB, free: 9.551 MB / 426.7 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)