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.001419/0.001418, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001729/0.001729, allocations: 195.3 kB / 16.53 MB, free: 6.664 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.42/1.42, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2639/0.2639, allocations: 22.35 MB / 312.7 MB, free: 12.52 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 63.91 kB / 380.8 MB, free: 10.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2953/0.2966, allocations: 54.95 MB / 435.8 MB, free: 39.71 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01): time 0.0035/0.3002, allocations: 2.973 MB / 438.8 MB, free: 37.6 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001424/0.3016, allocations: 0.9941 MB / 439.7 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001816/0.3018, allocations: 15.44 kB / 439.8 MB, free: 36.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004051/0.3022, allocations: 134.6 kB / 439.9 MB, free: 36.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004457/0.3027, allocations: 187.5 kB / 440.1 MB, free: 36.71 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.0003433/0.3031, allocations: 275.3 kB / 440.3 MB, free: 36.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004517/0.3035, allocations: 0.5999 MB / 440.9 MB, free: 36.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002857/0.3038, allocations: 216.6 kB / 441.2 MB, free: 36.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002019/0.304, allocations: 238 kB / 441.4 MB, free: 36.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002424/0.3043, allocations: 261.8 kB / 441.6 MB, free: 35.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.98e-05/0.3043, allocations: 44.81 kB / 441.7 MB, free: 35.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001538/0.3045, allocations: 82.92 kB / 441.8 MB, free: 35.92 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001284/0.3046, allocations: 142.9 kB / 441.9 MB, free: 35.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000158/0.3048, allocations: 239.6 kB / 442.1 MB, free: 35.68 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003741/0.3052, allocations: 0.5291 MB / 442.7 MB, free: 35.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.3052, allocations: 0 / 442.7 MB, free: 35.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3052, allocations: 0 / 442.7 MB, free: 35.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.238e-06/0.3052, allocations: 6.844 kB / 442.7 MB, free: 35.45 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.001573/0.3068, allocations: 0.852 MB / 443.5 MB, free: 34.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.3068, allocations: 14.16 kB / 443.5 MB, free: 34.83 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.897e-05/0.3069, allocations: 60.09 kB / 443.6 MB, free: 34.8 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006256/0.3076, allocations: 435.2 kB / 444 MB, free: 34.49 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.238e-05/0.3076, allocations: 36.03 kB / 444.1 MB, free: 34.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.618e-05/0.3077, allocations: 49.25 kB / 444.1 MB, free: 34.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005922/0.3083, allocations: 417.9 kB / 444.5 MB, free: 34.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.3083, allocations: 3.375 kB / 444.5 MB, free: 34.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.461e-05/0.3084, allocations: 17.81 kB / 444.5 MB, free: 34.24 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.307e-06/0.3084, allocations: 8.719 kB / 444.6 MB, free: 34.24 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005529/0.3089, allocations: 286.8 kB / 444.8 MB, free: 34.14 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.001686/0.3106, allocations: 1.724 MB / 446.6 MB, free: 32.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000443/0.3111, allocations: 274 kB / 446.8 MB, free: 32.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000262/0.3114, allocations: 160.7 kB / 447 MB, free: 32.63 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.652e-05/0.3114, allocations: 6.047 kB / 447 MB, free: 32.63 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.306e-05/0.3114, allocations: 45.16 kB / 447 MB, free: 32.59 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.513e-06/0.3114, allocations: 0 / 447 MB, free: 32.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.0007859/0.3122, allocations: 402.4 kB / 447.4 MB, free: 32.42 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.468e-05/0.3123, allocations: 54.19 kB / 447.5 MB, free: 32.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000598/0.3129, allocations: 476.6 kB / 447.9 MB, free: 32.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.345e-05/0.3129, allocations: 35.05 kB / 448 MB, free: 32.1 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000123/0.313, allocations: 261.1 kB / 448.2 MB, free: 31.89 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.997e-05/0.3131, allocations: 142.9 kB / 448.4 MB, free: 31.77 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001067/0.3132, allocations: 97.11 kB / 448.5 MB, free: 31.72 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.345e-05/0.3133, allocations: 362.2 kB / 448.8 MB, free: 31.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002391/0.3136, allocations: 114 kB / 448.9 MB, free: 31.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002856/0.3139, allocations: 246.8 kB / 449.2 MB, free: 31.16 MB / 350.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.001935/0.3158, allocations: 0.902 MB / 450.1 MB, free: 30.6 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/0.3158, allocations: 7.219 kB / 450.1 MB, free: 30.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007161/0.3165, allocations: 458.5 kB / 450.5 MB, free: 30.4 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.3166, allocations: 5.406 kB / 450.5 MB, free: 30.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.3166, allocations: 2.781 kB / 450.5 MB, free: 30.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.08e-05/0.3166, allocations: 8.75 kB / 450.5 MB, free: 30.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004594/0.3171, allocations: 121.2 kB / 450.7 MB, free: 30.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.251e-05/0.3171, allocations: 9.656 kB / 450.7 MB, free: 30.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003262/0.3174, allocations: 70.59 kB / 450.7 MB, free: 30.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.167e-05/0.3175, allocations: 24.25 kB / 450.8 MB, free: 30.34 MB / 350.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.0002465/0.3177, allocations: 208.7 kB / 451 MB, free: 30.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.716e-05/0.3178, allocations: 40.03 kB / 451 MB, free: 30.15 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005534/0.3184, allocations: 369.2 kB / 451.4 MB, free: 29.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.93e-06/0.3184, allocations: 2.75 kB / 451.4 MB, free: 29.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.3184, allocations: 6.5 kB / 451.4 MB, free: 29.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.3184, allocations: 7.375 kB / 451.4 MB, free: 29.97 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004371/0.3188, allocations: 475.3 kB / 451.8 MB, free: 29.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.3188, allocations: 3.938 kB / 451.9 MB, free: 29.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004448/0.3193, allocations: 102.8 kB / 452 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.3193, allocations: 2.625 kB / 452 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.435e-05/0.3193, allocations: 6.625 kB / 452 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.3193, allocations: 2.625 kB / 452 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3194, allocations: 0 / 452 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006577/0.32, allocations: 0.5641 MB / 452.5 MB, free: 29.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.05e-05/0.3201, allocations: 128.8 kB / 452.7 MB, free: 29.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.075e-05/0.3202, allocations: 7.344 kB / 452.7 MB, free: 29.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002935/0.3204, allocations: 27.69 kB / 452.7 MB, free: 29.19 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.486e-05/0.3205, allocations: 29.84 kB / 452.7 MB, free: 29.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.646e-05/0.3206, allocations: 12.88 kB / 452.7 MB, free: 29.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000466/0.321, allocations: 342.9 kB / 453.1 MB, free: 29.03 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.321, allocations: 0 / 453.1 MB, free: 29.03 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004072/0.3214, allocations: 106.5 kB / 453.2 MB, free: 29 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.0001449/0.3216, allocations: 117.6 kB / 453.3 MB, free: 28.9 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006381/0.3222, allocations: 348 kB / 453.6 MB, free: 28.79 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.3223, allocations: 4.188 kB / 453.6 MB, free: 28.79 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002137/0.3225, allocations: 159.6 kB / 453.8 MB, free: 28.74 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004421/0.3229, allocations: 62.84 kB / 453.8 MB, free: 28.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001566/0.3245, allocations: 1.011 MB / 454.9 MB, free: 28.1 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004211/0.3249, allocations: 0.8625 MB / 455.7 MB, free: 27.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002699/0.3252, allocations: 63.06 kB / 455.8 MB, free: 27.36 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001386/0.3254, allocations: 39.17 kB / 455.8 MB, free: 27.35 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3254, allocations: 7.875 kB / 455.8 MB, free: 27.34 MB / 350.1 MB Notification: Performance of Templates: time 0.01105/0.3364, allocations: 3.959 MB / 459.8 MB, free: 27.1 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)