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.001076/0.001076, allocations: 104.9 kB / 16.36 MB, free: 6.285 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.001116/0.001116, allocations: 192 kB / 17.29 MB, free: 5.863 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.37/1.37, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09219/0.09219, allocations: 22.33 MB / 313.5 MB, free: 8.914 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002267/0.002267, allocations: 63.97 kB / 382.2 MB, free: 41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1083, allocations: 54.97 MB / 437.2 MB, free: 12.29 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01): time 0.004099/0.1125, allocations: 2.958 MB / 440.2 MB, free: 9.309 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001699/0.1142, allocations: 1.013 MB / 441.2 MB, free: 8.289 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001884/0.1144, allocations: 4 kB / 441.2 MB, free: 8.285 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004592/0.1149, allocations: 130.9 kB / 441.3 MB, free: 8.156 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004972/0.1154, allocations: 186.8 kB / 441.5 MB, free: 7.973 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.0004315/0.1159, allocations: 259.6 kB / 441.8 MB, free: 7.719 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005541/0.1164, allocations: 0.6171 MB / 442.4 MB, free: 7.102 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003216/0.1168, allocations: 206.7 kB / 442.6 MB, free: 6.898 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000248/0.117, allocations: 247 kB / 442.8 MB, free: 6.656 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002722/0.1173, allocations: 262.6 kB / 443.1 MB, free: 6.398 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.752e-05/0.1174, allocations: 48 kB / 443.1 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001414/0.1175, allocations: 79.95 kB / 443.2 MB, free: 6.273 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001511/0.1177, allocations: 131.6 kB / 443.3 MB, free: 6.145 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002115/0.1179, allocations: 242.6 kB / 443.6 MB, free: 5.906 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004861/0.1184, allocations: 0.5449 MB / 444.1 MB, free: 5.359 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.1184, allocations: 0 / 444.1 MB, free: 5.359 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1184, allocations: 4 kB / 444.1 MB, free: 5.355 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.795e-06/0.1185, allocations: 0 / 444.1 MB, free: 5.355 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.001611/0.1201, allocations: 0.8612 MB / 445 MB, free: 4.441 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.1201, allocations: 12.03 kB / 445 MB, free: 4.43 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.987e-05/0.1202, allocations: 60.22 kB / 445 MB, free: 4.371 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007247/0.1209, allocations: 447.5 kB / 445.5 MB, free: 3.891 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.718e-05/0.121, allocations: 37.38 kB / 445.5 MB, free: 3.855 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.288e-05/0.1211, allocations: 44.38 kB / 445.6 MB, free: 3.812 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006582/0.1217, allocations: 417 kB / 446 MB, free: 3.387 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.526e-05/0.1218, allocations: 0 / 446 MB, free: 3.387 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.373e-05/0.1218, allocations: 19.98 kB / 446 MB, free: 3.367 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.271e-05/0.1218, allocations: 15.98 kB / 446 MB, free: 3.352 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005899/0.1224, allocations: 291.8 kB / 446.3 MB, free: 3.066 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.001905/0.1243, allocations: 1.701 MB / 448 MB, free: 1.227 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004479/0.1248, allocations: 283.3 kB / 448.3 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002798/0.1251, allocations: 155.8 kB / 448.4 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.358e-05/0.1251, allocations: 4.328 kB / 448.4 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.438e-05/0.1252, allocations: 34.89 kB / 448.5 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 1.523e-06/0.1252, allocations: 3.938 kB / 448.5 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.000879/0.126, allocations: 418.5 kB / 448.9 MB, free: 332 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.539e-05/0.1261, allocations: 55.41 kB / 448.9 MB, free: 264 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006732/0.1268, allocations: 469.6 kB / 449.4 MB, free: 15.78 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.913e-05/0.1268, allocations: 37.7 kB / 449.4 MB, free: 15.74 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001488/0.127, allocations: 256 kB / 449.7 MB, free: 15.48 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.605e-05/0.1271, allocations: 141.9 kB / 449.8 MB, free: 15.35 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001236/0.1272, allocations: 98.14 kB / 449.9 MB, free: 15.25 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.1273, allocations: 354.8 kB / 450.2 MB, free: 14.89 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002503/0.1276, allocations: 121.1 kB / 450.4 MB, free: 14.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003122/0.1279, allocations: 244.5 kB / 450.6 MB, free: 14.48 MB / 334.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.002104/0.13, allocations: 0.9059 MB / 451.5 MB, free: 13.49 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.13, allocations: 3.938 kB / 451.5 MB, free: 13.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007628/0.1308, allocations: 463.2 kB / 452 MB, free: 13.03 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.1308, allocations: 8 kB / 452 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.1308, allocations: 4 kB / 452 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.989e-05/0.1309, allocations: 8 kB / 452 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004894/0.1314, allocations: 120.3 kB / 452.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.488e-05/0.1314, allocations: 15.94 kB / 452.1 MB, free: 12.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000348/0.1317, allocations: 63.5 kB / 452.2 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.083e-05/0.1318, allocations: 20 kB / 452.2 MB, free: 12.79 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.000278/0.1321, allocations: 217.5 kB / 452.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.904e-05/0.1321, allocations: 39.53 kB / 452.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006045/0.1327, allocations: 366.9 kB / 452.8 MB, free: 12.17 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.54e-06/0.1328, allocations: 4 kB / 452.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.1328, allocations: 0 / 452.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.1328, allocations: 4 kB / 452.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004943/0.1333, allocations: 480.9 kB / 453.3 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.1333, allocations: 0 / 453.3 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004864/0.1338, allocations: 99.88 kB / 453.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.172e-06/0.1338, allocations: 4 kB / 453.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.514e-05/0.1338, allocations: 7.938 kB / 453.4 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.978e-06/0.1338, allocations: 4 kB / 453.4 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1338, allocations: 0 / 453.4 MB, free: 11.53 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007751/0.1346, allocations: 0.5636 MB / 454 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001156/0.1348, allocations: 132.4 kB / 454.1 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.036e-05/0.1348, allocations: 8 kB / 454.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002984/0.1351, allocations: 27.97 kB / 454.1 MB, free: 10.76 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.213e-05/0.1352, allocations: 35.95 kB / 454.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.805e-05/0.1352, allocations: 4 kB / 454.2 MB, free: 10.72 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005179/0.1357, allocations: 343.1 kB / 454.5 MB, free: 10.39 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1358, allocations: 4 kB / 454.5 MB, free: 10.39 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004045/0.1362, allocations: 103.8 kB / 454.6 MB, free: 10.29 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.0001656/0.1363, allocations: 119.2 kB / 454.7 MB, free: 10.16 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005813/0.1369, allocations: 327.9 kB / 455 MB, free: 9.84 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.1369, allocations: 4 kB / 455 MB, free: 9.836 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002304/0.1372, allocations: 163.8 kB / 455.2 MB, free: 9.676 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004166/0.1376, allocations: 61.61 kB / 455.3 MB, free: 9.617 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001365/0.139, allocations: 1.003 MB / 456.3 MB, free: 8.586 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003502/0.1393, allocations: 0.8548 MB / 457.1 MB, free: 7.703 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001684/0.1395, allocations: 55.44 kB / 457.2 MB, free: 7.645 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001176/0.1396, allocations: 43.42 kB / 457.2 MB, free: 7.602 MB / 334.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1396, allocations: 0 / 457.2 MB, free: 7.602 MB / 334.1 MB Notification: Performance of Templates: time 0.007824/0.1475, allocations: 3.966 MB / 461.2 MB, free: 3.652 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 -s cvode -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01.pipe 2>&1)