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.001075/0.001079, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001189/0.001189, allocations: 195.4 kB / 16.14 MB, free: 6.648 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.309/1.309, allocations: 222.9 MB / 239.8 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2064/0.2064, allocations: 22.33 MB / 312.3 MB, free: 12.6 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 63.83 kB / 380.1 MB, free: 11.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2935/0.2949, allocations: 54.94 MB / 435 MB, free: 39.43 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01): time 0.00346/0.2984, allocations: 3.005 MB / 438 MB, free: 37.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001452/0.2998, allocations: 0.9949 MB / 439 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001701/0.3, allocations: 13.69 kB / 439 MB, free: 36.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004026/0.3004, allocations: 103.4 kB / 439.1 MB, free: 36.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003847/0.3008, allocations: 164.6 kB / 439.3 MB, free: 36.46 MB / 350.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.0003336/0.3012, allocations: 243.3 kB / 439.5 MB, free: 36.31 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004042/0.3016, allocations: 0.5704 MB / 440.1 MB, free: 36.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002681/0.3019, allocations: 197.1 kB / 440.3 MB, free: 35.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001896/0.3021, allocations: 215.3 kB / 440.5 MB, free: 35.87 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000202/0.3023, allocations: 247.8 kB / 440.8 MB, free: 35.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.619e-05/0.3023, allocations: 29 kB / 440.8 MB, free: 35.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001369/0.3025, allocations: 49.67 kB / 440.8 MB, free: 35.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001198/0.3026, allocations: 129.5 kB / 441 MB, free: 35.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001452/0.3028, allocations: 227.8 kB / 441.2 MB, free: 35.53 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003555/0.3031, allocations: 0.5125 MB / 441.7 MB, free: 35.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3031, allocations: 0 / 441.7 MB, free: 35.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.72e-07/0.3032, allocations: 0 / 441.7 MB, free: 35.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.922e-06/0.3032, allocations: 0 / 441.7 MB, free: 35.32 MB / 350.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.001605/0.3048, allocations: 0.8629 MB / 442.6 MB, free: 34.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.3048, allocations: 9 kB / 442.6 MB, free: 34.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.058e-05/0.3049, allocations: 66.38 kB / 442.6 MB, free: 34.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005869/0.3055, allocations: 430.1 kB / 443.1 MB, free: 34.36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.339e-05/0.3056, allocations: 38.03 kB / 443.1 MB, free: 34.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.422e-05/0.3056, allocations: 52.75 kB / 443.1 MB, free: 34.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000605/0.3062, allocations: 414.1 kB / 443.5 MB, free: 34.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.654e-05/0.3063, allocations: 3.188 kB / 443.5 MB, free: 34.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.197e-05/0.3063, allocations: 17.38 kB / 443.6 MB, free: 34.1 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.3063, allocations: 12.5 kB / 443.6 MB, free: 34.1 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005505/0.3069, allocations: 291.2 kB / 443.9 MB, free: 34 MB / 350.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.001524/0.3084, allocations: 1.711 MB / 445.6 MB, free: 32.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003756/0.3088, allocations: 279.8 kB / 445.8 MB, free: 32.56 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002441/0.309, allocations: 160.4 kB / 446 MB, free: 32.5 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.423e-05/0.3091, allocations: 3.203 kB / 446 MB, free: 32.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.659e-05/0.3091, allocations: 41.67 kB / 446 MB, free: 32.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.422e-06/0.3091, allocations: 0 / 446 MB, free: 32.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.0007518/0.3099, allocations: 412.1 kB / 446.5 MB, free: 32.28 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.734e-05/0.3099, allocations: 54.5 kB / 446.5 MB, free: 32.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005683/0.3105, allocations: 476.7 kB / 447 MB, free: 32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.288e-05/0.3105, allocations: 36.64 kB / 447 MB, free: 31.96 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001108/0.3106, allocations: 251.9 kB / 447.3 MB, free: 31.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.177e-05/0.3107, allocations: 144.2 kB / 447.4 MB, free: 31.64 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001026/0.3108, allocations: 99.5 kB / 447.5 MB, free: 31.58 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.624e-05/0.3109, allocations: 357.1 kB / 447.8 MB, free: 31.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002315/0.3111, allocations: 117.2 kB / 448 MB, free: 31.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002645/0.3114, allocations: 245.3 kB / 448.2 MB, free: 31.02 MB / 350.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.001896/0.3133, allocations: 0.9108 MB / 449.1 MB, free: 30.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.3133, allocations: 3.938 kB / 449.1 MB, free: 30.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0006561/0.314, allocations: 458.2 kB / 449.6 MB, free: 30.26 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.545e-05/0.314, allocations: 6.281 kB / 449.6 MB, free: 30.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.314, allocations: 2.906 kB / 449.6 MB, free: 30.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.314, allocations: 5.812 kB / 449.6 MB, free: 30.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004665/0.3145, allocations: 127.4 kB / 449.7 MB, free: 30.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.169e-05/0.3145, allocations: 9.5 kB / 449.7 MB, free: 30.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003496/0.3149, allocations: 69.17 kB / 449.8 MB, free: 30.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.067e-05/0.3149, allocations: 26.19 kB / 449.8 MB, free: 30.2 MB / 350.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.0002648/0.3152, allocations: 216.1 kB / 450 MB, free: 30.04 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.768e-05/0.3153, allocations: 47.62 kB / 450.1 MB, free: 30.01 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005804/0.3158, allocations: 378.5 kB / 450.4 MB, free: 29.83 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.3159, allocations: 5.562 kB / 450.4 MB, free: 29.83 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.3159, allocations: 0 / 450.4 MB, free: 29.83 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.3159, allocations: 0 / 450.4 MB, free: 29.83 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003968/0.3163, allocations: 474.3 kB / 450.9 MB, free: 29.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.3163, allocations: 0 / 450.9 MB, free: 29.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004758/0.3168, allocations: 98.31 kB / 451 MB, free: 29.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.3168, allocations: 6.266 kB / 451 MB, free: 29.51 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.425e-05/0.3168, allocations: 11.22 kB / 451 MB, free: 29.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.766e-06/0.3168, allocations: 6.906 kB / 451 MB, free: 29.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.021e-06/0.3168, allocations: 0 / 451 MB, free: 29.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000671/0.3175, allocations: 0.5619 MB / 451.6 MB, free: 29.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.331e-05/0.3176, allocations: 131.2 kB / 451.7 MB, free: 29.06 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.055e-05/0.3176, allocations: 7.281 kB / 451.7 MB, free: 29.05 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003034/0.318, allocations: 35.05 kB / 451.7 MB, free: 29.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.354e-05/0.318, allocations: 25.38 kB / 451.8 MB, free: 29.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.778e-05/0.3181, allocations: 13.19 kB / 451.8 MB, free: 29.04 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004309/0.3185, allocations: 342.8 kB / 452.1 MB, free: 28.88 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3185, allocations: 0 / 452.1 MB, free: 28.88 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003615/0.3189, allocations: 101.5 kB / 452.2 MB, free: 28.86 MB / 350.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.0001237/0.319, allocations: 117.6 kB / 452.3 MB, free: 28.76 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004819/0.3195, allocations: 337.3 kB / 452.7 MB, free: 28.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3195, allocations: 0 / 452.7 MB, free: 28.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001977/0.3197, allocations: 158.1 kB / 452.8 MB, free: 28.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004051/0.3201, allocations: 67.52 kB / 452.9 MB, free: 28.58 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001298/0.3214, allocations: 1.19 MB / 454.1 MB, free: 27.78 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002511/0.3217, allocations: 0.8582 MB / 454.9 MB, free: 27.07 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001962/0.3219, allocations: 60.17 kB / 455 MB, free: 27.06 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.791e-05/0.322, allocations: 37.91 kB / 455 MB, free: 27.05 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.322, allocations: 4 kB / 455 MB, free: 27.04 MB / 350.1 MB Notification: Performance of Templates: time 0.008084/0.3301, allocations: 3.706 MB / 458.7 MB, free: 26.81 MB / 350.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)