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.001192/0.001192, 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.001172/0.001172, allocations: 192.4 kB / 16.25 MB, free: 6.641 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.399/1.399, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.217/0.217, allocations: 22.35 MB / 312.4 MB, free: 12.57 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 59.91 kB / 380.3 MB, free: 10.98 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2894/0.2907, allocations: 54.95 MB / 435.2 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.003778/0.2946, allocations: 2.998 MB / 438.2 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001499/0.2961, allocations: 0.9971 MB / 439.2 MB, free: 36.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000191/0.2963, allocations: 13.06 kB / 439.2 MB, free: 36.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004311/0.2968, allocations: 105 kB / 439.3 MB, free: 36.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004451/0.2972, allocations: 169.6 kB / 439.5 MB, free: 36.65 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.000369/0.2976, allocations: 240 kB / 439.7 MB, free: 36.51 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004754/0.2981, allocations: 0.613 MB / 440.4 MB, free: 36.22 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000284/0.2984, allocations: 204 kB / 440.6 MB, free: 36.13 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002283/0.2986, allocations: 238.6 kB / 440.8 MB, free: 36.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002164/0.2988, allocations: 263.8 kB / 441.1 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.975e-05/0.2989, allocations: 49.84 kB / 441.1 MB, free: 35.88 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001298/0.2991, allocations: 76.02 kB / 441.2 MB, free: 35.87 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001151/0.2992, allocations: 146.2 kB / 441.3 MB, free: 35.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000145/0.2993, allocations: 243.4 kB / 441.6 MB, free: 35.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004004/0.2997, allocations: 0.5238 MB / 442.1 MB, free: 35.4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.2997, allocations: 0 / 442.1 MB, free: 35.4 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2998, allocations: 0 / 442.1 MB, free: 35.4 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.326e-06/0.2998, allocations: 0 / 442.1 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.001628/0.3014, allocations: 0.8723 MB / 443 MB, free: 34.78 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.822e-05/0.3014, allocations: 8.625 kB / 443 MB, free: 34.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.386e-05/0.3015, allocations: 60.44 kB / 443 MB, free: 34.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006238/0.3022, allocations: 434.6 kB / 443.4 MB, free: 34.44 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.153e-05/0.3022, allocations: 33.75 kB / 443.5 MB, free: 34.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.251e-05/0.3023, allocations: 52.33 kB / 443.5 MB, free: 34.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006278/0.3029, allocations: 414.1 kB / 443.9 MB, free: 34.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.938e-05/0.303, allocations: 7.141 kB / 443.9 MB, free: 34.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.224e-05/0.303, allocations: 14.88 kB / 444 MB, free: 34.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.065e-05/0.303, allocations: 19.7 kB / 444 MB, free: 34.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005692/0.3036, allocations: 285.8 kB / 444.3 MB, free: 34.08 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.001593/0.3052, allocations: 1.715 MB / 446 MB, free: 32.76 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003898/0.3056, allocations: 266.8 kB / 446.2 MB, free: 32.65 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002518/0.3058, allocations: 161.3 kB / 446.4 MB, free: 32.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.833e-05/0.3059, allocations: 7.25 kB / 446.4 MB, free: 32.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.86e-05/0.3059, allocations: 37.8 kB / 446.4 MB, free: 32.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.623e-06/0.3059, allocations: 4 kB / 446.4 MB, free: 32.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.0008093/0.3067, allocations: 406 kB / 446.8 MB, free: 32.37 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.203e-05/0.3068, allocations: 54.38 kB / 446.9 MB, free: 32.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006092/0.3074, allocations: 479.7 kB / 447.4 MB, free: 32.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.42e-05/0.3074, allocations: 32.39 kB / 447.4 MB, free: 32.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001219/0.3076, allocations: 255 kB / 447.6 MB, free: 31.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.797e-05/0.3076, allocations: 143.6 kB / 447.8 MB, free: 31.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001144/0.3077, allocations: 101.9 kB / 447.9 MB, free: 31.67 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.563e-05/0.3078, allocations: 356.8 kB / 448.2 MB, free: 31.34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002433/0.3081, allocations: 123.1 kB / 448.3 MB, free: 31.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002823/0.3084, allocations: 248.1 kB / 448.6 MB, free: 31.1 MB / 350.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.002043/0.3104, allocations: 0.9073 MB / 449.5 MB, free: 30.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.3105, allocations: 3.938 kB / 449.5 MB, free: 30.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007096/0.3112, allocations: 458.9 kB / 449.9 MB, free: 30.35 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.3112, allocations: 9.562 kB / 450 MB, free: 30.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.3112, allocations: 5.438 kB / 450 MB, free: 30.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/0.3112, allocations: 5.375 kB / 450 MB, free: 30.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005145/0.3118, allocations: 123.4 kB / 450.1 MB, free: 30.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.291e-05/0.3118, allocations: 13.7 kB / 450.1 MB, free: 30.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003848/0.3122, allocations: 69.77 kB / 450.2 MB, free: 30.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.13e-05/0.3122, allocations: 24.17 kB / 450.2 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 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.0002802/0.3125, allocations: 208 kB / 450.4 MB, free: 30.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.712e-05/0.3126, allocations: 45.53 kB / 450.4 MB, free: 30.1 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005678/0.3131, allocations: 379.2 kB / 450.8 MB, free: 29.92 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.64e-06/0.3132, allocations: 3.625 kB / 450.8 MB, free: 29.92 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.3132, allocations: 2.969 kB / 450.8 MB, free: 29.92 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.3132, allocations: 0 / 450.8 MB, free: 29.92 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004482/0.3136, allocations: 467.9 kB / 451.3 MB, free: 29.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.3136, allocations: 4 kB / 451.3 MB, free: 29.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000507/0.3142, allocations: 103.1 kB / 451.4 MB, free: 29.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.948e-06/0.3142, allocations: 0 / 451.4 MB, free: 29.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.791e-05/0.3142, allocations: 14.3 kB / 451.4 MB, free: 29.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.815e-06/0.3142, allocations: 2.375 kB / 451.4 MB, free: 29.59 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3142, allocations: 0 / 451.4 MB, free: 29.59 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000667/0.3149, allocations: 0.5574 MB / 451.9 MB, free: 29.28 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.291e-05/0.315, allocations: 138.6 kB / 452.1 MB, free: 29.15 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.19e-05/0.315, allocations: 8 kB / 452.1 MB, free: 29.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003369/0.3154, allocations: 26.77 kB / 452.1 MB, free: 29.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.339e-05/0.3155, allocations: 28.52 kB / 452.1 MB, free: 29.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.023e-05/0.3155, allocations: 12.64 kB / 452.2 MB, free: 29.13 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004875/0.316, allocations: 340.5 kB / 452.5 MB, free: 28.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.316, allocations: 0 / 452.5 MB, free: 28.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004319/0.3164, allocations: 106 kB / 452.6 MB, free: 28.95 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.0001666/0.3166, allocations: 127.5 kB / 452.7 MB, free: 28.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006534/0.3173, allocations: 357.7 kB / 453.1 MB, free: 28.72 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3173, allocations: 0 / 453.1 MB, free: 28.72 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002138/0.3175, allocations: 158.5 kB / 453.2 MB, free: 28.67 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004598/0.318, allocations: 66.17 kB / 453.3 MB, free: 28.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001491/0.3195, allocations: 1.187 MB / 454.5 MB, free: 27.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002728/0.3198, allocations: 0.8581 MB / 455.3 MB, free: 27.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002296/0.32, allocations: 55.61 kB / 455.4 MB, free: 27.13 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000111/0.3201, allocations: 43.39 kB / 455.4 MB, free: 27.12 MB / 350.1 MB Notification: Performance of SimCode: time 6.31e-07/0.3201, allocations: 0 / 455.4 MB, free: 27.12 MB / 350.1 MB Notification: Performance of Templates: time 0.008568/0.3287, allocations: 3.861 MB / 459.3 MB, free: 26.87 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)