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.001164/0.001164, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.463/1.463, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2342/0.2342, allocations: 22.36 MB / 312.7 MB, free: 12.48 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 55.91 kB / 380.8 MB, free: 10.52 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3169/0.3183, allocations: 54.94 MB / 435.8 MB, free: 39.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.002782/0.3211, allocations: 2.006 MB / 437.8 MB, free: 38.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002342/0.3235, allocations: 1.8 MB / 439.6 MB, free: 36.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002555/0.3237, allocations: 15.06 kB / 439.6 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005091/0.3243, allocations: 170.3 kB / 439.7 MB, free: 36.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004993/0.3248, allocations: 208.7 kB / 440 MB, free: 36.71 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.0005514/0.3254, allocations: 391.1 kB / 440.3 MB, free: 36.49 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007663/0.3261, allocations: 1.055 MB / 441.4 MB, free: 36.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002161/0.3264, allocations: 167.2 kB / 441.6 MB, free: 35.97 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002952/0.3267, allocations: 404.5 kB / 441.9 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003287/0.327, allocations: 409.1 kB / 442.3 MB, free: 35.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.652e-05/0.3271, allocations: 64.5 kB / 442.4 MB, free: 35.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001407/0.3272, allocations: 98.44 kB / 442.5 MB, free: 35.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001897/0.3274, allocations: 238.3 kB / 442.7 MB, free: 35.49 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001943/0.3276, allocations: 304.8 kB / 443 MB, free: 35.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004526/0.3281, allocations: 0.6969 MB / 443.7 MB, free: 34.97 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.3281, allocations: 0 / 443.7 MB, free: 34.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.61e-07/0.3281, allocations: 0 / 443.7 MB, free: 34.97 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.574e-05/0.3281, allocations: 4 kB / 443.7 MB, free: 34.96 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.002792/0.3309, allocations: 1.214 MB / 445 MB, free: 34.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.732e-05/0.331, allocations: 8 kB / 445 MB, free: 34.24 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000121/0.3311, allocations: 81.53 kB / 445 MB, free: 34.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001426/0.3325, allocations: 0.7313 MB / 445.8 MB, free: 33.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.671e-05/0.3326, allocations: 34.44 kB / 445.8 MB, free: 33.78 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.577e-05/0.3327, allocations: 40.22 kB / 445.8 MB, free: 33.77 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006367/0.3333, allocations: 456.4 kB / 446.3 MB, free: 33.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.3333, allocations: 0 / 446.3 MB, free: 33.55 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.451e-05/0.3334, allocations: 19.09 kB / 446.3 MB, free: 33.53 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/0.3334, allocations: 9.781 kB / 446.3 MB, free: 33.53 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000636/0.334, allocations: 420 kB / 446.7 MB, free: 33.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002033/0.3361, allocations: 1.63 MB / 448.4 MB, free: 32.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006265/0.3367, allocations: 471.2 kB / 448.8 MB, free: 32.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002781/0.337, allocations: 204.9 kB / 449 MB, free: 32.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.339e-05/0.3371, allocations: 10.48 kB / 449 MB, free: 32.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.997e-05/0.3371, allocations: 38.31 kB / 449.1 MB, free: 32.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.663e-06/0.3371, allocations: 0 / 449.1 MB, free: 32.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.001048/0.3382, allocations: 0.6296 MB / 449.7 MB, free: 31.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.276e-05/0.3382, allocations: 54.16 kB / 449.7 MB, free: 31.74 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001528/0.3397, allocations: 0.8779 MB / 450.6 MB, free: 31.42 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.343e-05/0.3398, allocations: 36.33 kB / 450.7 MB, free: 31.38 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000146/0.3399, allocations: 287.4 kB / 450.9 MB, free: 31.15 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.711e-05/0.34, allocations: 167 kB / 451.1 MB, free: 31.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001616/0.3402, allocations: 135.9 kB / 451.2 MB, free: 30.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.577e-05/0.3403, allocations: 389.3 kB / 451.6 MB, free: 30.6 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005715/0.3409, allocations: 288.5 kB / 451.9 MB, free: 30.51 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006258/0.3415, allocations: 417.8 kB / 452.3 MB, free: 30.29 MB / 350.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.00417/0.3457, allocations: 1.679 MB / 454 MB, free: 29.58 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.599e-06/0.3457, allocations: 1.219 kB / 454 MB, free: 29.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001642/0.3473, allocations: 0.8279 MB / 454.8 MB, free: 29.26 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.3474, allocations: 12 kB / 454.8 MB, free: 29.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.3474, allocations: 7.188 kB / 454.8 MB, free: 29.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.743e-05/0.3474, allocations: 9.953 kB / 454.8 MB, free: 29.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008858/0.3483, allocations: 200.7 kB / 455 MB, free: 29.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.556e-05/0.3483, allocations: 13.8 kB / 455.1 MB, free: 29.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009686/0.3493, allocations: 169.3 kB / 455.2 MB, free: 29.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.492e-05/0.3494, allocations: 25.25 kB / 455.2 MB, free: 29.18 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 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.000323/0.3497, allocations: 244.7 kB / 455.5 MB, free: 29 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001072/0.3498, allocations: 64.81 kB / 455.5 MB, free: 28.96 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008187/0.3506, allocations: 0.5289 MB / 456.1 MB, free: 28.72 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.3507, allocations: 4.031 kB / 456.1 MB, free: 28.72 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.289e-06/0.3507, allocations: 1.344 kB / 456.1 MB, free: 28.72 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.3507, allocations: 7.312 kB / 456.1 MB, free: 28.71 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005488/0.3512, allocations: 0.5973 MB / 456.7 MB, free: 28.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.3513, allocations: 4 kB / 456.7 MB, free: 28.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005213/0.3518, allocations: 94.95 kB / 456.8 MB, free: 28.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.622e-06/0.3518, allocations: 2.531 kB / 456.8 MB, free: 28.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.155e-05/0.3518, allocations: 11.91 kB / 456.8 MB, free: 28.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.097e-06/0.3519, allocations: 2.688 kB / 456.8 MB, free: 28.34 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3519, allocations: 0 / 456.8 MB, free: 28.34 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001418/0.3533, allocations: 0.8287 MB / 457.6 MB, free: 27.92 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001522/0.3535, allocations: 162.8 kB / 457.8 MB, free: 27.77 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.411e-05/0.3536, allocations: 19.73 kB / 457.8 MB, free: 27.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007013/0.3543, allocations: 81.81 kB / 457.9 MB, free: 27.76 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.3544, allocations: 39.84 kB / 457.9 MB, free: 27.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.955e-05/0.3544, allocations: 15.95 kB / 457.9 MB, free: 27.74 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001766/0.3562, allocations: 0.6514 MB / 458.6 MB, free: 27.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3562, allocations: 0 / 458.6 MB, free: 27.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006722/0.3569, allocations: 120.2 kB / 458.7 MB, free: 27.5 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 (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.0002278/0.3571, allocations: 130 kB / 458.8 MB, free: 27.39 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001709/0.3588, allocations: 0.64 MB / 459.5 MB, free: 27.19 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3588, allocations: 0 / 459.5 MB, free: 27.19 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004672/0.3593, allocations: 228.1 kB / 459.7 MB, free: 27.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007559/0.3601, allocations: 104 kB / 459.8 MB, free: 27.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002315/0.3624, allocations: 1.326 MB / 461.1 MB, free: 26.36 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005951/0.363, allocations: 0.9491 MB / 462.1 MB, free: 25.64 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003757/0.3634, allocations: 112.9 kB / 462.2 MB, free: 25.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001901/0.3636, allocations: 53.88 kB / 462.2 MB, free: 25.61 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3636, allocations: 0 / 462.2 MB, free: 25.61 MB / 350.1 MB Notification: Performance of Templates: time 0.01676/0.3804, allocations: 6.386 MB / 468.6 MB, free: 25.1 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)