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.001461/0.001461, allocations: 100.1 kB / 15.88 MB, free: 12 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.001531/0.001531, allocations: 196.9 kB / 16.79 MB, free: 6.809 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.301/1.301, allocations: 222.9 MB / 240.5 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1897/0.1897, allocations: 22.34 MB / 313 MB, free: 12.73 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 59.91 kB / 380.8 MB, free: 11.08 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2339/0.2353, allocations: 54.95 MB / 435.7 MB, free: 39.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Thermal_zones_control.Thermal_zones_case_01): time 0.003127/0.2384, allocations: 2.992 MB / 438.7 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001312/0.2398, allocations: 1.008 MB / 439.7 MB, free: 36.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001661/0.2399, allocations: 9.344 kB / 439.7 MB, free: 36.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003674/0.2403, allocations: 108.3 kB / 439.8 MB, free: 36.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003705/0.2407, allocations: 162.8 kB / 440 MB, free: 36.7 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.0003075/0.241, allocations: 238 kB / 440.2 MB, free: 36.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004017/0.2414, allocations: 0.5805 MB / 440.8 MB, free: 36.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002356/0.2417, allocations: 188.2 kB / 441 MB, free: 36.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001619/0.2418, allocations: 209.9 kB / 441.2 MB, free: 36.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000185/0.242, allocations: 251.6 kB / 441.4 MB, free: 35.99 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.37e-05/0.2421, allocations: 29.38 kB / 441.5 MB, free: 35.99 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001266/0.2422, allocations: 61.67 kB / 441.5 MB, free: 35.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001114/0.2424, allocations: 124.3 kB / 441.6 MB, free: 35.92 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000133/0.2425, allocations: 215.5 kB / 441.8 MB, free: 35.78 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002806/0.2428, allocations: 410.9 kB / 442.2 MB, free: 35.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.2428, allocations: 0 / 442.2 MB, free: 35.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.2428, allocations: 0 / 442.2 MB, free: 35.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.2428, allocations: 7.938 kB / 442.3 MB, free: 35.64 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.001558/0.2444, allocations: 0.868 MB / 443.1 MB, free: 35.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.986e-05/0.2444, allocations: 8 kB / 443.1 MB, free: 35.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.505e-05/0.2445, allocations: 62.84 kB / 443.2 MB, free: 34.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005785/0.2451, allocations: 433.3 kB / 443.6 MB, free: 34.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.434e-05/0.2451, allocations: 33.66 kB / 443.6 MB, free: 34.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.406e-05/0.2452, allocations: 53.84 kB / 443.7 MB, free: 34.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006048/0.2458, allocations: 418.6 kB / 444.1 MB, free: 34.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.658e-05/0.2459, allocations: 2.906 kB / 444.1 MB, free: 34.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.084e-05/0.2459, allocations: 14.94 kB / 444.1 MB, free: 34.42 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.2459, allocations: 11.03 kB / 444.1 MB, free: 34.42 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005821/0.2465, allocations: 292.1 kB / 444.4 MB, free: 34.32 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.001585/0.2481, allocations: 1.714 MB / 446.1 MB, free: 33 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003968/0.2485, allocations: 277.6 kB / 446.4 MB, free: 32.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002471/0.2488, allocations: 160 kB / 446.6 MB, free: 32.81 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.496e-05/0.2488, allocations: 6.078 kB / 446.6 MB, free: 32.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.803e-05/0.2488, allocations: 37.14 kB / 446.6 MB, free: 32.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.463e-06/0.2488, allocations: 0 / 446.6 MB, free: 32.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.00081/0.2497, allocations: 402.1 kB / 447 MB, free: 32.61 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.571e-05/0.2497, allocations: 54.44 kB / 447.1 MB, free: 32.54 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006136/0.2503, allocations: 483.5 kB / 447.5 MB, free: 32.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.242e-05/0.2503, allocations: 29.7 kB / 447.6 MB, free: 32.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001101/0.2505, allocations: 254.3 kB / 447.8 MB, free: 32.08 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.178e-05/0.2505, allocations: 153.1 kB / 448 MB, free: 31.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001091/0.2507, allocations: 101.4 kB / 448.1 MB, free: 31.9 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.388e-05/0.2507, allocations: 358.5 kB / 448.4 MB, free: 31.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002659/0.251, allocations: 116.6 kB / 448.5 MB, free: 31.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002728/0.2513, allocations: 244.5 kB / 448.8 MB, free: 31.34 MB / 350.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.001996/0.2533, allocations: 0.9059 MB / 449.7 MB, free: 30.78 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.2533, allocations: 3.938 kB / 449.7 MB, free: 30.78 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0007152/0.254, allocations: 464.6 kB / 450.1 MB, free: 30.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.2541, allocations: 7.875 kB / 450.1 MB, free: 30.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.2541, allocations: 2.625 kB / 450.1 MB, free: 30.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.2541, allocations: 9.125 kB / 450.1 MB, free: 30.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005011/0.2546, allocations: 118.1 kB / 450.3 MB, free: 30.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.16e-05/0.2546, allocations: 11.3 kB / 450.3 MB, free: 30.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003983/0.255, allocations: 68.53 kB / 450.3 MB, free: 30.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.108e-05/0.2551, allocations: 24.56 kB / 450.4 MB, free: 30.52 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.000263/0.2553, allocations: 218.6 kB / 450.6 MB, free: 30.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.236e-05/0.2554, allocations: 43.44 kB / 450.6 MB, free: 30.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005909/0.256, allocations: 376.6 kB / 451 MB, free: 30.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.256, allocations: 6.188 kB / 451 MB, free: 30.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.256, allocations: 0 / 451 MB, free: 30.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.2561, allocations: 4 kB / 451 MB, free: 30.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004505/0.2565, allocations: 474.1 kB / 451.5 MB, free: 29.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.2565, allocations: 0 / 451.5 MB, free: 29.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000502/0.257, allocations: 97.8 kB / 451.5 MB, free: 29.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.257, allocations: 0 / 451.5 MB, free: 29.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.573e-05/0.2571, allocations: 14.84 kB / 451.6 MB, free: 29.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.2571, allocations: 10.75 kB / 451.6 MB, free: 29.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.2571, allocations: 0 / 451.6 MB, free: 29.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006707/0.2578, allocations: 0.563 MB / 452.1 MB, free: 29.51 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.98e-05/0.2578, allocations: 128.5 kB / 452.3 MB, free: 29.38 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.256e-05/0.2579, allocations: 10.91 kB / 452.3 MB, free: 29.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003148/0.2582, allocations: 28.7 kB / 452.3 MB, free: 29.37 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.361e-05/0.2583, allocations: 29.83 kB / 452.3 MB, free: 29.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.823e-05/0.2583, allocations: 12.84 kB / 452.3 MB, free: 29.36 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000462/0.2588, allocations: 334.9 kB / 452.7 MB, free: 29.21 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2588, allocations: 6.844 kB / 452.7 MB, free: 29.21 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003857/0.2592, allocations: 105.4 kB / 452.8 MB, free: 29.18 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.0001411/0.2593, allocations: 121.2 kB / 452.9 MB, free: 29.08 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005247/0.2599, allocations: 331.8 kB / 453.2 MB, free: 28.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.2599, allocations: 4 kB / 453.2 MB, free: 28.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002006/0.2601, allocations: 157 kB / 453.4 MB, free: 28.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004115/0.2605, allocations: 62.09 kB / 453.4 MB, free: 28.9 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001323/0.2618, allocations: 1.233 MB / 454.7 MB, free: 28.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002155/0.2621, allocations: 0.8548 MB / 455.5 MB, free: 27.36 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001406/0.2622, allocations: 42.19 kB / 455.6 MB, free: 27.35 MB / 350.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2622, allocations: 0 / 455.6 MB, free: 27.35 MB / 350.1 MB Notification: Performance of Templates: time 0.007957/0.2702, allocations: 5.439 MB / 461 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)