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.00644/0.006439, allocations: 101.9 kB / 15.73 MB, free: 6.438 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.00115/0.00115, allocations: 194.6 kB / 16.67 MB, free: 6.355 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.47/1.47, allocations: 222.9 MB / 240.4 MB, free: 4.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2865/0.2865, allocations: 22.35 MB / 312.9 MB, free: 12.47 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001287/0.001287, allocations: 64.28 kB / 437 MB, free: 33.85 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1408/0.1421, allocations: 54.97 MB / 492 MB, free: 1.223 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.00407/0.1462, allocations: 2.005 MB / 494 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003226/0.1495, allocations: 1.798 MB / 495.8 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002605/0.1497, allocations: 11.94 kB / 495.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005791/0.1503, allocations: 166.8 kB / 496 MB, free: 13.22 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006297/0.151, allocations: 223 kB / 496.2 MB, free: 13 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.0006669/0.1517, allocations: 375.5 kB / 496.6 MB, free: 12.63 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001015/0.1527, allocations: 1.07 MB / 497.6 MB, free: 11.56 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002633/0.153, allocations: 157.6 kB / 497.8 MB, free: 11.4 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000431/0.1534, allocations: 410.6 kB / 498.2 MB, free: 11 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004946/0.1539, allocations: 402.3 kB / 498.6 MB, free: 10.61 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001072/0.154, allocations: 68 kB / 498.7 MB, free: 10.54 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001737/0.1542, allocations: 95.95 kB / 498.8 MB, free: 10.45 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002441/0.1545, allocations: 239.3 kB / 499 MB, free: 10.21 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002611/0.1547, allocations: 298.1 kB / 499.3 MB, free: 9.918 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006971/0.1554, allocations: 0.7202 MB / 500 MB, free: 9.195 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1555, allocations: 3.938 kB / 500 MB, free: 9.191 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.725e-06/0.1555, allocations: 4 kB / 0.4883 GB, free: 9.188 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.057e-06/0.1555, allocations: 3.938 kB / 0.4883 GB, free: 9.184 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.002984/0.1585, allocations: 1.207 MB / 0.4895 GB, free: 7.926 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.38e-05/0.1585, allocations: 8.031 kB / 0.4895 GB, free: 7.918 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001334/0.1587, allocations: 76 kB / 0.4895 GB, free: 7.844 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001559/0.1602, allocations: 0.7412 MB / 0.4903 GB, free: 7.062 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.808e-05/0.1603, allocations: 29.38 kB / 0.4903 GB, free: 7.035 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.096e-05/0.1604, allocations: 48.36 kB / 0.4903 GB, free: 6.988 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007077/0.1611, allocations: 456.9 kB / 0.4908 GB, free: 6.523 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/0.1611, allocations: 0 / 0.4908 GB, free: 6.523 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.816e-05/0.1612, allocations: 16 kB / 0.4908 GB, free: 6.508 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.1612, allocations: 8 kB / 0.4908 GB, free: 6.5 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007099/0.1619, allocations: 415.7 kB / 0.4912 GB, free: 6.094 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002231/0.1642, allocations: 1.625 MB / 0.4928 GB, free: 4.402 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000695/0.1649, allocations: 484 kB / 0.4932 GB, free: 3.918 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003037/0.1652, allocations: 201.5 kB / 0.4934 GB, free: 3.719 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.213e-05/0.1652, allocations: 4 kB / 0.4934 GB, free: 3.715 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.064e-05/0.1653, allocations: 38.59 kB / 0.4935 GB, free: 3.668 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 1.673e-06/0.1653, allocations: 0 / 0.4935 GB, free: 3.668 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001105/0.1664, allocations: 0.6263 MB / 0.4941 GB, free: 3.035 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.804e-05/0.1664, allocations: 55.41 kB / 0.4941 GB, free: 2.969 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001654/0.1681, allocations: 0.8785 MB / 0.495 GB, free: 2.078 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.511e-05/0.1681, allocations: 37.7 kB / 0.495 GB, free: 2.035 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002283/0.1684, allocations: 296.4 kB / 0.4953 GB, free: 1.738 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001345/0.1685, allocations: 169.6 kB / 0.4955 GB, free: 1.57 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001914/0.1687, allocations: 138.6 kB / 0.4956 GB, free: 1.43 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.1689, allocations: 382.7 kB / 0.496 GB, free: 1.047 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006336/0.1695, allocations: 289.8 kB / 0.4963 GB, free: 0.7617 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006914/0.1702, allocations: 413.5 kB / 0.4967 GB, free: 320 kB / 366.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.004456/0.1747, allocations: 1.683 MB / 0.4983 GB, free: 14.56 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.071e-06/0.1747, allocations: 4 kB / 0.4983 GB, free: 14.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001607/0.1763, allocations: 0.8245 MB / 0.4991 GB, free: 13.72 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.1764, allocations: 8.062 kB / 0.4991 GB, free: 13.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.797e-06/0.1764, allocations: 8 kB / 0.4991 GB, free: 13.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.012e-05/0.1764, allocations: 8 kB / 0.4991 GB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008854/0.1773, allocations: 199.7 kB / 0.4993 GB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.339e-05/0.1773, allocations: 4 kB / 0.4993 GB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009003/0.1782, allocations: 175.2 kB / 0.4995 GB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.056e-05/0.1783, allocations: 31.94 kB / 0.4995 GB, free: 13.3 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.000349/0.1787, allocations: 246.8 kB / 0.4998 GB, free: 13.05 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.1788, allocations: 63.23 kB / 0.4998 GB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009119/0.1797, allocations: 0.5306 MB / 0.5003 GB, free: 12.45 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.015e-05/0.1797, allocations: 8 kB / 0.5003 GB, free: 12.44 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.1797, allocations: 3.938 kB / 0.5003 GB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/0.1797, allocations: 7.938 kB / 0.5004 GB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006721/0.1804, allocations: 0.5908 MB / 0.5009 GB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.1804, allocations: 0 / 0.5009 GB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005259/0.181, allocations: 91.89 kB / 0.501 GB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.895e-06/0.181, allocations: 4 kB / 0.501 GB, free: 11.69 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.748e-05/0.181, allocations: 12 kB / 0.501 GB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.44e-06/0.181, allocations: 4 kB / 0.501 GB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.181, allocations: 0 / 0.501 GB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001192/0.1822, allocations: 0.8366 MB / 0.5019 GB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001812/0.1824, allocations: 164.1 kB / 0.502 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.11e-05/0.1825, allocations: 12 kB / 0.502 GB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006505/0.1832, allocations: 87.88 kB / 0.5021 GB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.617e-05/0.1833, allocations: 39.64 kB / 0.5021 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.51e-05/0.1833, allocations: 12 kB / 0.5022 GB, free: 10.49 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001339/0.1846, allocations: 0.6511 MB / 0.5028 GB, free: 9.844 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1846, allocations: 4 kB / 0.5028 GB, free: 9.84 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004776/0.1851, allocations: 119.8 kB / 0.5029 GB, free: 9.723 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.0001998/0.1853, allocations: 123.2 kB / 0.503 GB, free: 9.594 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001221/0.1866, allocations: 0.5936 MB / 0.5036 GB, free: 9.004 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.1866, allocations: 0 / 0.5036 GB, free: 9.004 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003497/0.1869, allocations: 227.8 kB / 0.5038 GB, free: 8.781 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000557/0.1875, allocations: 99.27 kB / 0.5039 GB, free: 8.691 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001891/0.1894, allocations: 1.308 MB / 0.5052 GB, free: 7.355 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005753/0.19, allocations: 0.9528 MB / 0.5061 GB, free: 6.375 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002811/0.1903, allocations: 104.8 kB / 0.5062 GB, free: 6.266 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001669/0.1905, allocations: 55.42 kB / 0.5063 GB, free: 6.211 MB / 382.1 MB Notification: Performance of SimCode: time 1.904e-06/0.1905, allocations: 0 / 0.5063 GB, free: 6.211 MB / 382.1 MB Notification: Performance of Templates: time 0.01298/0.2034, allocations: 6.495 MB / 0.5126 GB, free: 15.72 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)