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: "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Thermal_zones_control_Thermal_zones_case_01",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01,fileNamePrefix="AES_AES_Coursework_ThermSys_control_problems_Thermal_zones_control_Thermal_zones_case_01",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001115/0.001118, 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.001154/0.001154, allocations: 194.2 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.36/1.36, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2052/0.2052, allocations: 22.35 MB / 312.7 MB, free: 12.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002169/0.00217, allocations: 67.89 kB / 381 MB, free: 10.43 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2826/0.2848, allocations: 54.93 MB / 435.9 MB, free: 39.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01): time 0.003488/0.2884, allocations: 2.969 MB / 438.9 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001552/0.2899, allocations: 1.007 MB / 439.9 MB, free: 36.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001985/0.2902, allocations: 15.53 kB / 439.9 MB, free: 36.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004275/0.2906, allocations: 126.9 kB / 440 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004248/0.291, allocations: 184.9 kB / 440.2 MB, free: 36.66 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.0003525/0.2914, allocations: 276.6 kB / 440.4 MB, free: 36.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004168/0.2918, allocations: 0.5996 MB / 441 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002503/0.2921, allocations: 212.1 kB / 441.3 MB, free: 36.13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001866/0.2923, allocations: 243.2 kB / 441.5 MB, free: 36.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002027/0.2925, allocations: 255.7 kB / 441.7 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.161e-05/0.2926, allocations: 47.97 kB / 441.8 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001273/0.2927, allocations: 76.66 kB / 441.9 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001078/0.2928, allocations: 145 kB / 442 MB, free: 35.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001403/0.293, allocations: 246.6 kB / 442.2 MB, free: 35.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003538/0.2933, allocations: 0.5246 MB / 442.8 MB, free: 35.4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.2933, allocations: 0 / 442.8 MB, free: 35.4 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2933, allocations: 0 / 442.8 MB, free: 35.4 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.2934, allocations: 0 / 442.8 MB, free: 35.4 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.001528/0.2949, allocations: 0.8691 MB / 443.6 MB, free: 34.78 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.2949, allocations: 8.688 kB / 443.6 MB, free: 34.78 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.221e-05/0.295, allocations: 78.09 kB / 443.7 MB, free: 34.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.426e-05/0.2951, allocations: 61.03 kB / 443.8 MB, free: 34.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005839/0.2957, allocations: 443.4 kB / 444.2 MB, free: 34.36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.038e-05/0.2957, allocations: 35.78 kB / 444.3 MB, free: 34.35 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.52e-05/0.2958, allocations: 41.25 kB / 444.3 MB, free: 34.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005788/0.2964, allocations: 424.4 kB / 444.7 MB, free: 34.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.69e-05/0.2964, allocations: 3.938 kB / 444.7 MB, free: 34.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.078e-05/0.2964, allocations: 18.88 kB / 444.7 MB, free: 34.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.2964, allocations: 8.969 kB / 444.7 MB, free: 34.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005429/0.297, allocations: 290.1 kB / 445 MB, free: 34.02 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.001519/0.2985, allocations: 1.711 MB / 446.7 MB, free: 32.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003851/0.2989, allocations: 271.2 kB / 447 MB, free: 32.58 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002557/0.2992, allocations: 168 kB / 447.2 MB, free: 32.51 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.513e-05/0.2992, allocations: 6.047 kB / 447.2 MB, free: 32.51 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.793e-05/0.2993, allocations: 41.55 kB / 447.2 MB, free: 32.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.803e-06/0.2993, allocations: 0 / 447.2 MB, free: 32.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.0007704/0.3, allocations: 401.8 kB / 447.6 MB, free: 32.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.469e-05/0.3001, allocations: 57.34 kB / 447.7 MB, free: 32.24 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005674/0.3006, allocations: 477.3 kB / 448.1 MB, free: 32.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.211e-05/0.3007, allocations: 36.58 kB / 448.2 MB, free: 31.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001068/0.3008, allocations: 248.8 kB / 448.4 MB, free: 31.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.377e-05/0.3009, allocations: 152.6 kB / 448.6 MB, free: 31.65 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001023/0.301, allocations: 100.6 kB / 448.6 MB, free: 31.6 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.218e-05/0.301, allocations: 354.8 kB / 449 MB, free: 31.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002284/0.3013, allocations: 113 kB / 449.1 MB, free: 31.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002609/0.3015, allocations: 248.1 kB / 449.3 MB, free: 31.04 MB / 350.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.001896/0.3035, allocations: 0.9109 MB / 450.3 MB, free: 30.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-06/0.3035, allocations: 4 kB / 450.3 MB, free: 30.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0006728/0.3041, allocations: 461.6 kB / 450.7 MB, free: 30.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.3042, allocations: 7.875 kB / 450.7 MB, free: 30.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.3042, allocations: 3.469 kB / 450.7 MB, free: 30.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.3042, allocations: 6.031 kB / 450.7 MB, free: 30.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004587/0.3047, allocations: 123.4 kB / 450.9 MB, free: 30.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.3047, allocations: 13.62 kB / 450.9 MB, free: 30.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000334/0.305, allocations: 71.56 kB / 450.9 MB, free: 30.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.902e-05/0.3051, allocations: 19.75 kB / 451 MB, free: 30.21 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.0002259/0.3053, allocations: 204.1 kB / 451.2 MB, free: 30.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.486e-05/0.3054, allocations: 43.25 kB / 451.2 MB, free: 30.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005339/0.3059, allocations: 367.8 kB / 451.6 MB, free: 29.85 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.199e-06/0.3059, allocations: 5.312 kB / 451.6 MB, free: 29.85 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.3059, allocations: 0 / 451.6 MB, free: 29.85 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.3059, allocations: 7.094 kB / 451.6 MB, free: 29.85 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003956/0.3063, allocations: 471.3 kB / 452 MB, free: 29.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.3064, allocations: 0 / 452 MB, free: 29.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004564/0.3068, allocations: 101.3 kB / 452.1 MB, free: 29.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.807e-06/0.3068, allocations: 3.375 kB / 452.1 MB, free: 29.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.431e-05/0.3069, allocations: 14.94 kB / 452.1 MB, free: 29.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.3069, allocations: 0 / 452.1 MB, free: 29.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.3069, allocations: 0 / 452.1 MB, free: 29.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000629/0.3075, allocations: 0.5618 MB / 452.7 MB, free: 29.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.791e-05/0.3076, allocations: 131.8 kB / 452.8 MB, free: 29.08 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.965e-05/0.3076, allocations: 6.719 kB / 452.8 MB, free: 29.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003003/0.3079, allocations: 23 kB / 452.9 MB, free: 29.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.093e-05/0.308, allocations: 31.31 kB / 452.9 MB, free: 29.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.705e-05/0.308, allocations: 17.2 kB / 452.9 MB, free: 29.06 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004547/0.3085, allocations: 333.3 kB / 453.2 MB, free: 28.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.022e-06/0.3085, allocations: 96 / 453.2 MB, free: 28.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003955/0.3089, allocations: 114.1 kB / 453.3 MB, free: 28.88 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.0008639/0.3098, allocations: 1.119 MB / 454.5 MB, free: 28.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006769/0.3105, allocations: 353.7 kB / 454.8 MB, free: 27.92 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3105, allocations: 0 / 454.8 MB, free: 27.92 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000225/0.3107, allocations: 161.2 kB / 455 MB, free: 27.87 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004321/0.3112, allocations: 71.66 kB / 455 MB, free: 27.83 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005264/0.3164, allocations: 4.351 MB / 459.4 MB, free: 25.13 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002974/0.3168, allocations: 0.8629 MB / 460.3 MB, free: 24.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002295/0.317, allocations: 57.88 kB / 460.3 MB, free: 24.4 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001951/0.3172, allocations: 172 kB / 460.5 MB, free: 24.27 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3172, allocations: 0 / 460.5 MB, free: 24.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03061/0.3478, allocations: 8.095 MB / 468.6 MB, free: 23.62 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.632/7.98, allocations: 13.77 kB / 468.6 MB, free: 23.61 MB / 350.1 MB (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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01_res.csv --start-time 0 --stop-time 7200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1 AES_AES_Coursework_ThermSys_control_problems_Thermal_zones_control_Thermal_zones_case_01.fmu > AES_AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01.pipe 2>&1)