Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Decoupling.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.Typical_control_structures.Decoupling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Decoupling") translateModel(AES.Coursework.Typical_control_structures.Decoupling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Decoupling") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 106.1 kB / 15.99 MB, free: 6.348 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.001213/0.001213, allocations: 189.2 kB / 16.91 MB, free: 6.188 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.209/1.209, allocations: 222.9 MB / 240.6 MB, free: 15.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08491/0.08491, allocations: 22.32 MB / 313.1 MB, free: 9.113 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00116/0.00116, allocations: 62.77 kB / 380.9 MB, free: 41.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07821/0.07938, allocations: 54.96 MB / 435.9 MB, free: 13.47 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.003008/0.08241, allocations: 2.019 MB / 437.9 MB, free: 11.45 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002329/0.08476, allocations: 1.798 MB / 439.7 MB, free: 9.629 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001602/0.08494, allocations: 7.938 kB / 439.7 MB, free: 9.621 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000399/0.08535, allocations: 135.2 kB / 439.8 MB, free: 9.488 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004714/0.08584, allocations: 195.2 kB / 440 MB, free: 9.297 MB / 318.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.0004717/0.08633, allocations: 347.6 kB / 440.4 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008546/0.08719, allocations: 1.066 MB / 441.4 MB, free: 7.891 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002241/0.08742, allocations: 157.6 kB / 441.6 MB, free: 7.738 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003605/0.08779, allocations: 418.5 kB / 442 MB, free: 7.328 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004036/0.0882, allocations: 418.2 kB / 442.4 MB, free: 6.918 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.046e-05/0.08829, allocations: 64 kB / 442.5 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001434/0.08844, allocations: 99.91 kB / 442.6 MB, free: 6.758 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002017/0.08865, allocations: 231.4 kB / 442.8 MB, free: 6.531 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002224/0.08887, allocations: 306.1 kB / 443.1 MB, free: 6.23 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000437/0.08932, allocations: 0.5499 MB / 443.6 MB, free: 5.68 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.08933, allocations: 0 / 443.6 MB, free: 5.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.08934, allocations: 0 / 443.6 MB, free: 5.68 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.08935, allocations: 0 / 443.6 MB, free: 5.68 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.002792/0.09214, allocations: 1.231 MB / 444.9 MB, free: 4.395 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/0.09219, allocations: 12.03 kB / 444.9 MB, free: 4.383 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001128/0.09231, allocations: 76.03 kB / 444.9 MB, free: 4.309 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00145/0.09376, allocations: 0.7219 MB / 445.7 MB, free: 3.543 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.121e-05/0.0938, allocations: 29.38 kB / 445.7 MB, free: 3.516 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.538e-05/0.09387, allocations: 48.28 kB / 445.7 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006522/0.09453, allocations: 452.9 kB / 446.2 MB, free: 3.008 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.174e-05/0.09455, allocations: 0 / 446.2 MB, free: 3.008 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.426e-05/0.09459, allocations: 16 kB / 446.2 MB, free: 2.992 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.256e-06/0.09461, allocations: 12 kB / 446.2 MB, free: 2.98 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006646/0.09527, allocations: 423.7 kB / 446.6 MB, free: 2.566 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00203/0.09731, allocations: 1.629 MB / 448.3 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006429/0.09797, allocations: 482.4 kB / 448.7 MB, free: 400 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002893/0.09827, allocations: 197.5 kB / 448.9 MB, free: 200 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.98e-05/0.09832, allocations: 8 kB / 448.9 MB, free: 192 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.979e-05/0.09835, allocations: 38.56 kB / 449 MB, free: 144 kB / 318.1 MB Notification: Performance of pre-optimization done (n=44): time 1.393e-06/0.09836, allocations: 0 / 449 MB, free: 144 kB / 318.1 MB Notification: Performance of matching and sorting (n=44): time 0.001018/0.09938, allocations: 0.6301 MB / 449.6 MB, free: 15.5 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.258e-05/0.09943, allocations: 55.41 kB / 449.7 MB, free: 15.44 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001626/0.1011, allocations: 0.8825 MB / 450.5 MB, free: 14.54 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.761e-05/0.1011, allocations: 33.7 kB / 450.6 MB, free: 14.5 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002031/0.1013, allocations: 300.3 kB / 450.9 MB, free: 14.2 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001183/0.1014, allocations: 153.8 kB / 451 MB, free: 14.05 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001829/0.1016, allocations: 146.5 kB / 451.2 MB, free: 13.9 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.1018, allocations: 378.7 kB / 451.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006311/0.1024, allocations: 297.8 kB / 451.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007217/0.1032, allocations: 409.6 kB / 452.2 MB, free: 12.79 MB / 334.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.004397/0.1076, allocations: 1.675 MB / 453.9 MB, free: 11.04 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.1076, allocations: 4 kB / 453.9 MB, free: 11.04 MB / 334.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001496/0.1091, allocations: 0.828 MB / 454.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.1091, allocations: 7.984 kB / 454.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.367e-05/0.1091, allocations: 4 kB / 454.7 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.1092, allocations: 8 kB / 454.7 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000843/0.11, allocations: 204.1 kB / 454.9 MB, free: 9.984 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.167e-05/0.11, allocations: 4 kB / 454.9 MB, free: 9.98 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008753/0.1109, allocations: 175.3 kB / 455.1 MB, free: 9.809 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.535e-05/0.111, allocations: 31.94 kB / 455.1 MB, free: 9.777 MB / 334.1 MB Warning: Assuming fixed start value for the following 2 variables: C2.xfb:VARIABLE(fixed = true ) type: Real C1.xfb:VARIABLE(fixed = true ) 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: 13 * 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 (86): * Single equations (assignments): 86 * 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.0002844/0.1112, allocations: 245.3 kB / 455.4 MB, free: 9.531 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.945e-05/0.1114, allocations: 67.16 kB / 455.4 MB, free: 9.465 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008174/0.1122, allocations: 0.5305 MB / 456 MB, free: 8.922 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.1122, allocations: 4 kB / 456 MB, free: 8.918 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.418e-06/0.1122, allocations: 11.98 kB / 456 MB, free: 8.906 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.1122, allocations: 3.938 kB / 456 MB, free: 8.902 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005991/0.1128, allocations: 0.5945 MB / 456.6 MB, free: 8.258 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.1128, allocations: 0 / 456.6 MB, free: 8.258 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005253/0.1134, allocations: 95.83 kB / 456.7 MB, free: 8.164 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.1134, allocations: 4 kB / 456.7 MB, free: 8.16 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.075e-05/0.1134, allocations: 19.98 kB / 456.7 MB, free: 8.141 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.1134, allocations: 0 / 456.7 MB, free: 8.141 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.1134, allocations: 0 / 456.7 MB, free: 8.141 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001046/0.1145, allocations: 0.8291 MB / 457.5 MB, free: 7.293 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001298/0.1146, allocations: 148.3 kB / 457.7 MB, free: 7.129 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.56e-05/0.1147, allocations: 19.98 kB / 457.7 MB, free: 7.109 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000639/0.1154, allocations: 87.88 kB / 457.8 MB, free: 7.023 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.428e-05/0.1154, allocations: 31.66 kB / 457.8 MB, free: 6.992 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.417e-05/0.1155, allocations: 19.98 kB / 457.8 MB, free: 6.973 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001339/0.1168, allocations: 0.6511 MB / 458.5 MB, free: 6.328 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1168, allocations: 0 / 458.5 MB, free: 6.328 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000413/0.1173, allocations: 123.8 kB / 458.6 MB, free: 6.207 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 14 (P.P11.x_scaled[1],P.P12.x_scaled[1],P.P21.x_scaled[1],P.P22.x_scaled[1],D.D12.x_scaled[1],D.D21.x_scaled[1],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 (46): * Single equations (assignments): 46 * 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.0001534/0.1174, allocations: 127.9 kB / 458.7 MB, free: 6.074 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001212/0.1186, allocations: 0.6367 MB / 459.4 MB, free: 5.438 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.1186, allocations: 0 / 459.4 MB, free: 5.438 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003252/0.119, allocations: 239.7 kB / 459.6 MB, free: 5.203 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005148/0.1195, allocations: 86.48 kB / 459.7 MB, free: 5.121 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001819/0.1213, allocations: 1.548 MB / 461.2 MB, free: 3.539 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004439/0.1218, allocations: 0.9566 MB / 462.2 MB, free: 2.555 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000181/0.122, allocations: 51.44 kB / 462.2 MB, free: 2.504 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.122, allocations: 0 / 462.2 MB, free: 2.504 MB / 334.1 MB Notification: Performance of Templates: time 0.01028/0.1323, allocations: 8.126 MB / 470.4 MB, free: 10.37 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.Decoupling.makefile (rm -f AES_AES.Coursework.Typical_control_structures.Decoupling.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Decoupling.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Decoupling.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Decoupling.sim & ./AES_AES.Coursework.Typical_control_structures.Decoupling -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Decoupling.pipe 2>&1)