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.0009413/0.0009413, allocations: 92.23 kB / 15.36 MB, free: 0.7383 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.006491/0.006491, allocations: 169.4 kB / 16.26 MB, free: 6.613 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.228/1.228, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1741/0.1741, allocations: 22.34 MB / 313.8 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003399/0.0003399, allocations: 8 kB / 382.7 MB, free: 10.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2252/0.2256, allocations: 55.99 MB / 438.7 MB, free: 39.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01): time 0.002117/0.2277, allocations: 2.609 MB / 441.3 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001197/0.2289, allocations: 0.9864 MB / 442.3 MB, free: 36.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001451/0.2291, allocations: 7.781 kB / 442.3 MB, free: 36.67 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003134/0.2294, allocations: 115.1 kB / 442.4 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003599/0.2298, allocations: 159.4 kB / 442.6 MB, free: 36.53 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.0003117/0.2301, allocations: 237.9 kB / 442.8 MB, free: 36.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003965/0.2305, allocations: 0.5777 MB / 443.4 MB, free: 36.13 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002386/0.2308, allocations: 185.5 kB / 443.6 MB, free: 36.04 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001612/0.2309, allocations: 199.5 kB / 443.8 MB, free: 35.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001812/0.2311, allocations: 227 kB / 444 MB, free: 35.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.185e-05/0.2312, allocations: 20.22 kB / 444 MB, free: 35.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001036/0.2313, allocations: 40.69 kB / 444 MB, free: 35.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.314e-05/0.2314, allocations: 116.9 kB / 444.2 MB, free: 35.78 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001262/0.2315, allocations: 233.6 kB / 444.4 MB, free: 35.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003063/0.2318, allocations: 0.4938 MB / 444.9 MB, free: 35.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.2318, allocations: 0 / 444.9 MB, free: 35.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2318, allocations: 0 / 444.9 MB, free: 35.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.131e-06/0.2318, allocations: 0 / 444.9 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.001392/0.2332, allocations: 0.7885 MB / 445.7 MB, free: 34.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.133e-05/0.2333, allocations: 9.438 kB / 445.7 MB, free: 34.88 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.168e-05/0.2333, allocations: 78.88 kB / 445.8 MB, free: 34.82 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.223e-05/0.2334, allocations: 61.5 kB / 445.8 MB, free: 34.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006156/0.234, allocations: 440.3 kB / 446.2 MB, free: 34.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.169e-05/0.2341, allocations: 41.22 kB / 446.3 MB, free: 34.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.002e-05/0.2342, allocations: 45.59 kB / 446.3 MB, free: 34.45 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005924/0.2348, allocations: 416.3 kB / 446.7 MB, free: 34.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.595e-05/0.2348, allocations: 3.234 kB / 446.7 MB, free: 34.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.05e-05/0.2348, allocations: 18.88 kB / 446.8 MB, free: 34.22 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.2348, allocations: 10.69 kB / 446.8 MB, free: 34.22 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005901/0.2354, allocations: 292.4 kB / 447.1 MB, free: 34.12 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.001512/0.237, allocations: 1.717 MB / 448.8 MB, free: 32.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003818/0.2373, allocations: 276.6 kB / 449 MB, free: 32.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002496/0.2376, allocations: 156.7 kB / 449.2 MB, free: 32.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.085e-05/0.2376, allocations: 6.109 kB / 449.2 MB, free: 32.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.419e-05/0.2377, allocations: 38.83 kB / 449.2 MB, free: 32.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.603e-06/0.2377, allocations: 0 / 449.2 MB, free: 32.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.0007686/0.2384, allocations: 401.8 kB / 449.6 MB, free: 32.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.877e-05/0.2385, allocations: 55.84 kB / 449.7 MB, free: 32.35 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005849/0.2391, allocations: 487.4 kB / 450.2 MB, free: 32.13 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.349e-05/0.2391, allocations: 40.58 kB / 450.2 MB, free: 32.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001039/0.2392, allocations: 251 kB / 450.4 MB, free: 31.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.439e-05/0.2393, allocations: 147.4 kB / 450.6 MB, free: 31.76 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.371e-05/0.2393, allocations: 58.48 kB / 450.6 MB, free: 31.72 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.64e-05/0.2394, allocations: 356.8 kB / 451 MB, free: 31.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002365/0.2396, allocations: 123.1 kB / 451.1 MB, free: 31.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002639/0.2399, allocations: 239.7 kB / 451.3 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.001975/0.2419, allocations: 0.9294 MB / 452.3 MB, free: 30.6 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.2419, allocations: 2.562 kB / 452.3 MB, free: 30.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007102/0.2426, allocations: 461 kB / 452.7 MB, free: 30.4 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.257e-05/0.2427, allocations: 5.25 kB / 452.7 MB, free: 30.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.2427, allocations: 6.156 kB / 452.7 MB, free: 30.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.2427, allocations: 5.25 kB / 452.7 MB, free: 30.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004674/0.2432, allocations: 121.4 kB / 452.9 MB, free: 30.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.267e-06/0.2432, allocations: 15.81 kB / 452.9 MB, free: 30.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003828/0.2436, allocations: 72.16 kB / 452.9 MB, free: 30.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.789e-05/0.2436, allocations: 23.73 kB / 453 MB, free: 30.34 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.0002225/0.2438, allocations: 223.8 kB / 453.2 MB, free: 30.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.14e-05/0.2439, allocations: 43.16 kB / 453.2 MB, free: 30.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005412/0.2444, allocations: 373.8 kB / 453.6 MB, free: 29.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.2445, allocations: 6.375 kB / 453.6 MB, free: 29.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.2445, allocations: 0 / 453.6 MB, free: 29.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.2445, allocations: 3.328 kB / 453.6 MB, free: 29.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004316/0.2449, allocations: 469.7 kB / 454.1 MB, free: 29.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.2449, allocations: 2.812 kB / 454.1 MB, free: 29.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004732/0.2454, allocations: 102.4 kB / 454.2 MB, free: 29.65 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.2454, allocations: 0 / 454.2 MB, free: 29.65 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.29e-05/0.2455, allocations: 10.62 kB / 454.2 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.2455, allocations: 2.625 kB / 454.2 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.2455, allocations: 3.469 kB / 454.2 MB, free: 29.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006801/0.2462, allocations: 0.5609 MB / 454.7 MB, free: 29.33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.86e-05/0.2462, allocations: 133 kB / 454.9 MB, free: 29.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.817e-05/0.2463, allocations: 8.188 kB / 454.9 MB, free: 29.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003302/0.2466, allocations: 38.5 kB / 454.9 MB, free: 29.19 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.837e-05/0.2467, allocations: 34.59 kB / 455 MB, free: 29.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.752e-05/0.2467, allocations: 12.12 kB / 455 MB, free: 29.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004672/0.2472, allocations: 342.3 kB / 455.3 MB, free: 29.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2472, allocations: 0 / 455.3 MB, free: 29.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003955/0.2476, allocations: 98.56 kB / 455.4 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.0008293/0.2484, allocations: 1.141 MB / 456.5 MB, free: 28.14 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000566/0.249, allocations: 330.3 kB / 456.9 MB, free: 28.04 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.249, allocations: 3.938 kB / 456.9 MB, free: 28.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002243/0.2493, allocations: 160.2 kB / 457 MB, free: 27.99 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004194/0.2497, allocations: 59.47 kB / 457.1 MB, free: 27.96 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005145/0.2548, allocations: 4.594 MB / 461.7 MB, free: 25.08 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002549/0.2551, allocations: 0.8513 MB / 462.5 MB, free: 24.37 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002126/0.2553, allocations: 65.97 kB / 462.6 MB, free: 24.35 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001998/0.2555, allocations: 172.9 kB / 462.8 MB, free: 24.22 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.2556, allocations: 0 / 462.8 MB, free: 24.22 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.021/0.2766, allocations: 7.611 MB / 470.4 MB, free: 23.8 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001581/0.2767, allocations: 234.6 kB / 470.6 MB, free: 23.54 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.96/2.236, allocations: 2.344 kB / 470.6 MB, free: 23.54 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ThermSys_control_problems_Thermal_zones_control_Thermal_zones_case_01_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 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)