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.005637/0.005637, allocations: 101.3 kB / 15.73 MB, free: 6.449 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.001231/0.001231, allocations: 196.2 kB / 16.68 MB, free: 6.352 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.41/1.41, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2227/0.2227, allocations: 22.36 MB / 312.9 MB, free: 12.53 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002145/0.002145, allocations: 65.89 kB / 437.1 MB, free: 33.76 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1241/0.1262, allocations: 54.96 MB / 492.1 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01): time 0.003782/0.13, allocations: 2.977 MB / 495 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001941/0.132, allocations: 1.017 MB / 496 MB, free: 13.21 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003781/0.1324, allocations: 4 kB / 496 MB, free: 13.21 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000619/0.133, allocations: 130.9 kB / 496.2 MB, free: 13.08 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006715/0.1338, allocations: 186.8 kB / 496.4 MB, free: 12.89 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.0005364/0.1343, allocations: 259.6 kB / 496.6 MB, free: 12.64 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007038/0.135, allocations: 0.6249 MB / 497.2 MB, free: 12.02 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003711/0.1354, allocations: 198.8 kB / 497.4 MB, free: 11.81 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000312/0.1357, allocations: 247 kB / 497.7 MB, free: 11.57 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003199/0.1361, allocations: 262.7 kB / 497.9 MB, free: 11.31 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.321e-05/0.1362, allocations: 52 kB / 498 MB, free: 11.26 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001668/0.1363, allocations: 71.97 kB / 498 MB, free: 11.19 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001497/0.1365, allocations: 131.6 kB / 498.2 MB, free: 11.06 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002418/0.1367, allocations: 246.6 kB / 498.4 MB, free: 10.82 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000613/0.1374, allocations: 0.5484 MB / 499 MB, free: 10.27 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.1374, allocations: 0 / 499 MB, free: 10.27 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1374, allocations: 0 / 499 MB, free: 10.27 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.515e-05/0.1374, allocations: 4 kB / 499 MB, free: 10.27 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.001859/0.1393, allocations: 0.8647 MB / 499.8 MB, free: 9.352 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.1393, allocations: 12.03 kB / 499.8 MB, free: 9.34 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001157/0.1394, allocations: 60.56 kB / 499.9 MB, free: 9.281 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007813/0.1402, allocations: 459.7 kB / 0.4886 GB, free: 8.789 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.421e-05/0.1403, allocations: 33.38 kB / 0.4887 GB, free: 8.758 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.749e-05/0.1403, allocations: 44.38 kB / 0.4887 GB, free: 8.715 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007472/0.1411, allocations: 425 kB / 0.4891 GB, free: 8.281 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.891e-05/0.1411, allocations: 0 / 0.4891 GB, free: 8.281 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.445e-05/0.1412, allocations: 20 kB / 0.4891 GB, free: 8.262 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/0.1412, allocations: 12 kB / 0.4891 GB, free: 8.25 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006555/0.1419, allocations: 283.8 kB / 0.4894 GB, free: 7.973 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.002196/0.1441, allocations: 1.713 MB / 0.4911 GB, free: 6.121 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004854/0.1446, allocations: 272.1 kB / 0.4913 GB, free: 5.848 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003174/0.1449, allocations: 161.5 kB / 0.4915 GB, free: 5.688 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.609e-05/0.1449, allocations: 4.328 kB / 0.4915 GB, free: 5.684 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.35e-05/0.145, allocations: 38.89 kB / 0.4915 GB, free: 5.637 MB / 366.1 MB Notification: Performance of pre-optimization done (n=40): time 1.633e-06/0.145, allocations: 0 / 0.4915 GB, free: 5.637 MB / 366.1 MB Notification: Performance of matching and sorting (n=40): time 0.0009216/0.1459, allocations: 410.7 kB / 0.4919 GB, free: 5.23 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.486e-05/0.1459, allocations: 55.41 kB / 0.492 GB, free: 5.164 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007429/0.1467, allocations: 473.5 kB / 0.4924 GB, free: 4.691 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.096e-05/0.1467, allocations: 37.7 kB / 0.4925 GB, free: 4.648 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001795/0.1469, allocations: 256.5 kB / 0.4927 GB, free: 4.395 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001021/0.147, allocations: 158.7 kB / 0.4929 GB, free: 4.238 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001524/0.1472, allocations: 94.2 kB / 0.493 GB, free: 4.141 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.1473, allocations: 362.8 kB / 0.4933 GB, free: 3.777 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002894/0.1476, allocations: 113.1 kB / 0.4934 GB, free: 3.664 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003495/0.148, allocations: 252.5 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.002299/0.1503, allocations: 0.8942 MB / 0.4945 GB, free: 2.391 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.1503, allocations: 11.88 kB / 0.4945 GB, free: 2.379 MB / 366.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008635/0.1512, allocations: 459.4 kB / 0.495 GB, free: 1.922 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.021e-05/0.1512, allocations: 11.31 kB / 0.495 GB, free: 1.914 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.678e-06/0.1512, allocations: 8 kB / 0.495 GB, free: 1.906 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.994e-05/0.1513, allocations: 8 kB / 0.495 GB, free: 1.898 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005217/0.1518, allocations: 119.8 kB / 0.4951 GB, free: 1.781 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.551e-05/0.1518, allocations: 11.92 kB / 0.4951 GB, free: 1.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003744/0.1522, allocations: 71.59 kB / 0.4952 GB, free: 1.699 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.742e-05/0.1523, 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.0002811/0.1525, allocations: 207.7 kB / 0.4954 GB, free: 1.469 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.148e-05/0.1526, allocations: 43.72 kB / 0.4955 GB, free: 1.426 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000688/0.1533, allocations: 370.8 kB / 0.4958 GB, free: 1.051 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.843e-06/0.1534, allocations: 4 kB / 0.4958 GB, free: 1.047 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.1534, allocations: 0 / 0.4958 GB, free: 1.047 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.544e-06/0.1534, allocations: 3.984 kB / 0.4958 GB, free: 1.043 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005427/0.1539, allocations: 473.1 kB / 0.4963 GB, free: 0.5312 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.1539, allocations: 0 / 0.4963 GB, free: 0.5312 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005206/0.1545, allocations: 95.89 kB / 0.4964 GB, free: 448 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.662e-06/0.1545, allocations: 4 kB / 0.4964 GB, free: 444 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.261e-05/0.1545, allocations: 8 kB / 0.4964 GB, free: 436 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.98e-06/0.1545, allocations: 11.98 kB / 0.4964 GB, free: 424 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.1545, allocations: 3.938 kB / 0.4964 GB, free: 420 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009088/0.1555, allocations: 0.5607 MB / 0.4969 GB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001531/0.1556, allocations: 132.8 kB / 0.4971 GB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.965e-05/0.1557, allocations: 8 kB / 0.4971 GB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003252/0.156, allocations: 28.16 kB / 0.4971 GB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.469e-05/0.1561, allocations: 27.97 kB / 0.4971 GB, free: 15.62 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.968e-05/0.1561, allocations: 11.94 kB / 0.4971 GB, free: 15.61 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005837/0.1567, allocations: 343.1 kB / 0.4975 GB, free: 15.29 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1567, allocations: 0 / 0.4975 GB, free: 15.29 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004334/0.1572, allocations: 107.8 kB / 0.4976 GB, free: 15.18 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.0001771/0.1574, allocations: 127.2 kB / 0.4977 GB, free: 15.05 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006704/0.158, allocations: 330.9 kB / 0.498 GB, free: 14.72 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/0.1581, allocations: 0 / 0.498 GB, free: 14.72 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002578/0.1583, allocations: 163.8 kB / 0.4982 GB, free: 14.56 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004415/0.1588, allocations: 62.41 kB / 0.4982 GB, free: 14.5 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001596/0.1604, allocations: 1.021 MB / 0.4992 GB, free: 13.45 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000465/0.1609, allocations: 0.8587 MB / 0.5 GB, free: 12.56 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002069/0.1611, allocations: 63.42 kB / 0.5001 GB, free: 12.49 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001152/0.1612, allocations: 39.44 kB / 0.5001 GB, free: 12.46 MB / 382.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1612, allocations: 4 kB / 0.5001 GB, free: 12.45 MB / 382.1 MB Notification: Performance of Templates: time 0.009235/0.1704, allocations: 4.032 MB / 0.5041 GB, free: 8.438 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)