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.001273/0.001273, allocations: 102.2 kB / 16.27 MB, free: 6 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.001269/0.001269, allocations: 193.3 kB / 17.2 MB, free: 5.609 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.318/1.318, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09558/0.09558, allocations: 22.32 MB / 313.4 MB, free: 8.969 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 69.38 kB / 381.5 MB, free: 41.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07914/0.08052, allocations: 54.97 MB / 436.4 MB, free: 13.06 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01): time 0.004027/0.08457, allocations: 2.961 MB / 439.4 MB, free: 10.08 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00169/0.08628, allocations: 1.013 MB / 440.4 MB, free: 9.062 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001898/0.08649, allocations: 8 kB / 440.4 MB, free: 9.055 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004218/0.08695, allocations: 130.9 kB / 440.5 MB, free: 8.926 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004856/0.08745, allocations: 186.8 kB / 440.7 MB, free: 8.742 MB / 318.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.0004545/0.08792, allocations: 263.6 kB / 441 MB, free: 8.484 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000569/0.0885, allocations: 0.6055 MB / 441.6 MB, free: 7.879 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003163/0.08882, allocations: 219 kB / 441.8 MB, free: 7.664 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002609/0.08909, allocations: 243 kB / 442 MB, free: 7.426 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000283/0.08938, allocations: 262.6 kB / 442.3 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.07e-05/0.08946, allocations: 47.94 kB / 442.3 MB, free: 7.121 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001506/0.08962, allocations: 75.97 kB / 442.4 MB, free: 7.047 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001507/0.08978, allocations: 135.6 kB / 442.5 MB, free: 6.914 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002043/0.08999, allocations: 238.7 kB / 442.8 MB, free: 6.68 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005081/0.09051, allocations: 0.5333 MB / 443.3 MB, free: 6.145 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.09053, allocations: 4 kB / 443.3 MB, free: 6.141 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.09054, allocations: 4 kB / 443.3 MB, free: 6.137 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.052e-05/0.09055, allocations: 0 / 443.3 MB, free: 6.137 MB / 318.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.00178/0.09234, allocations: 0.8612 MB / 444.2 MB, free: 5.223 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.109e-05/0.09238, allocations: 8.031 kB / 444.2 MB, free: 5.215 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001013/0.09249, allocations: 56.28 kB / 444.2 MB, free: 5.16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007298/0.09322, allocations: 447.5 kB / 444.7 MB, free: 4.68 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.252e-05/0.09328, allocations: 37.31 kB / 444.7 MB, free: 4.645 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.83e-05/0.09335, allocations: 44.38 kB / 444.8 MB, free: 4.602 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007/0.09406, allocations: 425 kB / 445.2 MB, free: 4.168 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.609e-05/0.09409, allocations: 0 / 445.2 MB, free: 4.168 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.525e-05/0.09413, allocations: 16 kB / 445.2 MB, free: 4.152 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.218e-05/0.09415, allocations: 12 kB / 445.2 MB, free: 4.141 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006424/0.09479, allocations: 283.8 kB / 445.5 MB, free: 3.863 MB / 318.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.002036/0.09684, allocations: 1.716 MB / 447.2 MB, free: 2.008 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000476/0.09733, allocations: 279.2 kB / 447.5 MB, free: 1.727 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002982/0.09764, allocations: 157.5 kB / 447.6 MB, free: 1.57 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.561e-05/0.09769, allocations: 12.31 kB / 447.6 MB, free: 1.559 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.147e-05/0.09771, allocations: 34.89 kB / 447.7 MB, free: 1.516 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 1.754e-06/0.09772, allocations: 0 / 447.7 MB, free: 1.516 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.0009201/0.09865, allocations: 406.1 kB / 448.1 MB, free: 1.113 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.445e-05/0.09869, allocations: 55.41 kB / 448.1 MB, free: 1.047 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000711/0.09941, allocations: 473.5 kB / 448.6 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.951e-05/0.09945, allocations: 33.7 kB / 448.6 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001632/0.09962, allocations: 260 kB / 448.9 MB, free: 280 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001004/0.09973, allocations: 142 kB / 449 MB, free: 136 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001329/0.09987, allocations: 102.1 kB / 449.1 MB, free: 28 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.1, allocations: 358.8 kB / 449.5 MB, free: 15.67 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000268/0.1003, allocations: 109.1 kB / 449.6 MB, free: 15.56 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000354/0.1007, allocations: 258.9 kB / 449.8 MB, free: 15.26 MB / 334.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.002305/0.103, allocations: 0.8941 MB / 450.7 MB, free: 14.28 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.97e-06/0.103, allocations: 3.938 kB / 450.7 MB, free: 14.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008461/0.1039, allocations: 467.1 kB / 451.2 MB, free: 13.81 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.1039, allocations: 11.94 kB / 451.2 MB, free: 13.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.1039, allocations: 4 kB / 451.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.1039, allocations: 8 kB / 451.2 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000529/0.1045, allocations: 120.3 kB / 451.3 MB, free: 13.67 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.506e-05/0.1045, allocations: 11.92 kB / 451.3 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003728/0.1049, allocations: 67.45 kB / 451.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.363e-05/0.1049, allocations: 23.98 kB / 451.4 MB, free: 13.57 MB / 334.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.0002829/0.1052, allocations: 211.5 kB / 451.6 MB, free: 13.35 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.872e-05/0.1053, allocations: 43.53 kB / 451.7 MB, free: 13.31 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006572/0.1059, allocations: 362.9 kB / 452 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.106, allocations: 4 kB / 452 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.106, allocations: 4 kB / 452 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.106, allocations: 3.984 kB / 452 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005102/0.1065, allocations: 476.9 kB / 452.5 MB, free: 12.42 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.1065, allocations: 4 kB / 452.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005167/0.107, allocations: 95.89 kB / 452.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.479e-06/0.1071, allocations: 3.984 kB / 452.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.885e-05/0.1071, allocations: 12 kB / 452.6 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.1071, allocations: 4 kB / 452.6 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.1071, allocations: 0 / 452.6 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008275/0.1079, allocations: 0.5674 MB / 453.2 MB, free: 11.72 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.793e-05/0.108, allocations: 128.5 kB / 453.3 MB, free: 11.57 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.615e-05/0.1081, allocations: 11.98 kB / 453.3 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003334/0.1084, allocations: 19.98 kB / 453.3 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.065e-05/0.1085, allocations: 31.95 kB / 453.4 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.998e-05/0.1086, allocations: 12 kB / 453.4 MB, free: 11.5 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005713/0.1091, allocations: 339.1 kB / 453.7 MB, free: 11.17 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1091, allocations: 4 kB / 453.7 MB, free: 11.17 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004266/0.1096, allocations: 103.8 kB / 453.8 MB, free: 11.07 MB / 334.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.0001605/0.1097, allocations: 115.3 kB / 453.9 MB, free: 10.95 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007175/0.1105, allocations: 355.8 kB / 454.3 MB, free: 10.6 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1105, allocations: 4 kB / 454.3 MB, free: 10.59 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002539/0.1107, allocations: 155.8 kB / 454.4 MB, free: 10.44 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004514/0.1112, allocations: 61.59 kB / 454.5 MB, free: 10.38 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001741/0.113, allocations: 1.055 MB / 455.5 MB, free: 9.293 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004529/0.1134, allocations: 0.8548 MB / 456.4 MB, free: 8.41 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001365/0.1136, allocations: 43.44 kB / 456.4 MB, free: 8.367 MB / 334.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1136, allocations: 0 / 456.4 MB, free: 8.367 MB / 334.1 MB Notification: Performance of Templates: time 0.008439/0.122, allocations: 5.448 MB / 461.9 MB, free: 2.91 MB / 334.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)