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.001038/0.001038, allocations: 115.6 kB / 16.37 MB, free: 6.004 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.001016/0.001016, allocations: 192.1 kB / 17.31 MB, free: 5.613 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.335/1.335, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09145/0.09145, allocations: 22.32 MB / 313.5 MB, free: 8.887 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001161/0.001161, allocations: 67.66 kB / 382.2 MB, free: 41.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08867/0.08985, allocations: 54.96 MB / 437.2 MB, free: 12.24 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.003386/0.09327, allocations: 1.992 MB / 439.2 MB, free: 10.23 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00263/0.09594, allocations: 1.798 MB / 441 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002119/0.09617, allocations: 11.94 kB / 441 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005528/0.09673, allocations: 174.8 kB / 441.2 MB, free: 8.234 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005732/0.09734, allocations: 215 kB / 441.4 MB, free: 8.023 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.0006218/0.09798, allocations: 387.4 kB / 441.8 MB, free: 7.645 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009266/0.09891, allocations: 1.066 MB / 442.8 MB, free: 6.578 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002609/0.09918, allocations: 157.6 kB / 443 MB, free: 6.426 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003712/0.09956, allocations: 402.7 kB / 443.4 MB, free: 6.031 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004279/0.1, allocations: 410.2 kB / 443.8 MB, free: 5.629 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.047e-05/0.1001, allocations: 64 kB / 443.8 MB, free: 5.566 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000157/0.1003, allocations: 99.95 kB / 443.9 MB, free: 5.469 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002226/0.1005, allocations: 239.3 kB / 444.2 MB, free: 5.234 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002347/0.1007, allocations: 298.2 kB / 444.5 MB, free: 4.941 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006364/0.1014, allocations: 0.724 MB / 445.2 MB, free: 4.215 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1014, allocations: 0 / 445.2 MB, free: 4.215 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.1014, allocations: 0 / 445.2 MB, free: 4.215 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.526e-06/0.1014, allocations: 0 / 445.2 MB, free: 4.215 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.002964/0.1044, allocations: 1.219 MB / 446.4 MB, free: 2.941 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.1044, allocations: 8.031 kB / 446.4 MB, free: 2.934 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001328/0.1046, allocations: 80.09 kB / 446.5 MB, free: 2.855 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001629/0.1062, allocations: 0.7335 MB / 447.2 MB, free: 2.082 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.508e-05/0.1063, allocations: 29.38 kB / 447.3 MB, free: 2.055 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.059e-05/0.1064, allocations: 48.28 kB / 447.3 MB, free: 2.008 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007227/0.1071, allocations: 452.9 kB / 447.7 MB, free: 1.547 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.1071, allocations: 4 kB / 447.7 MB, free: 1.543 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.701e-05/0.1072, allocations: 12 kB / 447.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.416e-05/0.1072, allocations: 12 kB / 447.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007213/0.1079, allocations: 415.7 kB / 448.2 MB, free: 1.113 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002413/0.1103, allocations: 1.621 MB / 449.8 MB, free: 15.43 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007171/0.1111, allocations: 480 kB / 450.3 MB, free: 14.95 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003047/0.1114, allocations: 197.5 kB / 450.5 MB, free: 14.75 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.78e-05/0.1114, allocations: 11.94 kB / 450.5 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.301e-05/0.1115, allocations: 38.55 kB / 450.5 MB, free: 14.69 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 2.224e-06/0.1115, allocations: 0 / 450.5 MB, free: 14.69 MB / 334.1 MB Notification: Performance of matching and sorting (n=44): time 0.001072/0.1126, allocations: 0.6262 MB / 451.1 MB, free: 14.05 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.074e-05/0.1126, allocations: 55.41 kB / 451.2 MB, free: 13.99 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001648/0.1143, allocations: 0.8786 MB / 452.1 MB, free: 13.1 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.708e-05/0.1143, allocations: 37.7 kB / 452.1 MB, free: 13.05 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002041/0.1145, allocations: 300.3 kB / 452.4 MB, free: 12.75 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001141/0.1147, allocations: 157.8 kB / 452.6 MB, free: 12.6 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001935/0.1148, allocations: 138.5 kB / 452.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.115, allocations: 390.7 kB / 453.1 MB, free: 12.07 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006203/0.1156, allocations: 289.8 kB / 453.4 MB, free: 11.78 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007094/0.1164, allocations: 421.6 kB / 453.8 MB, free: 11.33 MB / 334.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.004606/0.121, allocations: 1.675 MB / 455.4 MB, free: 9.582 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.641e-06/0.121, allocations: 7.938 kB / 455.4 MB, free: 9.574 MB / 334.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001639/0.1226, allocations: 0.828 MB / 456.3 MB, free: 8.738 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.138e-05/0.1227, allocations: 6.5 kB / 456.3 MB, free: 8.734 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.277e-06/0.1227, allocations: 4 kB / 456.3 MB, free: 8.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.055e-05/0.1227, allocations: 8 kB / 456.3 MB, free: 8.723 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009309/0.1236, allocations: 200.1 kB / 456.5 MB, free: 8.527 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.512e-05/0.1237, allocations: 7.984 kB / 456.5 MB, free: 8.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009476/0.1246, allocations: 171.3 kB / 456.7 MB, free: 8.352 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.22e-05/0.1247, allocations: 35.86 kB / 456.7 MB, free: 8.316 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.0003705/0.1251, allocations: 239.7 kB / 456.9 MB, free: 8.074 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.1252, allocations: 67.14 kB / 457 MB, free: 8.008 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008945/0.1261, allocations: 0.5266 MB / 457.5 MB, free: 7.469 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.742e-06/0.1261, allocations: 8 kB / 457.5 MB, free: 7.461 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.1261, allocations: 0 / 457.5 MB, free: 7.461 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.757e-06/0.1262, allocations: 7.922 kB / 457.5 MB, free: 7.453 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006506/0.1268, allocations: 0.5984 MB / 458.1 MB, free: 6.805 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-06/0.1268, allocations: 7.938 kB / 458.1 MB, free: 6.797 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005501/0.1274, allocations: 95.89 kB / 458.2 MB, free: 6.703 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.74e-06/0.1274, allocations: 4 kB / 458.2 MB, free: 6.699 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.105e-05/0.1274, allocations: 8 kB / 458.3 MB, free: 6.691 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.595e-06/0.1275, allocations: 3.938 kB / 458.3 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.1275, allocations: 4 kB / 458.3 MB, free: 6.684 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001168/0.1286, allocations: 0.8291 MB / 459.1 MB, free: 5.836 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001953/0.1288, allocations: 152.3 kB / 459.2 MB, free: 5.668 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.894e-05/0.1289, allocations: 20 kB / 459.3 MB, free: 5.648 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006497/0.1296, allocations: 79.88 kB / 459.3 MB, free: 5.57 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001131/0.1297, allocations: 43.64 kB / 459.4 MB, free: 5.527 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.609e-05/0.1297, allocations: 12 kB / 459.4 MB, free: 5.516 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001415/0.1312, allocations: 0.655 MB / 460 MB, free: 4.867 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.865e-06/0.1312, allocations: 0 / 460 MB, free: 4.867 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004889/0.1317, allocations: 127.7 kB / 460.2 MB, free: 4.742 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.0002236/0.1319, allocations: 123.2 kB / 460.3 MB, free: 4.613 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001171/0.1331, allocations: 0.5859 MB / 460.9 MB, free: 4.031 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1331, allocations: 4 kB / 460.9 MB, free: 4.027 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003391/0.1334, allocations: 231.7 kB / 461.1 MB, free: 3.801 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005482/0.134, allocations: 95.42 kB / 461.2 MB, free: 3.711 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001798/0.1358, allocations: 1.304 MB / 462.5 MB, free: 2.379 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005381/0.1364, allocations: 0.9489 MB / 463.5 MB, free: 1.402 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003206/0.1367, allocations: 112.8 kB / 463.6 MB, free: 1.293 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000174/0.1369, allocations: 51.44 kB / 463.6 MB, free: 1.242 MB / 334.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1369, allocations: 4 kB / 463.6 MB, free: 1.238 MB / 334.1 MB Notification: Performance of Templates: time 0.0119/0.1488, allocations: 6.394 MB / 470 MB, free: 10.85 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 -s cvode -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Decoupling.pipe 2>&1)