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.001122/0.001122, allocations: 99.55 kB / 15.05 MB, free: 1.105 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.0009023/0.0009023, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2102/0.2102, allocations: 22.33 MB / 313.3 MB, free: 13.19 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003323/0.0003323, allocations: 12 kB / 381.8 MB, free: 10.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3366/0.3369, allocations: 55.97 MB / 437.8 MB, free: 39.34 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.002007/0.339, allocations: 1.567 MB / 439.4 MB, free: 38.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002055/0.3411, allocations: 1.766 MB / 441.1 MB, free: 36.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001911/0.3413, allocations: 7 kB / 441.1 MB, free: 36.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000496/0.3418, allocations: 124.8 kB / 441.3 MB, free: 36.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004283/0.3422, allocations: 193.8 kB / 441.4 MB, free: 36.8 MB / 350.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.0004209/0.3427, allocations: 258.9 kB / 441.7 MB, free: 36.69 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000589/0.3433, allocations: 0.5594 MB / 442.3 MB, free: 36.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002436/0.3435, allocations: 124.8 kB / 442.4 MB, free: 36.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004492/0.344, allocations: 397.1 kB / 442.8 MB, free: 36.24 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003469/0.3443, allocations: 324.3 kB / 443.1 MB, free: 36.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.028e-05/0.3444, allocations: 22.53 kB / 443.1 MB, free: 36.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001418/0.3445, allocations: 43.84 kB / 443.2 MB, free: 36.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002173/0.3448, allocations: 183.1 kB / 443.3 MB, free: 36.05 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.4e-05/0.3449, allocations: 114.1 kB / 443.4 MB, free: 35.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004768/0.3454, allocations: 0.5469 MB / 444 MB, free: 35.82 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.3454, allocations: 0 / 444 MB, free: 35.82 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.3454, allocations: 0 / 444 MB, free: 35.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.367e-06/0.3454, allocations: 2.719 kB / 444 MB, free: 35.82 MB / 350.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.002796/0.3482, allocations: 1.134 MB / 445.1 MB, free: 35.17 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.3482, allocations: 8.062 kB / 445.1 MB, free: 35.17 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001341/0.3484, allocations: 75.03 kB / 445.2 MB, free: 35.13 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00151/0.3499, allocations: 0.7347 MB / 445.9 MB, free: 34.74 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.875e-05/0.35, allocations: 31.47 kB / 446 MB, free: 34.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.964e-05/0.35, allocations: 52.34 kB / 446 MB, free: 34.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006148/0.3506, allocations: 441.3 kB / 446.5 MB, free: 34.49 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/0.3507, allocations: 3.953 kB / 446.5 MB, free: 34.49 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.959e-05/0.3507, allocations: 15 kB / 446.5 MB, free: 34.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.3507, allocations: 13 kB / 446.5 MB, free: 34.47 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006539/0.3514, allocations: 417.7 kB / 446.9 MB, free: 34.33 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002121/0.3535, allocations: 1.667 MB / 448.6 MB, free: 33.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006481/0.3542, allocations: 480.9 kB / 449 MB, free: 33.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.867e-05/0.3542, allocations: 2.562 kB / 449 MB, free: 33.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.361e-05/0.3543, allocations: 37.17 kB / 449.1 MB, free: 33.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.124e-06/0.3543, allocations: 0 / 449.1 MB, free: 33.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.001039/0.3553, allocations: 0.6311 MB / 449.7 MB, free: 32.81 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.734e-05/0.3554, allocations: 59.81 kB / 449.8 MB, free: 32.74 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001582/0.357, allocations: 0.9043 MB / 450.7 MB, free: 32.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.366e-05/0.357, allocations: 40.27 kB / 450.7 MB, free: 32.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001981/0.3572, allocations: 315.8 kB / 451 MB, free: 32.13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001081/0.3573, allocations: 160.4 kB / 451.2 MB, free: 32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.397e-05/0.3574, allocations: 14.62 kB / 451.2 MB, free: 31.99 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.3575, allocations: 378.8 kB / 451.6 MB, free: 31.65 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002663/0.3577, allocations: 187.8 kB / 451.7 MB, free: 31.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003225/0.3581, allocations: 296 kB / 452 MB, free: 31.4 MB / 350.1 MB Notification: The given system is mixed-determined. [index = 2] Notification: Performance of analyzeInitialSystem (initialization): time 0.003153/0.3612, allocations: 1.147 MB / 453.2 MB, free: 31.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.3613, allocations: 3.625 kB / 453.2 MB, free: 31.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007974/0.3621, allocations: 0.6023 MB / 453.8 MB, free: 30.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.084e-05/0.3621, allocations: 7.797 kB / 453.8 MB, free: 30.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.977e-06/0.3621, allocations: 7.094 kB / 453.8 MB, free: 30.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.3621, allocations: 6.188 kB / 453.8 MB, free: 30.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006947/0.3628, allocations: 160.2 kB / 454 MB, free: 30.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.409e-05/0.3629, allocations: 9.375 kB / 454 MB, free: 30.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000693/0.3636, allocations: 134.4 kB / 454.1 MB, free: 30.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.89e-05/0.3636, allocations: 20.25 kB / 454.1 MB, free: 30.7 MB / 350.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 sytem: 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 (C1.HIsat,C1.LOsat,C2.HIsat,C2.LOsat,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 (70): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003157/0.3639, allocations: 242.8 kB / 454.4 MB, free: 30.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.591e-05/0.364, allocations: 63.19 kB / 454.4 MB, free: 30.49 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007774/0.3648, allocations: 0.5368 MB / 455 MB, free: 30.24 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.3648, allocations: 4.25 kB / 455 MB, free: 30.24 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.3648, allocations: 0 / 455 MB, free: 30.24 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.593e-06/0.3648, allocations: 4.266 kB / 455 MB, free: 30.24 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006389/0.3655, allocations: 0.6097 MB / 455.6 MB, free: 29.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.3655, allocations: 7.031 kB / 455.6 MB, free: 29.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005264/0.366, allocations: 100.2 kB / 455.7 MB, free: 29.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.366, allocations: 1.062 kB / 455.7 MB, free: 29.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.778e-05/0.3661, allocations: 16.39 kB / 455.7 MB, free: 29.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/0.3661, allocations: 6.141 kB / 455.7 MB, free: 29.85 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3661, allocations: 0 / 455.7 MB, free: 29.85 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00111/0.3672, allocations: 0.8274 MB / 456.5 MB, free: 29.43 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001601/0.3674, allocations: 162.4 kB / 456.7 MB, free: 29.29 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.798e-05/0.3675, allocations: 18.59 kB / 456.7 MB, free: 29.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006636/0.3681, allocations: 93.2 kB / 456.8 MB, free: 29.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.584e-05/0.3682, allocations: 38.25 kB / 456.8 MB, free: 29.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.785e-05/0.3683, allocations: 16.62 kB / 456.8 MB, free: 29.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001416/0.3697, allocations: 0.6884 MB / 457.5 MB, free: 29.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3697, allocations: 0 / 457.5 MB, free: 29.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004751/0.3702, allocations: 111.2 kB / 457.6 MB, free: 29 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001868/0.3704, allocations: 122.5 kB / 457.8 MB, free: 28.9 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008405/0.3712, allocations: 476.2 kB / 458.2 MB, free: 28.74 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3713, allocations: 3.938 kB / 458.2 MB, free: 28.74 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003441/0.3716, allocations: 228.7 kB / 458.5 MB, free: 28.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004543/0.3721, allocations: 83.64 kB / 458.5 MB, free: 28.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002032/0.3741, allocations: 1.485 MB / 460 MB, free: 27.78 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006742/0.3748, allocations: 0.9649 MB / 461 MB, free: 27.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004185/0.3752, allocations: 106.9 kB / 461.1 MB, free: 27.05 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001805/0.3754, allocations: 57.2 kB / 461.1 MB, free: 27.04 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3754, allocations: 0 / 461.1 MB, free: 27.04 MB / 350.1 MB Notification: Performance of Templates: time 0.01445/0.3899, allocations: 5.903 MB / 467 MB, free: 26.66 MB / 350.1 MB make -j1 -f AES_AES.Coursework.Typical_control_structures.Decoupling.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: