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.0008898/0.0008898, allocations: 91.77 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.006703/0.006703, allocations: 170.6 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.24/1.24, allocations: 223.3 MB / 240.3 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1774/0.1774, allocations: 22.35 MB / 313.8 MB, free: 13.07 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002634/0.0002634, allocations: 8 kB / 382.6 MB, free: 10.12 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2062/0.2064, allocations: 55.98 MB / 438.6 MB, free: 39.17 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01): time 0.002004/0.2085, allocations: 2.61 MB / 441.2 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001166/0.2097, allocations: 0.9981 MB / 442.2 MB, free: 36.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001379/0.2098, allocations: 11.62 kB / 442.2 MB, free: 36.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000307/0.2101, allocations: 105.6 kB / 442.3 MB, free: 36.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003657/0.2105, allocations: 165.6 kB / 442.5 MB, free: 36.41 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.0003034/0.2108, allocations: 228.7 kB / 442.7 MB, free: 36.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000382/0.2112, allocations: 0.5793 MB / 443.3 MB, free: 36.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002311/0.2114, allocations: 190.9 kB / 443.5 MB, free: 35.92 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001551/0.2116, allocations: 194 kB / 443.6 MB, free: 35.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001758/0.2118, allocations: 225.5 kB / 443.9 MB, free: 35.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.178e-05/0.2118, allocations: 20.31 kB / 443.9 MB, free: 35.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001044/0.2119, allocations: 49.91 kB / 443.9 MB, free: 35.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.278e-05/0.212, allocations: 106.3 kB / 444 MB, free: 35.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001242/0.2122, allocations: 232.3 kB / 444.3 MB, free: 35.51 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002968/0.2125, allocations: 0.4969 MB / 444.8 MB, free: 35.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.2125, allocations: 0 / 444.8 MB, free: 35.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2125, allocations: 4 kB / 444.8 MB, free: 35.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.2125, allocations: 0 / 444.8 MB, free: 35.34 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.001371/0.2139, allocations: 0.7803 MB / 445.5 MB, free: 34.77 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.664e-05/0.2139, allocations: 10.19 kB / 445.6 MB, free: 34.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.578e-05/0.214, allocations: 60.16 kB / 445.6 MB, free: 34.74 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005663/0.2146, allocations: 442.2 kB / 446 MB, free: 34.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.035e-05/0.2146, allocations: 41.03 kB / 446.1 MB, free: 34.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.693e-05/0.2147, allocations: 52.72 kB / 446.1 MB, free: 34.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005859/0.2153, allocations: 412.7 kB / 446.5 MB, free: 34.19 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.525e-05/0.2153, allocations: 0 / 446.5 MB, free: 34.19 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.254e-05/0.2153, allocations: 19 kB / 446.6 MB, free: 34.17 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.427e-06/0.2153, allocations: 15.25 kB / 446.6 MB, free: 34.17 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005529/0.2159, allocations: 291.7 kB / 446.9 MB, free: 34.07 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.001455/0.2174, allocations: 1.719 MB / 448.6 MB, free: 32.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003752/0.2178, allocations: 278.6 kB / 448.9 MB, free: 32.63 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002543/0.218, allocations: 157.7 kB / 449 MB, free: 32.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.946e-05/0.2181, allocations: 2.984 kB / 449 MB, free: 32.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.459e-05/0.2181, allocations: 41.61 kB / 449 MB, free: 32.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.383e-06/0.2181, allocations: 0 / 449 MB, free: 32.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.0007534/0.2188, allocations: 403.8 kB / 449.4 MB, free: 32.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.063e-05/0.2189, allocations: 54.25 kB / 449.5 MB, free: 32.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005877/0.2195, allocations: 486.5 kB / 450 MB, free: 32.08 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.174e-05/0.2195, allocations: 35.8 kB / 450 MB, free: 32.04 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.975e-05/0.2196, allocations: 251.2 kB / 450.3 MB, free: 31.83 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.296e-05/0.2197, allocations: 153.4 kB / 450.4 MB, free: 31.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.272e-05/0.2197, allocations: 56.58 kB / 450.5 MB, free: 31.67 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.343e-05/0.2198, allocations: 357.2 kB / 450.8 MB, free: 31.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002372/0.22, allocations: 117.1 kB / 450.9 MB, free: 31.3 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002638/0.2203, allocations: 243.9 kB / 451.2 MB, free: 31.11 MB / 350.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.001944/0.2223, allocations: 0.9306 MB / 452.1 MB, free: 30.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.2223, allocations: 7.125 kB / 452.1 MB, free: 30.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0006738/0.223, allocations: 460.7 kB / 452.5 MB, free: 30.35 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.183e-05/0.223, allocations: 6.094 kB / 452.6 MB, free: 30.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.223, allocations: 5.344 kB / 452.6 MB, free: 30.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.223, allocations: 5.906 kB / 452.6 MB, free: 30.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004674/0.2235, allocations: 126.7 kB / 452.7 MB, free: 30.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.288e-06/0.2235, allocations: 6.406 kB / 452.7 MB, free: 30.33 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003652/0.2239, allocations: 72.28 kB / 452.8 MB, free: 30.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.739e-05/0.2239, allocations: 28.66 kB / 452.8 MB, free: 30.29 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.000215/0.2241, allocations: 223.4 kB / 453 MB, free: 30.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.093e-05/0.2242, allocations: 47.97 kB / 453.1 MB, free: 30.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000534/0.2247, allocations: 373.6 kB / 453.4 MB, free: 29.92 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.2248, allocations: 3.094 kB / 453.4 MB, free: 29.92 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.798e-06/0.2248, allocations: 0 / 453.4 MB, free: 29.92 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.2248, allocations: 3.141 kB / 453.4 MB, free: 29.92 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003736/0.2252, allocations: 471.2 kB / 453.9 MB, free: 29.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.2252, allocations: 0 / 453.9 MB, free: 29.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004742/0.2256, allocations: 104.2 kB / 454 MB, free: 29.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.564e-06/0.2257, allocations: 0 / 454 MB, free: 29.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.423e-05/0.2257, allocations: 14.09 kB / 454 MB, free: 29.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.2257, allocations: 2.625 kB / 454 MB, free: 29.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.2257, allocations: 0 / 454 MB, free: 29.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006319/0.2263, allocations: 0.5616 MB / 454.6 MB, free: 29.28 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.415e-05/0.2264, allocations: 130.1 kB / 454.7 MB, free: 29.15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.73e-05/0.2265, allocations: 10.62 kB / 454.7 MB, free: 29.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003282/0.2268, allocations: 46.17 kB / 454.7 MB, free: 29.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.307e-05/0.2269, allocations: 23.39 kB / 454.8 MB, free: 29.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.699e-05/0.2269, allocations: 10.69 kB / 454.8 MB, free: 29.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004585/0.2273, allocations: 345.4 kB / 455.1 MB, free: 28.97 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2274, allocations: 192 / 455.1 MB, free: 28.97 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003647/0.2277, allocations: 107.6 kB / 455.2 MB, free: 28.94 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.000107/0.2278, allocations: 119.2 kB / 455.3 MB, free: 28.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005036/0.2283, allocations: 330.9 kB / 455.7 MB, free: 28.74 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.2284, allocations: 4.125 kB / 455.7 MB, free: 28.74 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002003/0.2286, allocations: 159.1 kB / 455.8 MB, free: 28.69 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000407/0.229, allocations: 66.81 kB / 455.9 MB, free: 28.66 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001164/0.2302, allocations: 1.255 MB / 457.1 MB, free: 27.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002265/0.2304, allocations: 0.8531 MB / 458 MB, free: 27.15 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001989/0.2306, allocations: 60.05 kB / 458.1 MB, free: 27.13 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001027/0.2307, allocations: 42 kB / 458.1 MB, free: 27.12 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.2307, allocations: 0 / 458.1 MB, free: 27.12 MB / 350.1 MB Notification: Performance of Templates: time 0.006938/0.2377, allocations: 3.658 MB / 461.8 MB, free: 26.9 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)