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.001152/0.001152, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001099/0.001099, allocations: 194.5 kB / 16.25 MB, free: 6.633 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.17/1.17, allocations: 222.9 MB / 239.9 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1762/0.1762, allocations: 22.36 MB / 312.4 MB, free: 12.62 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 63.89 kB / 380.4 MB, free: 10.87 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2073/0.2086, allocations: 54.95 MB / 435.4 MB, free: 39.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01): time 0.00277/0.2114, allocations: 3.007 MB / 438.4 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001094/0.2125, allocations: 0.9856 MB / 439.4 MB, free: 36.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001412/0.2127, allocations: 11.84 kB / 439.4 MB, free: 36.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003306/0.213, allocations: 107.3 kB / 439.5 MB, free: 36.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003589/0.2134, allocations: 168.2 kB / 439.6 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.0002849/0.2137, allocations: 241.9 kB / 439.9 MB, free: 36.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003692/0.2141, allocations: 0.6008 MB / 440.5 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002352/0.2143, allocations: 211.2 kB / 440.7 MB, free: 36.13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001661/0.2145, allocations: 241 kB / 440.9 MB, free: 36.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001744/0.2146, allocations: 266 kB / 441.2 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.075e-05/0.2147, allocations: 46.28 kB / 441.2 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001077/0.2148, allocations: 81.31 kB / 441.3 MB, free: 35.87 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.328e-05/0.2149, allocations: 141.9 kB / 441.4 MB, free: 35.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001201/0.215, allocations: 242.7 kB / 441.7 MB, free: 35.63 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003038/0.2154, allocations: 0.5274 MB / 442.2 MB, free: 35.4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.2154, allocations: 0 / 442.2 MB, free: 35.4 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2154, allocations: 0 / 442.2 MB, free: 35.4 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.822e-06/0.2154, allocations: 2.875 kB / 442.2 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.00132/0.2167, allocations: 0.8663 MB / 443.1 MB, free: 34.78 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.848e-05/0.2167, allocations: 11.16 kB / 443.1 MB, free: 34.78 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.523e-05/0.2168, allocations: 76.62 kB / 443.2 MB, free: 34.72 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.21e-05/0.2169, allocations: 66.81 kB / 443.2 MB, free: 34.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005185/0.2174, allocations: 435.2 kB / 443.6 MB, free: 34.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.64e-05/0.2174, allocations: 36.41 kB / 443.7 MB, free: 34.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.854e-05/0.2175, allocations: 46.06 kB / 443.7 MB, free: 34.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005526/0.2181, allocations: 413.2 kB / 444.1 MB, free: 34.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.2181, allocations: 7.75 kB / 444.1 MB, free: 34.13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.837e-05/0.2181, allocations: 18.84 kB / 444.2 MB, free: 34.12 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.016e-06/0.2181, allocations: 8.688 kB / 444.2 MB, free: 34.12 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005021/0.2186, allocations: 296.8 kB / 444.5 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.001328/0.22, allocations: 1.706 MB / 446.2 MB, free: 32.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000345/0.2203, allocations: 279.4 kB / 446.4 MB, free: 32.58 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002254/0.2206, allocations: 160.5 kB / 446.6 MB, free: 32.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.2e-05/0.2206, allocations: 3.359 kB / 446.6 MB, free: 32.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.392e-05/0.2206, allocations: 41.64 kB / 446.6 MB, free: 32.47 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.392e-06/0.2206, allocations: 0 / 446.6 MB, free: 32.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.0007007/0.2213, allocations: 408.1 kB / 447 MB, free: 32.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.202e-05/0.2214, allocations: 57.28 kB / 447.1 MB, free: 32.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005253/0.2219, allocations: 477.8 kB / 447.6 MB, free: 32.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.129e-05/0.2219, allocations: 36.48 kB / 447.6 MB, free: 31.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.036e-05/0.222, allocations: 254.5 kB / 447.8 MB, free: 31.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.569e-05/0.2221, allocations: 143.8 kB / 448 MB, free: 31.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.218e-05/0.2222, allocations: 99.03 kB / 448.1 MB, free: 31.6 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.379e-05/0.2222, allocations: 355 kB / 448.4 MB, free: 31.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002143/0.2225, allocations: 112.8 kB / 448.5 MB, free: 31.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002461/0.2227, allocations: 249.8 kB / 448.8 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.001751/0.2245, allocations: 0.9105 MB / 449.7 MB, free: 30.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.2245, allocations: 0 / 449.7 MB, free: 30.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0006044/0.2251, allocations: 460.6 kB / 450.1 MB, free: 30.28 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/0.2251, allocations: 12.73 kB / 450.2 MB, free: 30.28 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.2251, allocations: 5.25 kB / 450.2 MB, free: 30.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.236e-05/0.2251, allocations: 9.25 kB / 450.2 MB, free: 30.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004458/0.2256, allocations: 118.5 kB / 450.3 MB, free: 30.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.697e-06/0.2256, allocations: 7.875 kB / 450.3 MB, free: 30.27 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003299/0.2259, allocations: 69.86 kB / 450.4 MB, free: 30.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.467e-05/0.226, allocations: 26.84 kB / 450.4 MB, free: 30.22 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 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.0001981/0.2262, allocations: 212.2 kB / 450.6 MB, free: 30.06 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.851e-05/0.2262, allocations: 52.47 kB / 450.6 MB, free: 30.03 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004898/0.2267, allocations: 370.9 kB / 451 MB, free: 29.86 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.908e-06/0.2267, allocations: 3.5 kB / 451 MB, free: 29.86 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.2268, allocations: 0 / 451 MB, free: 29.86 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.2268, allocations: 7.109 kB / 451 MB, free: 29.86 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003436/0.2271, allocations: 470.5 kB / 451.5 MB, free: 29.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.2271, allocations: 0 / 451.5 MB, free: 29.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004494/0.2276, allocations: 100.4 kB / 451.6 MB, free: 29.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.2276, allocations: 3.938 kB / 451.6 MB, free: 29.53 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.373e-05/0.2276, allocations: 14.66 kB / 451.6 MB, free: 29.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.2276, allocations: 2.719 kB / 451.6 MB, free: 29.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2276, allocations: 0 / 451.6 MB, free: 29.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000586/0.2282, allocations: 0.5616 MB / 452.2 MB, free: 29.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.143e-05/0.2283, allocations: 132.9 kB / 452.3 MB, free: 29.08 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.684e-05/0.2283, allocations: 8 kB / 452.3 MB, free: 29.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003056/0.2287, allocations: 31.09 kB / 452.3 MB, free: 29.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.457e-05/0.2287, allocations: 27.58 kB / 452.4 MB, free: 29.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.643e-05/0.2287, allocations: 14.77 kB / 452.4 MB, free: 29.06 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004178/0.2292, allocations: 339.4 kB / 452.7 MB, free: 28.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2292, allocations: 0 / 452.7 MB, free: 28.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003423/0.2295, allocations: 107.8 kB / 452.8 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.0007409/0.2303, allocations: 1.132 MB / 453.9 MB, free: 28.02 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005699/0.2308, allocations: 353.6 kB / 454.3 MB, free: 27.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.392e-06/0.2309, allocations: 2.938 kB / 454.3 MB, free: 27.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001806/0.231, allocations: 159 kB / 454.4 MB, free: 27.86 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003646/0.2314, allocations: 56.42 kB / 454.5 MB, free: 27.83 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004611/0.236, allocations: 4.52 MB / 459 MB, free: 24.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002118/0.2363, allocations: 0.8676 MB / 459.9 MB, free: 24.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001982/0.2365, allocations: 56.48 kB / 459.9 MB, free: 24.21 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001753/0.2366, allocations: 173.5 kB / 460.1 MB, free: 24.09 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2366, allocations: 1.312 kB / 460.1 MB, free: 24.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.228/1.465, allocations: 7.904 MB / 468 MB, free: 23.56 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001566/1.465, allocations: 237.9 kB / 468.2 MB, free: 23.3 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.67/3.135, allocations: 0 / 468.2 MB, free: 23.3 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)