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.001018/0.001018, allocations: 91.22 kB / 15.06 MB, free: 1.098 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.001119/0.001119, allocations: 172.7 kB / 15.95 MB, free: 208 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.472/1.472, allocations: 223.3 MB / 240 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2399/0.2399, allocations: 22.34 MB / 313.4 MB, free: 13.15 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003238/0.000324, allocations: 8 kB / 381.9 MB, free: 10.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3573/0.3576, allocations: 55.97 MB / 437.9 MB, free: 39.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.001756/0.3594, allocations: 1.546 MB / 439.4 MB, free: 38.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002174/0.3616, allocations: 1.762 MB / 441.2 MB, free: 36.74 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002104/0.3619, allocations: 9.562 kB / 441.2 MB, free: 36.74 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004638/0.3623, allocations: 127.5 kB / 441.3 MB, free: 36.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005069/0.3629, allocations: 176.6 kB / 441.5 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006286/0.3635, allocations: 278.2 kB / 441.8 MB, free: 36.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001028/0.3645, allocations: 0.8784 MB / 442.7 MB, free: 36.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000311/0.3649, allocations: 130 kB / 442.8 MB, free: 36.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004703/0.3653, allocations: 376.2 kB / 443.1 MB, free: 35.94 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005018/0.3658, allocations: 349.3 kB / 443.5 MB, free: 35.81 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.225e-05/0.3659, allocations: 26.25 kB / 443.5 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000161/0.3661, allocations: 43.59 kB / 443.6 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002344/0.3663, allocations: 190.5 kB / 443.7 MB, free: 35.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001143/0.3665, allocations: 112.1 kB / 443.9 MB, free: 35.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005736/0.367, allocations: 0.539 MB / 444.4 MB, free: 35.51 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.007e-06/0.3671, allocations: 0 / 444.4 MB, free: 35.51 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.328e-06/0.3671, allocations: 0 / 444.4 MB, free: 35.51 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.16e-05/0.3671, allocations: 0 / 444.4 MB, free: 35.51 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.002728/0.3698, allocations: 1.117 MB / 445.5 MB, free: 34.87 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.789e-05/0.3699, allocations: 8.281 kB / 445.5 MB, free: 34.87 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001361/0.37, allocations: 78.28 kB / 445.6 MB, free: 34.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001348/0.3714, allocations: 0.7146 MB / 446.3 MB, free: 34.44 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.364e-05/0.3715, allocations: 29.31 kB / 446.3 MB, free: 34.43 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000107/0.3716, allocations: 49.81 kB / 446.4 MB, free: 34.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007492/0.3723, allocations: 446.7 kB / 446.8 MB, free: 34.19 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.581e-05/0.3724, allocations: 3.953 kB / 446.8 MB, free: 34.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.201e-05/0.3724, allocations: 14.31 kB / 446.8 MB, free: 34.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.669e-05/0.3724, allocations: 8.438 kB / 446.8 MB, free: 34.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006861/0.3731, allocations: 422.5 kB / 447.3 MB, free: 34.03 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002202/0.3753, allocations: 1.637 MB / 448.9 MB, free: 33.03 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006886/0.376, allocations: 479.8 kB / 449.4 MB, free: 32.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000297/0.3763, allocations: 197.2 kB / 449.6 MB, free: 32.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.286e-05/0.3764, allocations: 9.328 kB / 449.6 MB, free: 32.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.612e-05/0.3764, allocations: 38.56 kB / 449.6 MB, free: 32.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.673e-06/0.3764, allocations: 3.156 kB / 449.6 MB, free: 32.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.0009852/0.3774, allocations: 0.6193 MB / 450.2 MB, free: 32.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.484e-05/0.3775, allocations: 60.06 kB / 450.3 MB, free: 32.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001488/0.379, allocations: 0.8889 MB / 451.2 MB, free: 32.06 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.218e-05/0.379, allocations: 33.7 kB / 451.2 MB, free: 32.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002033/0.3792, allocations: 292.4 kB / 451.5 MB, free: 31.78 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001105/0.3793, allocations: 162.8 kB / 451.7 MB, free: 31.65 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.265e-05/0.3794, allocations: 14.62 kB / 451.7 MB, free: 31.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.3795, allocations: 384.9 kB / 452 MB, free: 31.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005543/0.3801, allocations: 294.3 kB / 452.3 MB, free: 31.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006342/0.3807, allocations: 411.7 kB / 452.7 MB, free: 31 MB / 350.1 MB Notification: The given system is mixed-determined. [index = 2] Notification: Performance of analyzeInitialSystem (initialization): time 0.004099/0.3848, allocations: 1.528 MB / 454.3 MB, free: 30.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.342e-06/0.3848, allocations: 7.188 kB / 454.3 MB, free: 30.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.00159/0.3864, allocations: 0.8208 MB / 455.1 MB, free: 30.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.18e-05/0.3865, allocations: 12.92 kB / 455.1 MB, free: 30.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.357e-05/0.3865, allocations: 2.75 kB / 455.1 MB, free: 30.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.999e-05/0.3865, allocations: 11.41 kB / 455.1 MB, free: 30.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009115/0.3875, allocations: 208.5 kB / 455.3 MB, free: 30.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.78e-05/0.3875, allocations: 6.469 kB / 455.3 MB, free: 30.21 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008586/0.3883, allocations: 179 kB / 455.5 MB, free: 30.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.287e-05/0.3884, allocations: 26.44 kB / 455.5 MB, free: 30.16 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 (86): * Single equations (assignments): 86 * 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.0004671/0.3889, allocations: 239 kB / 455.8 MB, free: 29.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001227/0.389, allocations: 60 kB / 455.8 MB, free: 29.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00118/0.3902, allocations: 0.5428 MB / 456.4 MB, free: 29.69 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.195e-05/0.3902, allocations: 5.031 kB / 456.4 MB, free: 29.69 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.3902, allocations: 0 / 456.4 MB, free: 29.69 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.271e-06/0.3903, allocations: 1.156 kB / 456.4 MB, free: 29.69 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008921/0.3912, allocations: 0.593 MB / 457 MB, free: 29.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.065e-06/0.3912, allocations: 1.031 kB / 457 MB, free: 29.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005305/0.3917, allocations: 91.22 kB / 457.1 MB, free: 29.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.716e-06/0.3917, allocations: 1.812 kB / 457.1 MB, free: 29.33 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.307e-05/0.3918, allocations: 15.94 kB / 457.1 MB, free: 29.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.412e-06/0.3918, allocations: 6.422 kB / 457.1 MB, free: 29.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.514e-06/0.3918, allocations: 0 / 457.1 MB, free: 29.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0014/0.3932, allocations: 0.8326 MB / 457.9 MB, free: 28.9 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001825/0.3934, allocations: 166.5 kB / 458.1 MB, free: 28.75 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.55e-05/0.3935, allocations: 16.14 kB / 458.1 MB, free: 28.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006161/0.3941, allocations: 92.81 kB / 458.2 MB, free: 28.73 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/0.3943, allocations: 35.83 kB / 458.2 MB, free: 28.72 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.897e-05/0.3943, allocations: 12.69 kB / 458.2 MB, free: 28.72 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00169/0.396, allocations: 0.6581 MB / 458.9 MB, free: 28.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.396, allocations: 0 / 458.9 MB, free: 28.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006788/0.3967, allocations: 124.3 kB / 459 MB, free: 28.47 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.0003021/0.397, allocations: 121 kB / 459.1 MB, free: 28.37 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001498/0.3985, allocations: 0.589 MB / 459.7 MB, free: 28.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3985, allocations: 1.906 kB / 459.7 MB, free: 28.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004473/0.399, allocations: 233.5 kB / 459.9 MB, free: 28.11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006851/0.3997, allocations: 88.98 kB / 460 MB, free: 28.07 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003138/0.4028, allocations: 1.491 MB / 461.5 MB, free: 27.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008826/0.4037, allocations: 0.956 MB / 462.5 MB, free: 26.5 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0005045/0.4042, allocations: 108.8 kB / 462.6 MB, free: 26.49 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002228/0.4045, allocations: 46.47 kB / 462.6 MB, free: 26.48 MB / 350.1 MB Notification: Performance of SimCode: time 1.984e-06/0.4045, allocations: 5.188 kB / 462.6 MB, free: 26.48 MB / 350.1 MB Notification: Performance of Templates: time 0.01827/0.4228, allocations: 5.737 MB / 468.4 MB, free: 26.12 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)