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.0009585/0.0009585, allocations: 92.62 kB / 16.02 MB, free: 80 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.001039/0.001039, allocations: 178.7 kB / 16.92 MB, free: 6.652 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.297/1.297, allocations: 223.3 MB / 241 MB, free: 5.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1926/0.1926, allocations: 22.35 MB / 314.4 MB, free: 13 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002993/0.0002996, allocations: 8 kB / 383.3 MB, free: 10.1 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2438/0.2441, allocations: 55.98 MB / 439.2 MB, free: 39.3 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01): time 0.002361/0.2465, allocations: 2.613 MB / 441.9 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001326/0.2479, allocations: 0.9969 MB / 442.9 MB, free: 36.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001586/0.248, allocations: 9.906 kB / 442.9 MB, free: 36.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003473/0.2484, allocations: 100.2 kB / 443 MB, free: 36.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003612/0.2488, allocations: 166.3 kB / 443.1 MB, free: 36.55 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.0003199/0.2491, allocations: 240.6 kB / 443.4 MB, free: 36.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003981/0.2495, allocations: 0.5749 MB / 443.9 MB, free: 36.15 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002489/0.2498, allocations: 182.7 kB / 444.1 MB, free: 36.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001648/0.2499, allocations: 195.2 kB / 444.3 MB, free: 35.98 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001825/0.2501, allocations: 226.3 kB / 444.5 MB, free: 35.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.25e-05/0.2502, allocations: 21 kB / 444.5 MB, free: 35.87 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001067/0.2503, allocations: 52.83 kB / 444.6 MB, free: 35.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.685e-05/0.2504, allocations: 111.1 kB / 444.7 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001319/0.2505, allocations: 231 kB / 444.9 MB, free: 35.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002779/0.2508, allocations: 393.9 kB / 445.3 MB, free: 35.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.2508, allocations: 0 / 445.3 MB, free: 35.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2508, allocations: 0 / 445.3 MB, free: 35.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.246e-06/0.2508, allocations: 0 / 445.3 MB, free: 35.55 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.001442/0.2523, allocations: 0.7904 MB / 446.1 MB, free: 34.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.971e-05/0.2523, allocations: 12.09 kB / 446.1 MB, free: 34.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.07e-05/0.2524, allocations: 55.53 kB / 446.2 MB, free: 34.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000589/0.253, allocations: 446.5 kB / 446.6 MB, free: 34.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.161e-05/0.2531, allocations: 33.09 kB / 446.6 MB, free: 34.62 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.922e-05/0.2531, allocations: 47.53 kB / 446.7 MB, free: 34.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000599/0.2537, allocations: 424.3 kB / 447.1 MB, free: 34.39 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.604e-05/0.2538, allocations: 0 / 447.1 MB, free: 34.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.284e-05/0.2538, allocations: 18.98 kB / 447.1 MB, free: 34.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.779e-06/0.2538, allocations: 11.5 kB / 447.1 MB, free: 34.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005494/0.2544, allocations: 290 kB / 447.4 MB, free: 34.29 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.001536/0.2559, allocations: 1.717 MB / 449.1 MB, free: 32.97 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003919/0.2563, allocations: 273.6 kB / 449.4 MB, free: 32.85 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002739/0.2566, allocations: 164.7 kB / 449.6 MB, free: 32.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.801e-05/0.2566, allocations: 11.03 kB / 449.6 MB, free: 32.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.046e-05/0.2567, allocations: 38.8 kB / 449.6 MB, free: 32.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 2.054e-06/0.2567, allocations: 0 / 449.6 MB, free: 32.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.0008717/0.2576, allocations: 398.7 kB / 450 MB, free: 32.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.994e-05/0.2576, allocations: 58.38 kB / 450.1 MB, free: 32.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006571/0.2583, allocations: 482.7 kB / 450.5 MB, free: 32.29 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.836e-05/0.2583, allocations: 37.7 kB / 450.6 MB, free: 32.25 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001139/0.2584, allocations: 249.6 kB / 450.8 MB, free: 32.04 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.962e-05/0.2585, allocations: 148.6 kB / 450.9 MB, free: 31.92 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.129e-05/0.2586, allocations: 57.52 kB / 451 MB, free: 31.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.466e-05/0.2586, allocations: 354.9 kB / 451.4 MB, free: 31.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002449/0.2589, allocations: 118.4 kB / 451.5 MB, free: 31.51 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002798/0.2592, allocations: 248.5 kB / 451.7 MB, free: 31.32 MB / 350.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.002019/0.2612, allocations: 0.9296 MB / 452.6 MB, free: 30.76 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.588e-06/0.2612, allocations: 10.72 kB / 452.7 MB, free: 30.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0006932/0.2619, allocations: 458.5 kB / 453.1 MB, free: 30.56 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.2619, allocations: 5.5 kB / 453.1 MB, free: 30.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.262, allocations: 9.281 kB / 453.1 MB, free: 30.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.262, allocations: 5.219 kB / 453.1 MB, free: 30.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000475/0.2625, allocations: 121.7 kB / 453.2 MB, free: 30.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.075e-05/0.2625, allocations: 8.906 kB / 453.2 MB, free: 30.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000373/0.2629, allocations: 74.8 kB / 453.3 MB, free: 30.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.821e-05/0.2629, allocations: 20.34 kB / 453.3 MB, free: 30.5 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 sytem: 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.0002563/0.2632, allocations: 220.8 kB / 453.6 MB, free: 30.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.409e-05/0.2632, allocations: 48.38 kB / 453.6 MB, free: 30.31 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005605/0.2638, allocations: 370.7 kB / 454 MB, free: 30.14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.2638, allocations: 9.25 kB / 454 MB, free: 30.13 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.2638, allocations: 0 / 454 MB, free: 30.13 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/0.2638, allocations: 3.328 kB / 454 MB, free: 30.13 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003979/0.2642, allocations: 472.1 kB / 454.4 MB, free: 29.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.2643, allocations: 0 / 454.4 MB, free: 29.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004655/0.2647, allocations: 97.75 kB / 454.5 MB, free: 29.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.2647, allocations: 2.625 kB / 454.5 MB, free: 29.81 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.475e-05/0.2648, allocations: 6.625 kB / 454.5 MB, free: 29.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.2648, allocations: 3.938 kB / 454.5 MB, free: 29.8 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.2648, allocations: 2.625 kB / 454.5 MB, free: 29.8 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006613/0.2654, allocations: 0.5678 MB / 455.1 MB, free: 29.49 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.01e-05/0.2655, allocations: 128.8 kB / 455.2 MB, free: 29.36 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.895e-05/0.2656, allocations: 10.62 kB / 455.3 MB, free: 29.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003233/0.2659, allocations: 43.2 kB / 455.3 MB, free: 29.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.152e-05/0.266, allocations: 23.3 kB / 455.3 MB, free: 29.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.741e-05/0.266, allocations: 12 kB / 455.3 MB, free: 29.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004695/0.2665, allocations: 345.4 kB / 455.7 MB, free: 29.18 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2665, allocations: 0 / 455.7 MB, free: 29.18 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003964/0.2669, allocations: 100.3 kB / 455.8 MB, free: 29.16 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.0001348/0.267, allocations: 124.4 kB / 455.9 MB, free: 29.06 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005102/0.2676, allocations: 335.5 kB / 456.2 MB, free: 28.96 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.2676, allocations: 192 / 456.2 MB, free: 28.96 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002009/0.2678, allocations: 156.4 kB / 456.4 MB, free: 28.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004367/0.2682, allocations: 70.64 kB / 456.4 MB, free: 28.88 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001306/0.2695, allocations: 1.3 MB / 457.7 MB, free: 28.04 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002433/0.2698, allocations: 0.8556 MB / 458.6 MB, free: 27.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001276/0.2699, allocations: 41.78 kB / 458.6 MB, free: 27.32 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2699, allocations: 0 / 458.6 MB, free: 27.32 MB / 350.1 MB Notification: Performance of Templates: time 0.007981/0.2779, allocations: 5.394 MB / 464 MB, free: 26.88 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)