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/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_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") [/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.09342/0.09342, allocations: 21.61 MB / 36.56 MB, free: 1.098 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.00111/0.00111, allocations: 187.1 kB / 42.82 MB, free: 3.781 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.275/1.275, allocations: 223.2 MB / 272.1 MB, free: 1.418 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.0008394/0.0008394, allocations: 94.78 kB / 328.7 MB, free: 11.75 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002573/0.0002572, allocations: 11.98 kB / 397 MB, free: 46.48 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08088/0.08115, allocations: 55.81 MB / 452.9 MB, free: 6.648 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2806/0.3618, allocations: 84.05 MB / 0.5243 GB, free: 13.14 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001894/0.362, allocations: 78.56 kB / 0.5244 GB, free: 13.14 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02232/0.3843, allocations: 10.4 MB / 0.5346 GB, free: 9.5 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3844, allocations: 0 / 0.5346 GB, free: 9.5 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.2e-05/0.3844, allocations: 11.53 kB / 0.5346 GB, free: 9.5 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: 207 * Number of variables: 207 Notification: Performance of Generate backend data structure: time 0.001451/0.3858, allocations: 0.8678 MB / 0.5354 GB, free: 8.879 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.006e-05/0.3859, allocations: 7.875 kB / 0.5354 GB, free: 8.879 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001071/0.386, allocations: 69.84 kB / 0.5355 GB, free: 8.844 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001323/0.3861, allocations: 244.8 kB / 0.5357 GB, free: 8.586 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.32e-05/0.3862, allocations: 66 kB / 0.5358 GB, free: 8.582 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.753e-05/0.3863, allocations: 81.81 kB / 0.5359 GB, free: 8.582 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009301/0.3872, allocations: 0.6767 MB / 0.5365 GB, free: 8.406 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.679e-05/0.3872, allocations: 3.953 kB / 0.5365 GB, free: 8.402 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.122e-05/0.3873, allocations: 35.56 kB / 0.5366 GB, free: 8.402 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.118e-05/0.3873, allocations: 19.06 kB / 0.5366 GB, free: 8.402 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009271/0.3882, allocations: 0.6911 MB / 0.5373 GB, free: 8.285 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002619/0.3909, allocations: 1.897 MB / 0.5391 GB, free: 7.461 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000848/0.3917, allocations: 0.6675 MB / 0.5398 GB, free: 7.352 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.207e-05/0.3918, allocations: 20.39 kB / 0.5398 GB, free: 7.348 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.857e-05/0.3918, allocations: 50.16 kB / 0.5398 GB, free: 7.301 MB / 362.7 MB Notification: Performance of pre-optimization done (n=102): time 1.933e-06/0.3918, allocations: 4 kB / 0.5398 GB, free: 7.297 MB / 362.7 MB Notification: Performance of matching and sorting (n=112): time 0.006237/0.3981, allocations: 3.028 MB / 0.5428 GB, free: 6.293 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.383e-05/0.3981, allocations: 60.09 kB / 0.5428 GB, free: 6.227 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001228/0.3982, allocations: 182.2 kB / 0.543 GB, free: 6.113 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.934e-05/0.3983, allocations: 43.02 kB / 0.5431 GB, free: 6.082 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.126e-05/0.3984, allocations: 232.5 kB / 0.5433 GB, free: 5.898 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001692/0.3986, allocations: 385.5 kB / 0.5437 GB, free: 5.621 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.102e-05/0.3986, allocations: 17.78 kB / 0.5437 GB, free: 5.621 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.088e-05/0.3987, allocations: 355.2 kB / 0.544 GB, free: 5.297 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004253/0.3991, allocations: 295 kB / 0.5443 GB, free: 5.262 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004496/0.3996, allocations: 381.7 kB / 0.5447 GB, free: 5.168 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004819/0.4, allocations: 350.2 kB / 0.545 GB, free: 5.148 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.4001, allocations: 0 / 0.545 GB, free: 5.148 MB / 362.7 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.00189/0.4019, allocations: 1.049 MB / 0.546 GB, free: 4.914 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/0.402, allocations: 3.969 kB / 0.546 GB, free: 4.914 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.402, allocations: 0 / 0.546 GB, free: 4.914 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001067/0.4031, allocations: 226.5 kB / 0.5462 GB, free: 4.816 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005414/0.4085, allocations: 0.7511 MB / 0.547 GB, free: 4.609 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01087/0.4194, allocations: 14.33 MB / 0.561 GB, free: 6.434 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007495/0.4201, allocations: 47.34 kB / 0.561 GB, free: 6.402 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.232e-05/0.4202, allocations: 25.75 kB / 0.561 GB, free: 6.383 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, 0.0))))))))))) start = V.pstart unit = "Pa" fixed = true nominal = 100000.0 stateSelect=StateSelect.always ) type: Real AHU.phi:VARIABLE(start = AHU.phistart fixed = true ) type: Real AHU.T:VARIABLE(min = max(0.0, 0.0) start = AHU.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 (112): * Single equations (assignments): 102 * 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%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004489/0.4207, allocations: 262.4 kB / 0.5613 GB, free: 6.176 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.559e-05/0.4208, allocations: 54.75 kB / 0.5613 GB, free: 6.125 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002646/0.4234, allocations: 1.247 MB / 0.5626 GB, free: 5.285 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.797e-06/0.4234, allocations: 12 kB / 0.5626 GB, free: 5.273 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.4235, allocations: 0 / 0.5626 GB, free: 5.273 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.185e-05/0.4235, allocations: 15.91 kB / 0.5626 GB, free: 5.258 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003819/0.4273, allocations: 2.388 MB / 0.5649 GB, free: 3.395 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.596e-06/0.4273, allocations: 8 kB / 0.5649 GB, free: 3.387 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005059/0.4324, allocations: 0.6983 MB / 0.5656 GB, free: 2.695 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002083/0.4345, allocations: 373.6 kB / 0.566 GB, free: 2.355 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.842e-05/0.4346, allocations: 29.67 kB / 0.566 GB, free: 2.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01182/0.4464, allocations: 14.48 MB / 0.5801 GB, free: 3.398 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/0.4464, allocations: 12 kB / 0.5801 GB, free: 3.387 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003563/0.45, allocations: 2.188 MB / 0.5823 GB, free: 1.488 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001828/0.4502, allocations: 132.2 kB / 0.5824 GB, free: 1.344 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.322e-05/0.4503, allocations: 37.11 kB / 0.5824 GB, free: 1.324 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007245/0.451, allocations: 40.8 kB / 0.5825 GB, free: 1.297 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002212/0.4513, allocations: 117.2 kB / 0.5826 GB, free: 1.195 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.692e-05/0.4513, allocations: 42.59 kB / 0.5826 GB, free: 1.16 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001337/0.4515, allocations: 153.3 kB / 0.5828 GB, free: 1.031 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4515, allocations: 0 / 0.5828 GB, free: 1.031 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001021/0.4525, allocations: 244.9 kB / 0.583 GB, free: 0.8281 MB / 394.7 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 (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 {(3,77.8%) 4,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002045/0.4527, allocations: 146.5 kB / 0.5831 GB, free: 0.6953 MB / 394.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.005532/0.4583, allocations: 1.683 MB / 0.5848 GB, free: 15.26 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.81e-06/0.4583, allocations: 4 kB / 0.5848 GB, free: 15.25 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004488/0.4628, allocations: 1.333 MB / 0.5861 GB, free: 14.04 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007907/0.4636, allocations: 152.8 kB / 0.5862 GB, free: 13.89 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003425/0.467, allocations: 2.211 MB / 0.5884 GB, free: 11.56 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004802/0.4675, allocations: 0.9208 MB / 0.5893 GB, free: 10.62 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0006691/0.4682, allocations: 96.95 kB / 0.5894 GB, free: 10.52 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001941/0.4684, allocations: 51.42 kB / 0.5894 GB, free: 10.47 MB / 410.7 MB Notification: Performance of SimCode: time 2.435e-06/0.4684, allocations: 0 / 0.5894 GB, free: 10.47 MB / 410.7 MB Notification: Performance of Templates: time 0.01702/0.4854, allocations: 10.98 MB / 0.6002 GB, free: 15.59 MB / 426.7 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)