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.007/0.007, allocations: 99.56 kB / 15.73 MB, free: 6.059 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.001601/0.001601, allocations: 193.2 kB / 16.67 MB, free: 5.969 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.396/1.396, allocations: 222.9 MB / 240.4 MB, free: 4.172 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.36 MB / 312.9 MB, free: 12.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001656/0.001656, allocations: 66.47 kB / 437.1 MB, free: 33.69 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1099, allocations: 54.97 MB / 492 MB, free: 1.203 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.003083/0.113, allocations: 2.001 MB / 494 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002627/0.1156, allocations: 1.794 MB / 495.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002104/0.1159, allocations: 11.94 kB / 495.8 MB, free: 13.37 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005725/0.1165, allocations: 174.8 kB / 496 MB, free: 13.2 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006091/0.1171, allocations: 215 kB / 496.2 MB, free: 12.99 MB / 366.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.0006132/0.1177, allocations: 387.4 kB / 496.6 MB, free: 12.61 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001059/0.1188, allocations: 1.066 MB / 497.7 MB, free: 11.54 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003227/0.1191, allocations: 157.6 kB / 497.8 MB, free: 11.38 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004739/0.1196, allocations: 406.6 kB / 498.2 MB, free: 10.98 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005025/0.1201, allocations: 406.3 kB / 498.6 MB, free: 10.59 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001053/0.1202, allocations: 68 kB / 498.7 MB, free: 10.52 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001811/0.1204, allocations: 91.97 kB / 498.8 MB, free: 10.43 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002514/0.1207, allocations: 239.3 kB / 499 MB, free: 10.2 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002771/0.121, allocations: 302.2 kB / 499.3 MB, free: 9.898 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000845/0.1218, allocations: 0.7235 MB / 0.4883 GB, free: 9.172 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.1218, allocations: 0 / 0.4883 GB, free: 9.172 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.384e-06/0.1218, allocations: 0 / 0.4883 GB, free: 9.172 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.065e-05/0.1219, allocations: 0 / 0.4883 GB, free: 9.172 MB / 366.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.003075/0.1249, allocations: 1.238 MB / 0.4895 GB, free: 7.883 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.14e-05/0.125, allocations: 8.031 kB / 0.4895 GB, free: 7.875 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001438/0.1251, allocations: 80.42 kB / 0.4896 GB, free: 7.797 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001703/0.1269, allocations: 0.7457 MB / 0.4903 GB, free: 7.012 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.942e-05/0.1269, allocations: 29.38 kB / 0.4903 GB, free: 6.984 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.838e-05/0.127, allocations: 44.38 kB / 0.4904 GB, free: 6.941 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007798/0.1278, allocations: 457 kB / 0.4908 GB, free: 6.477 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.619e-05/0.1278, allocations: 3.938 kB / 0.4908 GB, free: 6.473 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.058e-05/0.1279, allocations: 12 kB / 0.4908 GB, free: 6.461 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.161e-05/0.1279, allocations: 8 kB / 0.4908 GB, free: 6.453 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007575/0.1286, allocations: 419.7 kB / 0.4912 GB, free: 6.043 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002344/0.131, allocations: 1.629 MB / 0.4928 GB, free: 4.348 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007504/0.1318, allocations: 476 kB / 0.4933 GB, free: 3.871 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003083/0.1321, allocations: 197.5 kB / 0.4935 GB, free: 3.676 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.113e-05/0.1322, allocations: 15.97 kB / 0.4935 GB, free: 3.66 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.418e-05/0.1322, allocations: 34.56 kB / 0.4935 GB, free: 3.617 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 1.443e-06/0.1322, allocations: 0 / 0.4935 GB, free: 3.617 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001138/0.1333, allocations: 0.6305 MB / 0.4941 GB, free: 2.98 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.403e-05/0.1334, allocations: 59.41 kB / 0.4942 GB, free: 2.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001742/0.1351, allocations: 0.8825 MB / 0.4951 GB, free: 2.016 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.665e-05/0.1352, allocations: 37.7 kB / 0.4951 GB, free: 1.973 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002081/0.1354, allocations: 292.8 kB / 0.4954 GB, free: 1.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001248/0.1355, allocations: 170.6 kB / 0.4955 GB, free: 1.512 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001932/0.1357, allocations: 142.6 kB / 0.4957 GB, free: 1.367 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001464/0.1359, allocations: 382.7 kB / 0.496 GB, free: 0.9844 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006553/0.1366, allocations: 289.8 kB / 0.4963 GB, free: 0.6992 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000713/0.1373, allocations: 417.5 kB / 0.4967 GB, free: 252 kB / 366.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.004654/0.1419, allocations: 1.683 MB / 0.4984 GB, free: 14.49 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.571e-06/0.142, allocations: 4 kB / 0.4984 GB, free: 14.49 MB / 382.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001687/0.1437, allocations: 0.8246 MB / 0.4992 GB, free: 13.66 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/0.1437, allocations: 4 kB / 0.4992 GB, free: 13.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/0.1437, allocations: 4 kB / 0.4992 GB, free: 13.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.597e-05/0.1437, allocations: 8.375 kB / 0.4992 GB, free: 13.64 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009415/0.1447, allocations: 207.7 kB / 0.4994 GB, free: 13.44 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.435e-05/0.1447, allocations: 7.938 kB / 0.4994 GB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009414/0.1457, allocations: 171.4 kB / 0.4996 GB, free: 13.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.83e-05/0.1457, allocations: 31.94 kB / 0.4996 GB, free: 13.23 MB / 382.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.0003157/0.146, allocations: 246.8 kB / 0.4998 GB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001062/0.1461, allocations: 75.47 kB / 0.4999 GB, free: 12.91 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008975/0.1471, allocations: 0.5229 MB / 0.5004 GB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.865e-06/0.1471, allocations: 8 kB / 0.5004 GB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.1471, allocations: 0 / 0.5004 GB, free: 12.37 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.604e-06/0.1471, allocations: 11.86 kB / 0.5004 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006425/0.1477, allocations: 0.5946 MB / 0.501 GB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.1478, allocations: 0 / 0.501 GB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005547/0.1483, allocations: 95.89 kB / 0.5011 GB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.392e-06/0.1483, allocations: 4 kB / 0.5011 GB, free: 11.61 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.315e-05/0.1484, allocations: 15.98 kB / 0.5011 GB, free: 11.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.1484, allocations: 4 kB / 0.5011 GB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1484, allocations: 0 / 0.5011 GB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001194/0.1496, allocations: 0.8333 MB / 0.5019 GB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001443/0.1498, allocations: 164.5 kB / 0.5021 GB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.646e-05/0.1498, allocations: 16 kB / 0.5021 GB, free: 10.55 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006612/0.1505, allocations: 87.86 kB / 0.5022 GB, free: 10.46 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.82e-05/0.1506, allocations: 39.66 kB / 0.5022 GB, free: 10.42 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.821e-05/0.1506, allocations: 15.98 kB / 0.5022 GB, free: 10.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00142/0.1521, allocations: 0.6472 MB / 0.5029 GB, free: 9.762 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.1521, allocations: 0 / 0.5029 GB, free: 9.762 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004497/0.1525, allocations: 119.9 kB / 0.503 GB, free: 9.645 MB / 382.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.0001733/0.1527, allocations: 131.1 kB / 0.5031 GB, free: 9.508 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001225/0.154, allocations: 0.5897 MB / 0.5037 GB, free: 8.922 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.154, allocations: 0 / 0.5037 GB, free: 8.922 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003489/0.1543, allocations: 231.8 kB / 0.5039 GB, free: 8.695 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005506/0.1549, allocations: 94.77 kB / 0.504 GB, free: 8.609 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001806/0.1567, allocations: 1.321 MB / 0.5053 GB, free: 7.258 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004653/0.1572, allocations: 0.9567 MB / 0.5062 GB, free: 6.273 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002923/0.1575, allocations: 112.8 kB / 0.5063 GB, free: 6.156 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001719/0.1577, allocations: 55.38 kB / 0.5064 GB, free: 6.102 MB / 382.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1577, allocations: 0 / 0.5064 GB, free: 6.102 MB / 382.1 MB Notification: Performance of Templates: time 0.01159/0.1693, allocations: 6.494 MB / 0.5127 GB, free: 15.61 MB / 398.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)