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.001251/0.001251, allocations: 99.47 kB / 15.05 MB, free: 1.105 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.001721/0.001722, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 223.2 MB / 239.9 MB, free: 5.227 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2701/0.2701, allocations: 22.34 MB / 313.3 MB, free: 13.11 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002985/0.0002989, allocations: 8 kB / 381.8 MB, free: 10.56 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3357/0.336, allocations: 55.98 MB / 437.8 MB, free: 39.15 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01): time 0.002265/0.3383, allocations: 2.437 MB / 440.3 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001356/0.3397, allocations: 0.9759 MB / 441.2 MB, free: 36.71 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002024/0.3399, allocations: 8.938 kB / 441.2 MB, free: 36.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004421/0.3404, allocations: 96.5 kB / 441.3 MB, free: 36.66 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004365/0.3408, allocations: 164.9 kB / 441.5 MB, free: 36.57 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.0003791/0.3412, allocations: 186.1 kB / 441.7 MB, free: 36.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004234/0.3416, allocations: 394.9 kB / 442.1 MB, free: 36.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002616/0.3419, allocations: 142.9 kB / 442.2 MB, free: 36.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002202/0.3421, allocations: 199.8 kB / 442.4 MB, free: 36.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002009/0.3423, allocations: 206 kB / 442.6 MB, free: 36.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.183e-05/0.3424, allocations: 24.91 kB / 442.6 MB, free: 36.04 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001183/0.3425, allocations: 42.98 kB / 442.7 MB, free: 36.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001131/0.3426, allocations: 98.61 kB / 442.8 MB, free: 35.99 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.154e-05/0.3427, allocations: 105.1 kB / 442.9 MB, free: 35.91 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000324/0.343, allocations: 386.7 kB / 443.2 MB, free: 35.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3431, allocations: 0 / 443.2 MB, free: 35.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.3431, allocations: 0 / 443.2 MB, free: 35.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.084e-06/0.3431, allocations: 6.875 kB / 443.2 MB, free: 35.82 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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001526/0.3446, allocations: 0.7857 MB / 444 MB, free: 35.26 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.3447, allocations: 7.781 kB / 444 MB, free: 35.26 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.835e-05/0.3447, allocations: 56.19 kB / 444.1 MB, free: 35.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000628/0.3454, allocations: 443.6 kB / 444.5 MB, free: 34.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.435e-05/0.3454, allocations: 31.12 kB / 444.6 MB, free: 34.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.177e-05/0.3455, allocations: 46.19 kB / 444.6 MB, free: 34.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000594/0.3461, allocations: 405.5 kB / 445 MB, free: 34.68 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.637e-05/0.3461, allocations: 0 / 445 MB, free: 34.68 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.303e-05/0.3462, allocations: 18.92 kB / 445 MB, free: 34.67 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.848e-06/0.3462, allocations: 12.75 kB / 445 MB, free: 34.67 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000539/0.3467, allocations: 274.7 kB / 445.3 MB, free: 34.58 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.002277/0.349, allocations: 1.843 MB / 447.1 MB, free: 33.22 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003595/0.3494, allocations: 242.9 kB / 447.4 MB, free: 33.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.206e-05/0.3494, allocations: 8.906 kB / 447.4 MB, free: 33.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.649e-05/0.3494, allocations: 37.66 kB / 447.4 MB, free: 33.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 1.683e-06/0.3494, allocations: 0 / 447.4 MB, free: 33.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=38): time 0.0007819/0.3502, allocations: 389 kB / 447.8 MB, free: 32.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.953e-05/0.3503, allocations: 66.27 kB / 447.9 MB, free: 32.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005937/0.3509, allocations: 487.1 kB / 448.3 MB, free: 32.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.523e-05/0.3509, allocations: 32.73 kB / 448.4 MB, free: 32.58 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.351, allocations: 255.3 kB / 448.6 MB, free: 32.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.266e-05/0.3511, allocations: 137.6 kB / 448.8 MB, free: 32.26 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.816e-05/0.3511, allocations: 8 kB / 448.8 MB, free: 32.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.234e-05/0.3512, allocations: 363.5 kB / 449.1 MB, free: 31.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002182/0.3514, allocations: 109 kB / 449.2 MB, free: 31.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000266/0.3517, allocations: 245.1 kB / 449.5 MB, free: 31.68 MB / 350.1 MB Notification: The given system is mixed-determined. [index = 2] Notification: Performance of analyzeInitialSystem (initialization): time 0.001765/0.3535, allocations: 0.6027 MB / 450.1 MB, free: 31.46 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.887e-06/0.3535, allocations: 0 / 450.1 MB, free: 31.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0006859/0.3542, allocations: 461.9 kB / 450.5 MB, free: 31.26 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.3542, allocations: 6.656 kB / 450.5 MB, free: 31.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.306e-06/0.3542, allocations: 5.375 kB / 450.5 MB, free: 31.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.3543, allocations: 8.672 kB / 450.5 MB, free: 31.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006311/0.3549, allocations: 170.7 kB / 450.7 MB, free: 31.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001096/0.356, allocations: 1.468 MB / 452.2 MB, free: 29.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003877/0.3564, allocations: 82.23 kB / 452.3 MB, free: 29.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.223e-05/0.3565, allocations: 26.22 kB / 452.3 MB, free: 29.79 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: C2.xfb:VARIABLE(fixed = true ) type: Real C1.xfb:VARIABLE(fixed = true ) type: Real Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: C2.u = C2.CSstart D.Fcs1.y = D.Fcs1.y_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 10 (C1.HIsat,C1.LOsat,C2.HIsat,C2.LOsat,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): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002531/0.3567, allocations: 187.2 kB / 452.5 MB, free: 29.63 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.847e-05/0.3568, allocations: 42.69 kB / 452.5 MB, free: 29.61 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004924/0.3573, allocations: 355.6 kB / 452.9 MB, free: 29.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.3573, allocations: 9.906 kB / 452.9 MB, free: 29.44 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.3573, allocations: 7.891 kB / 452.9 MB, free: 29.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.3573, allocations: 3.469 kB / 452.9 MB, free: 29.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005695/0.3579, allocations: 485.3 kB / 453.3 MB, free: 29.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.464e-06/0.3579, allocations: 0 / 453.3 MB, free: 29.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004501/0.3584, allocations: 95.45 kB / 453.4 MB, free: 29.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.3584, allocations: 2.594 kB / 453.4 MB, free: 29.11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.465e-05/0.3584, allocations: 9.688 kB / 453.5 MB, free: 29.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.3584, allocations: 2.594 kB / 453.5 MB, free: 29.11 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.3584, allocations: 7.938 kB / 453.5 MB, free: 29.1 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006214/0.3591, allocations: 0.5245 MB / 454 MB, free: 28.81 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001065/0.3592, allocations: 139.6 kB / 454.1 MB, free: 28.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.763e-05/0.3592, allocations: 7.438 kB / 454.1 MB, free: 28.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003187/0.3596, allocations: 32.84 kB / 454.2 MB, free: 28.67 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.903e-05/0.3597, allocations: 31.03 kB / 454.2 MB, free: 28.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.992e-05/0.3597, allocations: 14.8 kB / 454.2 MB, free: 28.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004937/0.3602, allocations: 345 kB / 454.5 MB, free: 28.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3602, allocations: 0 / 454.5 MB, free: 28.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004368/0.3606, allocations: 107 kB / 454.6 MB, free: 28.47 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 (41): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001536/0.3608, allocations: 120.5 kB / 454.8 MB, free: 28.37 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007237/0.3615, allocations: 368.4 kB / 455.1 MB, free: 28.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.3615, allocations: 0 / 455.1 MB, free: 28.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002096/0.3618, allocations: 150.1 kB / 455.3 MB, free: 28.22 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003454/0.3621, allocations: 47.72 kB / 455.3 MB, free: 28.2 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001466/0.3636, allocations: 1.206 MB / 456.5 MB, free: 27.46 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000309/0.3639, allocations: 0.8713 MB / 457.4 MB, free: 26.75 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000196/0.3641, allocations: 49.5 kB / 457.4 MB, free: 26.74 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.414e-05/0.3642, allocations: 37.41 kB / 457.5 MB, free: 26.73 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3642, allocations: 3.062 kB / 457.5 MB, free: 26.73 MB / 350.1 MB Notification: Performance of Templates: time 0.008452/0.3727, allocations: 3.574 MB / 461.1 MB, free: 26.5 MB / 350.1 MB make -j1 -f AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: