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.007383/0.007383, allocations: 104.7 kB / 15.74 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.001641/0.001641, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.485/1.485, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2469/0.2469, allocations: 22.36 MB / 312.9 MB, free: 12.44 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001585/0.001585, allocations: 68.55 kB / 437.1 MB, free: 33.74 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1335, allocations: 54.97 MB / 492 MB, free: 1.191 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01): time 0.004422/0.138, allocations: 2.973 MB / 495 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002462/0.1405, allocations: 1.009 MB / 496 MB, free: 13.18 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006451/0.1412, allocations: 7.938 kB / 496 MB, free: 13.18 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007395/0.1419, allocations: 134.9 kB / 496.2 MB, free: 13.04 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001039/0.143, allocations: 186.8 kB / 496.4 MB, free: 12.86 MB / 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.0008171/0.1439, allocations: 267.6 kB / 496.6 MB, free: 12.6 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001099/0.145, allocations: 0.6093 MB / 497.2 MB, free: 11.99 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004889/0.1455, allocations: 202.8 kB / 497.4 MB, free: 11.78 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004816/0.146, allocations: 251 kB / 497.7 MB, free: 11.54 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000442/0.1464, allocations: 262.7 kB / 497.9 MB, free: 11.28 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001333/0.1466, allocations: 48 kB / 498 MB, free: 11.23 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002256/0.1468, allocations: 75.97 kB / 498 MB, free: 11.16 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001902/0.147, allocations: 135.5 kB / 498.2 MB, free: 11.02 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003044/0.1473, allocations: 242.6 kB / 498.4 MB, free: 10.79 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000745/0.1481, allocations: 0.5449 MB / 499 MB, free: 10.24 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.1481, allocations: 0 / 499 MB, free: 10.24 MB / 366.1 MB Notification: Performance of FrontEnd: time 5.711e-06/0.1481, allocations: 4 kB / 499 MB, free: 10.23 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.596e-05/0.1482, allocations: 0 / 499 MB, free: 10.23 MB / 366.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.00252/0.1507, allocations: 0.8573 MB / 499.8 MB, free: 9.328 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.402e-05/0.1507, allocations: 12.03 kB / 499.8 MB, free: 9.316 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001586/0.1509, allocations: 64.17 kB / 499.9 MB, free: 9.254 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008682/0.1518, allocations: 435.7 kB / 0.4886 GB, free: 8.785 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.414e-05/0.1518, allocations: 41.25 kB / 0.4886 GB, free: 8.746 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.655e-05/0.1519, allocations: 56.27 kB / 0.4887 GB, free: 8.691 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008237/0.1528, allocations: 421 kB / 0.4891 GB, free: 8.262 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.99e-05/0.1528, allocations: 0 / 0.4891 GB, free: 8.262 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.184e-05/0.1528, allocations: 16 kB / 0.4891 GB, free: 8.246 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.785e-05/0.1529, allocations: 12 kB / 0.4891 GB, free: 8.234 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007533/0.1536, allocations: 287.7 kB / 0.4894 GB, free: 7.953 MB / 366.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.002475/0.1561, allocations: 1.708 MB / 0.4911 GB, free: 6.105 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005336/0.1567, allocations: 272 kB / 0.4913 GB, free: 5.832 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003353/0.157, allocations: 161.5 kB / 0.4915 GB, free: 5.672 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.666e-05/0.1571, allocations: 8.328 kB / 0.4915 GB, free: 5.664 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.822e-05/0.1571, allocations: 34.89 kB / 0.4915 GB, free: 5.621 MB / 366.1 MB Notification: Performance of pre-optimization done (n=40): time 1.903e-06/0.1571, allocations: 0 / 0.4915 GB, free: 5.621 MB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.001035/0.1582, allocations: 402.6 kB / 0.4919 GB, free: 5.223 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.017e-05/0.1582, allocations: 55.41 kB / 0.4919 GB, free: 5.156 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008899/0.1591, allocations: 477.4 kB / 0.4924 GB, free: 4.68 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.274e-05/0.1592, allocations: 37.7 kB / 0.4924 GB, free: 4.637 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002213/0.1594, allocations: 252.1 kB / 0.4927 GB, free: 4.387 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001331/0.1596, allocations: 153.8 kB / 0.4928 GB, free: 4.234 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001674/0.1598, allocations: 94.25 kB / 0.4929 GB, free: 4.137 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001906/0.16, allocations: 358.8 kB / 0.4933 GB, free: 3.777 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003003/0.1603, allocations: 117.1 kB / 0.4934 GB, free: 3.66 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003807/0.1606, allocations: 251.3 kB / 0.4936 GB, free: 3.371 MB / 366.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.002426/0.1631, allocations: 0.9059 MB / 0.4945 GB, free: 2.379 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.173e-06/0.1631, allocations: 3.938 kB / 0.4945 GB, free: 2.375 MB / 366.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009152/0.164, allocations: 459.6 kB / 0.4949 GB, free: 1.918 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.626e-05/0.1641, allocations: 11.94 kB / 0.4949 GB, free: 1.906 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.1641, allocations: 4 kB / 0.495 GB, free: 1.902 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.66e-05/0.1641, allocations: 8 kB / 0.495 GB, free: 1.895 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000524/0.1646, allocations: 119.8 kB / 0.4951 GB, free: 1.777 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.142e-05/0.1647, allocations: 7.984 kB / 0.4951 GB, free: 1.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004533/0.1651, allocations: 71.59 kB / 0.4951 GB, free: 1.699 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.83e-05/0.1652, allocations: 20 kB / 0.4952 GB, free: 1.68 MB / 366.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.0003894/0.1656, allocations: 198.1 kB / 0.4954 GB, free: 1.48 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001081/0.1657, allocations: 47.44 kB / 0.4954 GB, free: 1.434 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007377/0.1665, allocations: 370.8 kB / 0.4958 GB, free: 1.059 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.398e-06/0.1665, allocations: 4 kB / 0.4958 GB, free: 1.055 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.174e-06/0.1665, allocations: 0 / 0.4958 GB, free: 1.055 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.188e-06/0.1665, allocations: 3.984 kB / 0.4958 GB, free: 1.051 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000573/0.1671, allocations: 477 kB / 0.4962 GB, free: 0.5352 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.125e-06/0.1671, allocations: 7.938 kB / 0.4962 GB, free: 0.5273 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004826/0.1676, allocations: 95.89 kB / 0.4963 GB, free: 444 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.086e-06/0.1676, allocations: 8 kB / 0.4963 GB, free: 436 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.321e-05/0.1677, allocations: 7.984 kB / 0.4963 GB, free: 428 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.04e-06/0.1677, allocations: 4 kB / 0.4963 GB, free: 424 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.1677, allocations: 0 / 0.4963 GB, free: 424 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008461/0.1685, allocations: 0.5597 MB / 0.4969 GB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001148/0.1686, allocations: 132.4 kB / 0.497 GB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.369e-05/0.1687, allocations: 8 kB / 0.497 GB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003501/0.1691, allocations: 31.97 kB / 0.497 GB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.646e-05/0.1692, allocations: 27.95 kB / 0.4971 GB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.883e-05/0.1692, allocations: 12 kB / 0.4971 GB, free: 15.61 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006076/0.1698, allocations: 343.1 kB / 0.4974 GB, free: 15.29 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1698, allocations: 0 / 0.4974 GB, free: 15.29 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004982/0.1703, allocations: 99.75 kB / 0.4975 GB, free: 15.19 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.0002372/0.1706, allocations: 127.3 kB / 0.4976 GB, free: 15.05 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007263/0.1713, allocations: 330.9 kB / 0.4979 GB, free: 14.73 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.1713, allocations: 0 / 0.4979 GB, free: 14.73 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002721/0.1716, allocations: 156.8 kB / 0.4981 GB, free: 14.58 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004759/0.1721, allocations: 67.47 kB / 0.4982 GB, free: 14.51 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001791/0.1739, allocations: 1.003 MB / 0.4991 GB, free: 13.48 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004807/0.1744, allocations: 0.8587 MB / 0.5 GB, free: 12.59 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002227/0.1746, allocations: 63.42 kB / 0.5 GB, free: 12.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001135/0.1747, allocations: 39.44 kB / 0.5001 GB, free: 12.49 MB / 382.1 MB Notification: Performance of SimCode: time 1.272e-06/0.1747, allocations: 0 / 0.5001 GB, free: 12.49 MB / 382.1 MB Notification: Performance of Templates: time 0.009675/0.1844, allocations: 4.031 MB / 0.504 GB, free: 8.473 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)