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.00802/0.00802, allocations: 98.66 kB / 15.73 MB, free: 5.547 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.001585/0.001585, allocations: 188.8 kB / 16.67 MB, free: 5.492 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.386/1.386, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2238/0.2238, allocations: 22.34 MB / 312.9 MB, free: 12.5 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 67.58 kB / 437.1 MB, free: 33.75 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1207, allocations: 54.96 MB / 492 MB, free: 1.219 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.002817/0.1236, allocations: 2.003 MB / 494 MB, free: 15.21 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002352/0.1259, allocations: 1.798 MB / 495.8 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001936/0.1261, allocations: 15.94 kB / 495.8 MB, free: 13.38 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000493/0.1266, allocations: 166.8 kB / 496 MB, free: 13.21 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005547/0.1272, allocations: 226.9 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.0005493/0.1278, allocations: 379.5 kB / 496.6 MB, free: 12.62 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009969/0.1288, allocations: 1.062 MB / 497.6 MB, free: 11.56 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002599/0.1291, allocations: 161.6 kB / 497.8 MB, free: 11.39 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004117/0.1295, allocations: 406.6 kB / 498.2 MB, free: 11 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000464/0.1299, allocations: 402.3 kB / 498.6 MB, free: 10.6 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.228e-05/0.13, allocations: 64 kB / 498.7 MB, free: 10.54 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001624/0.1302, allocations: 95.95 kB / 498.8 MB, free: 10.45 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002478/0.1305, allocations: 243.3 kB / 499 MB, free: 10.21 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002402/0.1307, allocations: 298.2 kB / 499.3 MB, free: 9.914 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007036/0.1314, allocations: 0.724 MB / 0.4883 GB, free: 9.188 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.1314, allocations: 0 / 0.4883 GB, free: 9.188 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1314, allocations: 0 / 0.4883 GB, free: 9.188 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.316e-05/0.1315, allocations: 4 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.002943/0.1344, allocations: 1.202 MB / 0.4895 GB, free: 7.934 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.564e-05/0.1345, allocations: 12.03 kB / 0.4895 GB, free: 7.922 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001449/0.1346, allocations: 76 kB / 0.4895 GB, free: 7.848 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00158/0.1362, allocations: 0.7412 MB / 0.4903 GB, free: 7.066 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.656e-05/0.1363, allocations: 33.38 kB / 0.4903 GB, free: 7.035 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.311e-05/0.1363, allocations: 48.36 kB / 0.4903 GB, free: 6.988 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006688/0.137, allocations: 449 kB / 0.4908 GB, free: 6.531 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.137, allocations: 0 / 0.4908 GB, free: 6.531 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.532e-05/0.1371, allocations: 19.94 kB / 0.4908 GB, free: 6.512 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.166e-05/0.1371, allocations: 15.94 kB / 0.4908 GB, free: 6.496 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006925/0.1378, allocations: 415.7 kB / 0.4912 GB, free: 6.09 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002401/0.1402, allocations: 1.625 MB / 0.4928 GB, free: 4.398 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006743/0.1409, allocations: 484 kB / 0.4933 GB, free: 3.914 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002951/0.1412, allocations: 197.5 kB / 0.4934 GB, free: 3.719 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.126e-05/0.1412, allocations: 4 kB / 0.4934 GB, free: 3.715 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.595e-05/0.1413, allocations: 38.56 kB / 0.4935 GB, free: 3.668 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 1.623e-06/0.1413, allocations: 0 / 0.4935 GB, free: 3.668 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.001034/0.1423, allocations: 0.6263 MB / 0.4941 GB, free: 3.035 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.609e-05/0.1424, allocations: 59.41 kB / 0.4942 GB, free: 2.965 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001608/0.144, allocations: 0.8785 MB / 0.495 GB, free: 2.074 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.64e-05/0.144, allocations: 37.7 kB / 0.495 GB, free: 2.031 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00021/0.1443, allocations: 292.4 kB / 0.4953 GB, free: 1.738 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000123/0.1444, allocations: 165.6 kB / 0.4955 GB, free: 1.574 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001915/0.1446, allocations: 142.6 kB / 0.4956 GB, free: 1.43 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.1448, allocations: 386.7 kB / 0.496 GB, free: 1.043 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006285/0.1454, allocations: 289.8 kB / 0.4963 GB, free: 0.7578 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006987/0.1461, allocations: 413.5 kB / 0.4967 GB, free: 316 kB / 366.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.004294/0.1504, allocations: 1.679 MB / 0.4983 GB, free: 14.55 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.1504, allocations: 3.938 kB / 0.4983 GB, free: 14.55 MB / 382.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001564/0.152, allocations: 0.8281 MB / 0.4991 GB, free: 13.71 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.152, allocations: 6.406 kB / 0.4991 GB, free: 13.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.152, allocations: 8 kB / 0.4991 GB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.919e-05/0.1521, allocations: 8 kB / 0.4991 GB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008393/0.1529, allocations: 195.8 kB / 0.4993 GB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.365e-05/0.1529, allocations: 7.938 kB / 0.4993 GB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008323/0.1538, allocations: 175.2 kB / 0.4995 GB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.716e-05/0.1538, allocations: 27.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.0002974/0.1541, allocations: 254.8 kB / 0.4998 GB, free: 13.04 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.483e-05/0.1542, allocations: 59.25 kB / 0.4998 GB, free: 12.98 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008664/0.1551, allocations: 0.5306 MB / 0.5003 GB, free: 12.44 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.1551, allocations: 4 kB / 0.5003 GB, free: 12.44 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.1551, allocations: 0 / 0.5003 GB, free: 12.44 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.1551, allocations: 7.938 kB / 0.5004 GB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007304/0.1559, allocations: 0.5946 MB / 0.5009 GB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.1559, allocations: 4 kB / 0.5009 GB, free: 11.79 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005134/0.1564, allocations: 87.89 kB / 0.501 GB, free: 11.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.953e-06/0.1564, allocations: 7.984 kB / 0.501 GB, free: 11.69 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.146e-05/0.1565, allocations: 15.94 kB / 0.501 GB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.1565, allocations: 0 / 0.501 GB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.1565, allocations: 0 / 0.501 GB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001323/0.1578, allocations: 0.8406 MB / 0.5019 GB, free: 10.82 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001703/0.158, allocations: 160.1 kB / 0.502 GB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001016/0.1581, allocations: 12 kB / 0.502 GB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006176/0.1587, allocations: 91.81 kB / 0.5021 GB, free: 10.54 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/0.1589, allocations: 39.64 kB / 0.5022 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.55e-05/0.1589, allocations: 8 kB / 0.5022 GB, free: 10.49 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001401/0.1603, allocations: 0.6589 MB / 0.5028 GB, free: 9.836 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1603, allocations: 0 / 0.5028 GB, free: 9.836 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004842/0.1608, allocations: 123.8 kB / 0.5029 GB, free: 9.715 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.0001994/0.161, allocations: 119.2 kB / 0.503 GB, free: 9.59 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001161/0.1622, allocations: 0.5936 MB / 0.5036 GB, free: 9 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1622, allocations: 0 / 0.5036 GB, free: 9 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003351/0.1625, allocations: 223.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.0005351/0.1631, allocations: 90.89 kB / 0.5039 GB, free: 8.695 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001908/0.165, allocations: 1.312 MB / 0.5052 GB, free: 7.355 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005814/0.1656, allocations: 0.9528 MB / 0.5061 GB, free: 6.375 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002716/0.1659, allocations: 108.8 kB / 0.5062 GB, free: 6.266 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001792/0.1661, allocations: 55.42 kB / 0.5063 GB, free: 6.207 MB / 382.1 MB Notification: Performance of SimCode: time 1.873e-06/0.1661, allocations: 0 / 0.5063 GB, free: 6.207 MB / 382.1 MB Notification: Performance of Templates: time 0.01177/0.1778, allocations: 6.679 MB / 0.5128 GB, free: 15.53 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)