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.001683/0.001683, allocations: 116.4 kB / 16.37 MB, free: 6.012 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.002224/0.002224, allocations: 194.3 kB / 17.31 MB, free: 5.613 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.378/1.378, 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.09289/0.09289, allocations: 22.34 MB / 313.5 MB, free: 8.891 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001178, allocations: 66.03 kB / 382.2 MB, free: 41.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09659/0.09778, allocations: 54.96 MB / 437.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01): time 0.003931/0.1018, allocations: 2.984 MB / 440.2 MB, free: 9.25 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001581/0.1034, allocations: 0.9974 MB / 441.2 MB, free: 8.246 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001638/0.1036, allocations: 11.94 kB / 441.2 MB, free: 8.234 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004254/0.104, allocations: 130.9 kB / 441.3 MB, free: 8.105 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004636/0.1045, allocations: 186.8 kB / 441.5 MB, free: 7.922 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.0004068/0.1049, allocations: 263.6 kB / 441.8 MB, free: 7.664 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000571/0.1055, allocations: 0.6054 MB / 442.4 MB, free: 7.059 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003047/0.1058, allocations: 214.7 kB / 442.6 MB, free: 6.848 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002384/0.106, allocations: 247 kB / 442.8 MB, free: 6.605 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002669/0.1063, allocations: 258.7 kB / 443.1 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.58e-05/0.1064, allocations: 44 kB / 443.1 MB, free: 6.309 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001298/0.1065, allocations: 75.97 kB / 443.2 MB, free: 6.234 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001392/0.1067, allocations: 143.5 kB / 443.3 MB, free: 6.094 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001948/0.1069, allocations: 246.6 kB / 443.6 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005017/0.1074, allocations: 0.5371 MB / 444.1 MB, free: 5.312 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1074, allocations: 0 / 444.1 MB, free: 5.312 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1074, allocations: 0 / 444.1 MB, free: 5.312 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.264e-06/0.1074, allocations: 0 / 444.1 MB, free: 5.312 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.001658/0.1091, allocations: 0.865 MB / 445 MB, free: 4.395 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.719e-05/0.1091, allocations: 12.02 kB / 445 MB, free: 4.383 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001005/0.1092, allocations: 64.28 kB / 445.1 MB, free: 4.32 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007349/0.11, allocations: 443.5 kB / 445.5 MB, free: 3.844 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.674e-05/0.11, allocations: 33.38 kB / 445.5 MB, free: 3.812 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.928e-05/0.1101, allocations: 52.38 kB / 445.6 MB, free: 3.762 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000652/0.1108, allocations: 413 kB / 446 MB, free: 3.34 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.545e-05/0.1108, allocations: 0 / 446 MB, free: 3.34 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.385e-05/0.1108, allocations: 16 kB / 446 MB, free: 3.324 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.261e-05/0.1108, allocations: 15.94 kB / 446 MB, free: 3.309 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006611/0.1115, allocations: 295.7 kB / 446.3 MB, free: 3.02 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.001919/0.1134, allocations: 1.705 MB / 448 MB, free: 1.176 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004319/0.1139, allocations: 275.2 kB / 448.3 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000274/0.1142, allocations: 157.5 kB / 448.4 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.551e-05/0.1142, allocations: 8.312 kB / 448.4 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.497e-05/0.1142, allocations: 38.89 kB / 448.5 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of pre-optimization done (n=40): time 1.512e-06/0.1143, allocations: 0 / 448.5 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of matching and sorting (n=40): time 0.000871/0.1151, allocations: 410.5 kB / 448.9 MB, free: 288 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.189e-05/0.1152, allocations: 55.41 kB / 448.9 MB, free: 220 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006781/0.1159, allocations: 473.4 kB / 449.4 MB, free: 15.74 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.874e-05/0.1159, allocations: 37.7 kB / 449.4 MB, free: 15.7 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001577/0.1161, allocations: 256 kB / 449.7 MB, free: 15.44 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.977e-05/0.1162, allocations: 142 kB / 449.8 MB, free: 15.3 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001206/0.1163, allocations: 98.16 kB / 449.9 MB, free: 15.2 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.1164, allocations: 358.8 kB / 450.3 MB, free: 14.84 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002512/0.1167, allocations: 113.1 kB / 450.4 MB, free: 14.73 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003199/0.117, allocations: 244.6 kB / 450.6 MB, free: 14.44 MB / 334.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.002104/0.1191, allocations: 0.9098 MB / 451.5 MB, free: 13.44 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.08e-06/0.1192, allocations: 3.938 kB / 451.5 MB, free: 13.44 MB / 334.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007759/0.1199, allocations: 459.2 kB / 452 MB, free: 12.98 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.12, allocations: 8 kB / 452 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.368e-06/0.12, allocations: 4 kB / 452 MB, free: 12.97 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.538e-05/0.12, allocations: 7.984 kB / 452 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004979/0.1205, allocations: 124.3 kB / 452.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.084e-05/0.1205, allocations: 8 kB / 452.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000358/0.1209, allocations: 63.5 kB / 452.2 MB, free: 12.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.556e-05/0.1209, allocations: 20 kB / 452.2 MB, free: 12.75 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.0003482/0.1213, allocations: 219 kB / 452.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.488e-05/0.1214, allocations: 39.52 kB / 452.4 MB, free: 12.5 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007145/0.1221, allocations: 370.8 kB / 452.8 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-05/0.1222, allocations: 7.938 kB / 452.8 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.044e-06/0.1222, allocations: 4 kB / 452.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.834e-06/0.1222, allocations: 3.984 kB / 452.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000618/0.1228, allocations: 477 kB / 453.3 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.1228, allocations: 4 kB / 453.3 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005251/0.1234, allocations: 95.89 kB / 453.4 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.075e-06/0.1234, allocations: 0 / 453.4 MB, free: 11.5 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.225e-05/0.1234, allocations: 15.92 kB / 453.4 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.1234, allocations: 4 kB / 453.4 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.1234, allocations: 0 / 453.4 MB, free: 11.48 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009036/0.1243, allocations: 0.5674 MB / 454 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001404/0.1245, allocations: 128.5 kB / 454.1 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.808e-05/0.1246, allocations: 12 kB / 454.1 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003047/0.1249, allocations: 23.97 kB / 454.1 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.176e-05/0.125, allocations: 27.97 kB / 454.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.209e-05/0.125, allocations: 15.98 kB / 454.2 MB, free: 10.67 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005562/0.1256, allocations: 331.1 kB / 454.5 MB, free: 10.35 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1256, allocations: 8 kB / 454.5 MB, free: 10.34 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004371/0.126, allocations: 99.78 kB / 454.6 MB, free: 10.24 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.0002008/0.1262, allocations: 123.2 kB / 454.7 MB, free: 10.11 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000631/0.1269, allocations: 339.9 kB / 455.1 MB, free: 9.781 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1269, allocations: 4 kB / 455.1 MB, free: 9.777 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002424/0.1271, allocations: 155.8 kB / 455.2 MB, free: 9.625 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004164/0.1276, allocations: 67.73 kB / 455.3 MB, free: 9.562 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001541/0.1291, allocations: 0.9989 MB / 456.3 MB, free: 8.535 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004618/0.1296, allocations: 0.8548 MB / 457.1 MB, free: 7.652 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000193/0.1298, allocations: 59.44 kB / 457.2 MB, free: 7.59 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001091/0.1299, allocations: 39.44 kB / 457.2 MB, free: 7.551 MB / 334.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1299, allocations: 0 / 457.2 MB, free: 7.551 MB / 334.1 MB Notification: Performance of Templates: time 0.008248/0.1382, allocations: 3.966 MB / 461.2 MB, free: 3.598 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 gbode -lv LOG_STATS > AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01.pipe 2>&1)