Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01.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_control_problems.Thermal_zones_control.Thermal_zones_case_01,tolerance=1e-06,outputFormat="empty",numberOfIntervals=14400,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01") translateModel(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01,tolerance=1e-06,outputFormat="empty",numberOfIntervals=14400,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001666/0.001666, allocations: 112 kB / 16.41 MB, free: 6.484 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.001908/0.001908, allocations: 183 kB / 17.34 MB, free: 5.762 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.356/1.356, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09179/0.09179, allocations: 22.32 MB / 313.5 MB, free: 8.91 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 67.91 kB / 437.7 MB, free: 11.78 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1105, allocations: 54.95 MB / 492.7 MB, free: 4.781 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01): time 0.00404/0.1146, allocations: 2.972 MB / 495.7 MB, free: 1.785 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001961/0.1166, allocations: 1.009 MB / 496.7 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002699/0.1169, allocations: 11.94 kB / 496.7 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005057/0.1174, allocations: 126.9 kB / 496.8 MB, free: 0.6328 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005851/0.1181, allocations: 190.8 kB / 497 MB, free: 456 kB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:71:5-71:30:writable] Warning: Conditional component 'ovrMax' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:77:5-77:30:writable] Warning: Conditional component 'ovrMin' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:71:5-71:30:writable] Warning: Conditional component 'ovrMax' is used in a non-connect context. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/ControlBlocks/AnalogueControllers/PI_awfb_full.mo:77:5-77:30:writable] Warning: Conditional component 'ovrMin' is used in a non-connect context. Notification: Performance of NFTyping.typeClassSections: time 0.0005004/0.1186, allocations: 259.6 kB / 497.2 MB, free: 196 kB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006661/0.1193, allocations: 0.6093 MB / 497.8 MB, free: 15.58 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003615/0.1196, allocations: 206.8 kB / 498 MB, free: 15.37 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002967/0.1199, allocations: 243.1 kB / 498.3 MB, free: 15.13 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002991/0.1202, allocations: 262.7 kB / 498.5 MB, free: 14.88 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.018e-05/0.1203, allocations: 44 kB / 498.6 MB, free: 14.83 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001772/0.1205, allocations: 79.95 kB / 498.7 MB, free: 14.75 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000148/0.1207, allocations: 139.5 kB / 498.8 MB, free: 14.62 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000187/0.1209, allocations: 242.7 kB / 499 MB, free: 14.38 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005735/0.1214, allocations: 0.5448 MB / 499.6 MB, free: 13.83 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.1215, allocations: 7.984 kB / 499.6 MB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.647e-06/0.1215, allocations: 0 / 499.6 MB, free: 13.82 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.558e-06/0.1215, allocations: 3.938 kB / 499.6 MB, free: 13.82 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001905/0.1234, allocations: 0.8574 MB / 0.4887 GB, free: 12.91 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.1234, allocations: 8.031 kB / 0.4887 GB, free: 12.91 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001103/0.1236, allocations: 60.19 kB / 0.4888 GB, free: 12.85 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007717/0.1243, allocations: 443.7 kB / 0.4892 GB, free: 12.37 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.869e-05/0.1244, allocations: 37.38 kB / 0.4892 GB, free: 12.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.701e-05/0.1245, allocations: 48.28 kB / 0.4893 GB, free: 12.29 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007186/0.1252, allocations: 429 kB / 0.4897 GB, free: 11.85 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.779e-05/0.1252, allocations: 0 / 0.4897 GB, free: 11.85 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.777e-05/0.1253, allocations: 20 kB / 0.4897 GB, free: 11.83 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.1253, allocations: 8 kB / 0.4897 GB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006149/0.1259, allocations: 287.8 kB / 0.49 GB, free: 11.54 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002084/0.128, allocations: 1.708 MB / 0.4917 GB, free: 9.695 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004685/0.1285, allocations: 283.7 kB / 0.4919 GB, free: 9.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002853/0.1288, allocations: 161.4 kB / 0.4921 GB, free: 9.25 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.692e-05/0.1288, allocations: 8.328 kB / 0.4921 GB, free: 9.242 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.482e-05/0.1289, allocations: 34.89 kB / 0.4921 GB, free: 9.199 MB / 382.1 MB Notification: Performance of pre-optimization done (n=40): time 2.285e-06/0.1289, allocations: 0 / 0.4921 GB, free: 9.199 MB / 382.1 MB Notification: Performance of matching and sorting (n=40): time 0.0009042/0.1298, allocations: 406.5 kB / 0.4925 GB, free: 8.797 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.535e-05/0.1298, allocations: 55.41 kB / 0.4926 GB, free: 8.73 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007336/0.1306, allocations: 477.4 kB / 0.493 GB, free: 8.254 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.427e-05/0.1306, allocations: 33.7 kB / 0.4931 GB, free: 8.215 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001932/0.1308, allocations: 260 kB / 0.4933 GB, free: 7.957 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000103/0.1309, allocations: 138 kB / 0.4934 GB, free: 7.82 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000134/0.1311, allocations: 102.1 kB / 0.4935 GB, free: 7.715 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.1312, allocations: 358.8 kB / 0.4939 GB, free: 7.355 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002743/0.1315, allocations: 117 kB / 0.494 GB, free: 7.238 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003309/0.1318, allocations: 244.6 kB / 0.4942 GB, free: 6.953 MB / 382.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.002196/0.1341, allocations: 0.902 MB / 0.4951 GB, free: 5.965 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.853e-06/0.1341, allocations: 3.938 kB / 0.4951 GB, free: 5.961 MB / 382.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.00084/0.1349, allocations: 463.1 kB / 0.4956 GB, free: 5.504 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/0.135, allocations: 8 kB / 0.4956 GB, free: 5.496 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/0.135, allocations: 4 kB / 0.4956 GB, free: 5.492 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.163e-05/0.135, allocations: 4 kB / 0.4956 GB, free: 5.488 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005259/0.1355, allocations: 123.8 kB / 0.4957 GB, free: 5.367 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.929e-05/0.1356, allocations: 12.48 kB / 0.4957 GB, free: 5.355 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00041/0.136, allocations: 67.5 kB / 0.4958 GB, free: 5.289 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.044e-05/0.136, allocations: 20 kB / 0.4958 GB, free: 5.27 MB / 382.1 MB Warning: Assuming fixed start value for the following 2 variables: Cz1.T:VARIABLE(min = 0.0 start = 293.15 unit = "K" fixed = true nominal = 300.0 ) "Temperature of element" type: Real Cz2.T:VARIABLE(min = 0.0 start = 293.15 unit = "K" fixed = true nominal = 300.0 ) "Temperature of element" type: Real Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: D.Fcs2.y = D.Fcs2.y_start D.Fcs1.y = D.Fcs1.y_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 10 (C2.LOsat,C2.HIsat,C1.LOsat,C1.HIsat,C2.iNoDec,C2.iNoInc,C2.iTS,C1.iNoDec,C1.iNoInc,C1.iTS) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003519/0.1364, allocations: 203.6 kB / 0.496 GB, free: 5.062 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001121/0.1365, allocations: 47.42 kB / 0.496 GB, free: 5.016 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007111/0.1372, allocations: 374.8 kB / 0.4964 GB, free: 4.637 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-06/0.1372, allocations: 4 kB / 0.4964 GB, free: 4.633 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-06/0.1373, allocations: 0 / 0.4964 GB, free: 4.633 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.1373, allocations: 7.984 kB / 0.4964 GB, free: 4.625 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006016/0.1379, allocations: 472.9 kB / 0.4968 GB, free: 4.113 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.369e-06/0.1379, allocations: 0 / 0.4968 GB, free: 4.113 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005202/0.1384, allocations: 99.89 kB / 0.4969 GB, free: 4.016 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.119e-05/0.1384, allocations: 0 / 0.4969 GB, free: 4.016 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.601e-05/0.1385, allocations: 11.94 kB / 0.4969 GB, free: 4.004 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.522e-06/0.1385, allocations: 7.984 kB / 0.497 GB, free: 3.996 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.1385, allocations: 0 / 0.497 GB, free: 3.996 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008754/0.1394, allocations: 0.5713 MB / 0.4975 GB, free: 3.406 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001289/0.1395, allocations: 124.6 kB / 0.4976 GB, free: 3.266 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.625e-05/0.1396, allocations: 8 kB / 0.4976 GB, free: 3.258 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003347/0.1399, allocations: 27.97 kB / 0.4977 GB, free: 3.23 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.46e-05/0.14, allocations: 23.97 kB / 0.4977 GB, free: 3.207 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.328e-05/0.1401, allocations: 16.19 kB / 0.4977 GB, free: 3.191 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006353/0.1407, allocations: 335.1 kB / 0.498 GB, free: 2.871 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1407, allocations: 3.938 kB / 0.498 GB, free: 2.867 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004933/0.1412, allocations: 115.7 kB / 0.4981 GB, free: 2.754 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (Cz1.T,Cz2.T,C1.xfb,C1.xBias,C1.u,C1.csfil,C2.xfb,C2.xBias,C2.u,C2.csfil) * Number of discrete variables: 4 (C1.HIsat,C1.LOsat,C2.HIsat,C2.LOsat) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000197/0.1414, allocations: 119.3 kB / 0.4983 GB, free: 2.629 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006987/0.1421, allocations: 331.8 kB / 0.4986 GB, free: 2.305 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.1421, allocations: 4.125 kB / 0.4986 GB, free: 2.301 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002499/0.1424, allocations: 159.8 kB / 0.4987 GB, free: 2.145 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00049/0.1429, allocations: 62.2 kB / 0.4988 GB, free: 2.086 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001684/0.1446, allocations: 1.04 MB / 0.4998 GB, free: 1.008 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004186/0.145, allocations: 0.8586 MB / 0.5006 GB, free: 124 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001428/0.1452, allocations: 43.42 kB / 0.5007 GB, free: 84 kB / 382.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1452, allocations: 0 / 0.5007 GB, free: 84 kB / 382.1 MB Notification: Performance of Templates: time 0.2227/0.3679, allocations: 5.484 MB / 0.506 GB, free: 21.26 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01.makefile (rm -f AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01.pipe ; mkfifo AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01.pipe ; head -c 1048576 < AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01.pipe >> ../files/AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01.sim & ./AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01 -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01.pipe 2>&1)