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.001198/0.001198, allocations: 107.2 kB / 15.99 MB, free: 6.355 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.001061/0.001061, allocations: 195.3 kB / 16.91 MB, free: 6.195 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.19/1.19, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08694/0.08694, allocations: 22.31 MB / 313.1 MB, free: 9.148 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 70.19 kB / 380.9 MB, free: 41.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08241/0.08371, allocations: 54.96 MB / 435.9 MB, free: 13.53 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01): time 0.00392/0.08766, allocations: 2.992 MB / 438.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00168/0.08937, allocations: 0.9974 MB / 439.9 MB, free: 9.512 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003263/0.08971, allocations: 11.94 kB / 439.9 MB, free: 9.5 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004539/0.09018, allocations: 103.3 kB / 440 MB, free: 9.398 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005495/0.09076, allocations: 167.2 kB / 440.1 MB, free: 9.234 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.0004519/0.09123, allocations: 239.7 kB / 440.4 MB, free: 9 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006397/0.09187, allocations: 0.6094 MB / 441 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003126/0.0922, allocations: 211 kB / 441.2 MB, free: 8.184 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002919/0.0925, allocations: 239 kB / 441.4 MB, free: 7.949 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003071/0.09281, allocations: 270.6 kB / 441.7 MB, free: 7.684 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.305e-05/0.0929, allocations: 44 kB / 441.7 MB, free: 7.641 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001459/0.09305, allocations: 79.91 kB / 441.8 MB, free: 7.562 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000141/0.0932, allocations: 139.6 kB / 442 MB, free: 7.426 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002072/0.09342, allocations: 238.7 kB / 442.2 MB, free: 7.191 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003939/0.09382, allocations: 415.1 kB / 442.6 MB, free: 6.785 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.09383, allocations: 0 / 442.6 MB, free: 6.785 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.09384, allocations: 4 kB / 442.6 MB, free: 6.781 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.422e-05/0.09386, allocations: 4 kB / 442.6 MB, free: 6.777 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.001842/0.0957, allocations: 0.8689 MB / 443.5 MB, free: 5.855 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.09575, allocations: 12.03 kB / 443.5 MB, free: 5.844 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001491/0.09591, allocations: 56.28 kB / 443.5 MB, free: 5.789 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007126/0.09662, allocations: 443.6 kB / 444 MB, free: 5.316 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.313e-05/0.09667, allocations: 33.31 kB / 444 MB, free: 5.285 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.669e-05/0.09674, allocations: 48.38 kB / 444 MB, free: 5.238 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007417/0.09749, allocations: 417 kB / 444.5 MB, free: 4.812 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.685e-05/0.09751, allocations: 0 / 444.5 MB, free: 4.812 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.485e-05/0.09755, allocations: 20 kB / 444.5 MB, free: 4.793 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.125e-05/0.09757, allocations: 11.98 kB / 444.5 MB, free: 4.781 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006181/0.0982, allocations: 291.8 kB / 444.8 MB, free: 4.496 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.001858/0.1001, allocations: 1.716 MB / 446.5 MB, free: 2.641 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004275/0.1005, allocations: 275.2 kB / 446.8 MB, free: 2.363 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002711/0.1008, allocations: 157.5 kB / 446.9 MB, free: 2.207 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.591e-05/0.1008, allocations: 12.33 kB / 446.9 MB, free: 2.195 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.986e-05/0.1009, allocations: 34.89 kB / 447 MB, free: 2.152 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 1.513e-06/0.1009, allocations: 0 / 447 MB, free: 2.152 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.000853/0.1017, allocations: 406.2 kB / 447.4 MB, free: 1.75 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.234e-05/0.1018, allocations: 55.41 kB / 447.4 MB, free: 1.684 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000665/0.1024, allocations: 477.5 kB / 447.9 MB, free: 1.207 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.167e-05/0.1025, allocations: 33.64 kB / 447.9 MB, free: 1.168 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001737/0.1027, allocations: 260 kB / 448.2 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.916e-05/0.1027, allocations: 142 kB / 448.3 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001267/0.1029, allocations: 98.16 kB / 448.4 MB, free: 0.668 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.103, allocations: 358.8 kB / 448.7 MB, free: 316 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002735/0.1033, allocations: 117.1 kB / 448.9 MB, free: 196 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003342/0.1036, allocations: 248.6 kB / 449.1 MB, free: 15.9 MB / 334.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.002159/0.1058, allocations: 0.9018 MB / 450 MB, free: 14.91 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.1058, allocations: 7.938 kB / 450 MB, free: 14.9 MB / 334.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007711/0.1066, allocations: 459.2 kB / 450.5 MB, free: 14.45 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.121e-05/0.1066, allocations: 4 kB / 450.5 MB, free: 14.45 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/0.1067, allocations: 4 kB / 450.5 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.501e-05/0.1067, allocations: 8 kB / 450.5 MB, free: 14.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004973/0.1072, allocations: 123.8 kB / 450.6 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.367e-05/0.1072, allocations: 11.98 kB / 450.6 MB, free: 14.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003797/0.1076, allocations: 71.91 kB / 450.7 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.232e-05/0.1076, allocations: 20 kB / 450.7 MB, free: 14.21 MB / 334.1 MB Warning: Assuming fixed start value for the following 2 variables: Cz1.T:VARIABLE(min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 0.0))))) start = 293.15 unit = "K" fixed = true nominal = 300.0 ) "Temperature of element" type: Real Cz2.T:VARIABLE(min = max(0.0, max(0.0, max(0.0, max(0.0, max(0.0, 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.0002735/0.1079, allocations: 224.2 kB / 450.9 MB, free: 13.98 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.18e-05/0.108, allocations: 39.53 kB / 451 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005902/0.1086, allocations: 370.8 kB / 451.3 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.1086, allocations: 8 kB / 451.3 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.1086, allocations: 0 / 451.3 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.645e-06/0.1086, allocations: 3.984 kB / 451.3 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004793/0.1091, allocations: 480.9 kB / 451.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.1091, allocations: 0 / 451.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004983/0.1096, allocations: 95.89 kB / 451.9 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.142e-05/0.1097, allocations: 4 kB / 451.9 MB, free: 12.94 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.91e-05/0.1097, allocations: 7.984 kB / 451.9 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.93e-06/0.1097, allocations: 4 kB / 451.9 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.1097, allocations: 0 / 451.9 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007369/0.1105, allocations: 0.5674 MB / 452.5 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.467e-05/0.1106, allocations: 128.5 kB / 452.6 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.605e-05/0.1106, allocations: 12 kB / 452.6 MB, free: 12.19 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003294/0.111, allocations: 31.97 kB / 452.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.059e-05/0.111, allocations: 27.95 kB / 452.7 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.161e-05/0.1111, allocations: 16 kB / 452.7 MB, free: 12.11 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005226/0.1116, allocations: 339.1 kB / 453 MB, free: 11.78 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1116, allocations: 0 / 453 MB, free: 11.78 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004021/0.112, allocations: 107.8 kB / 453.1 MB, free: 11.68 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.0001529/0.1122, allocations: 116.6 kB / 453.2 MB, free: 11.55 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006776/0.1128, allocations: 355.5 kB / 453.6 MB, free: 11.21 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.1129, allocations: 0 / 453.6 MB, free: 11.21 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002294/0.1131, allocations: 159.8 kB / 453.7 MB, free: 11.05 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004205/0.1135, allocations: 66.34 kB / 453.8 MB, free: 10.99 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001543/0.1151, allocations: 1.224 MB / 455 MB, free: 9.734 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003655/0.1155, allocations: 0.8509 MB / 455.9 MB, free: 8.855 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001268/0.1156, allocations: 47.42 kB / 455.9 MB, free: 8.809 MB / 334.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1156, allocations: 4 kB / 455.9 MB, free: 8.805 MB / 334.1 MB Notification: Performance of Templates: time 0.00889/0.1245, allocations: 5.449 MB / 461.4 MB, free: 3.352 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)