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.001105/0.001105, allocations: 102.2 kB / 16.27 MB, free: 6 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.001209/0.00121, allocations: 191 kB / 17.2 MB, free: 5.609 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.304/1.304, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09465/0.09465, allocations: 22.33 MB / 313.4 MB, free: 8.984 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 62.73 kB / 381.4 MB, free: 41.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08112/0.08247, allocations: 54.96 MB / 436.4 MB, free: 13.09 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.003077/0.08557, allocations: 1.995 MB / 438.4 MB, free: 11.08 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002338/0.08793, allocations: 1.806 MB / 440.2 MB, free: 9.258 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001773/0.08812, allocations: 11.94 kB / 440.2 MB, free: 9.246 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004684/0.08861, allocations: 166.8 kB / 440.4 MB, free: 9.082 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005376/0.08916, allocations: 219 kB / 440.6 MB, free: 8.867 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.0005604/0.08973, allocations: 379.4 kB / 441 MB, free: 8.496 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009402/0.09068, allocations: 1.058 MB / 442 MB, free: 7.438 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002535/0.09095, allocations: 157.6 kB / 442.2 MB, free: 7.285 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000408/0.09136, allocations: 410.6 kB / 442.6 MB, free: 6.883 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004369/0.09181, allocations: 406.2 kB / 443 MB, free: 6.484 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001099/0.09193, allocations: 64 kB / 443 MB, free: 6.422 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000171/0.09211, allocations: 104 kB / 443.1 MB, free: 6.32 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002417/0.09236, allocations: 235.4 kB / 443.4 MB, free: 6.09 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002489/0.09262, allocations: 306 kB / 443.7 MB, free: 5.789 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006151/0.09324, allocations: 0.6969 MB / 444.4 MB, free: 5.09 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.09325, allocations: 0 / 444.4 MB, free: 5.09 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.09326, allocations: 0 / 444.4 MB, free: 5.09 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.205e-06/0.09327, allocations: 0 / 444.4 MB, free: 5.09 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.003107/0.09638, allocations: 1.227 MB / 445.6 MB, free: 3.809 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.268e-05/0.09643, allocations: 8.031 kB / 445.6 MB, free: 3.801 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001259/0.09656, allocations: 72.09 kB / 445.7 MB, free: 3.73 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001634/0.0982, allocations: 0.7296 MB / 446.4 MB, free: 2.961 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.473e-05/0.09825, allocations: 29.38 kB / 446.4 MB, free: 2.934 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.541e-05/0.09833, allocations: 48.28 kB / 446.5 MB, free: 2.887 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007088/0.09904, allocations: 453 kB / 446.9 MB, free: 2.426 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.251e-05/0.09907, allocations: 0 / 446.9 MB, free: 2.426 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.982e-05/0.09911, allocations: 16 kB / 446.9 MB, free: 2.41 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.628e-06/0.09913, allocations: 8 kB / 446.9 MB, free: 2.402 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000752/0.09989, allocations: 427.6 kB / 447.4 MB, free: 1.984 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002263/0.1022, allocations: 1.625 MB / 449 MB, free: 300 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007217/0.1029, allocations: 476.1 kB / 449.4 MB, free: 15.81 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003212/0.1032, allocations: 197.5 kB / 449.6 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.546e-05/0.1033, allocations: 8 kB / 449.6 MB, free: 15.61 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.477e-05/0.1033, allocations: 34.56 kB / 449.7 MB, free: 15.57 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 1.693e-06/0.1033, allocations: 4 kB / 449.7 MB, free: 15.56 MB / 334.1 MB Notification: Performance of matching and sorting (n=44): time 0.001113/0.1044, allocations: 0.6301 MB / 450.3 MB, free: 14.93 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.421e-05/0.1045, allocations: 55.41 kB / 450.4 MB, free: 14.86 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001768/0.1063, allocations: 0.8786 MB / 451.3 MB, free: 13.96 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.702e-05/0.1063, allocations: 33.7 kB / 451.3 MB, free: 13.93 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002158/0.1066, allocations: 308.1 kB / 451.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001326/0.1067, allocations: 157.8 kB / 451.7 MB, free: 13.46 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001987/0.1069, allocations: 146.5 kB / 451.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.1071, allocations: 378.7 kB / 452.3 MB, free: 12.94 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007007/0.1078, allocations: 293.8 kB / 452.5 MB, free: 12.65 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007648/0.1085, allocations: 421.5 kB / 452.9 MB, free: 12.2 MB / 334.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.004831/0.1134, allocations: 1.671 MB / 454.6 MB, free: 10.45 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.1134, allocations: 4 kB / 454.6 MB, free: 10.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001712/0.1151, allocations: 0.836 MB / 455.5 MB, free: 9.605 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.52e-05/0.1152, allocations: 4 kB / 455.5 MB, free: 9.602 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.1152, allocations: 4 kB / 455.5 MB, free: 9.598 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.551e-05/0.1152, allocations: 8 kB / 455.5 MB, free: 9.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009357/0.1161, allocations: 199.7 kB / 455.7 MB, free: 9.395 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.464e-05/0.1162, allocations: 8.188 kB / 455.7 MB, free: 9.387 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009853/0.1172, allocations: 179.3 kB / 455.9 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.945e-05/0.1172, allocations: 31.88 kB / 455.9 MB, free: 9.18 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.0003168/0.1175, allocations: 243.6 kB / 456.1 MB, free: 8.934 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000123/0.1177, allocations: 63.16 kB / 456.2 MB, free: 8.871 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009243/0.1186, allocations: 0.5305 MB / 456.7 MB, free: 8.328 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/0.1186, allocations: 8 kB / 456.7 MB, free: 8.32 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.389e-06/0.1186, allocations: 0 / 456.7 MB, free: 8.32 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.1187, allocations: 7.922 kB / 456.7 MB, free: 8.312 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000664/0.1193, allocations: 0.5945 MB / 457.3 MB, free: 7.668 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.1193, allocations: 0 / 457.3 MB, free: 7.668 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005524/0.1199, allocations: 91.89 kB / 457.4 MB, free: 7.578 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.061e-06/0.1199, allocations: 4 kB / 457.4 MB, free: 7.574 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.192e-05/0.12, allocations: 15.98 kB / 457.4 MB, free: 7.559 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.305e-06/0.12, allocations: 0 / 457.4 MB, free: 7.559 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.342e-06/0.12, allocations: 8 kB / 457.4 MB, free: 7.551 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001189/0.1212, allocations: 0.8252 MB / 458.3 MB, free: 6.707 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001534/0.1213, allocations: 152.3 kB / 458.4 MB, free: 6.539 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.393e-05/0.1214, allocations: 12 kB / 458.4 MB, free: 6.527 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000716/0.1221, allocations: 91.86 kB / 458.5 MB, free: 6.438 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.703e-05/0.1222, allocations: 39.59 kB / 458.6 MB, free: 6.398 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.351e-05/0.1223, allocations: 19.92 kB / 458.6 MB, free: 6.379 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001503/0.1238, allocations: 0.6511 MB / 459.2 MB, free: 5.734 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1238, allocations: 0 / 459.2 MB, free: 5.734 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004669/0.1243, allocations: 123.8 kB / 459.3 MB, free: 5.613 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.0001696/0.1245, allocations: 127.3 kB / 459.5 MB, free: 5.48 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00137/0.1258, allocations: 0.6398 MB / 460.1 MB, free: 4.84 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1258, allocations: 0 / 460.1 MB, free: 4.84 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003691/0.1262, allocations: 231.8 kB / 460.3 MB, free: 4.613 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005783/0.1268, allocations: 101.9 kB / 460.4 MB, free: 4.516 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001996/0.1288, allocations: 1.352 MB / 461.8 MB, free: 3.129 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005309/0.1294, allocations: 0.9528 MB / 462.7 MB, free: 2.148 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001969/0.1296, allocations: 55.44 kB / 462.8 MB, free: 2.094 MB / 334.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1296, allocations: 0 / 462.8 MB, free: 2.094 MB / 334.1 MB Notification: Performance of Templates: time 0.01197/0.1415, allocations: 8.117 MB / 470.9 MB, free: 9.969 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)