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.001552/0.001552, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002043/0.002043, allocations: 196.4 kB / 16.14 MB, free: 6.711 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.329/1.329, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2148/0.2148, allocations: 22.34 MB / 312.3 MB, free: 12.69 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 67.89 kB / 380.1 MB, free: 11.16 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2655/0.2668, allocations: 54.94 MB / 435 MB, free: 39.55 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.002532/0.2694, allocations: 2.021 MB / 437.1 MB, free: 38.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00197/0.2714, allocations: 1.795 MB / 438.8 MB, free: 36.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001788/0.2716, allocations: 13.06 kB / 438.9 MB, free: 36.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00041/0.272, allocations: 139.9 kB / 439 MB, free: 36.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004139/0.2724, allocations: 187.7 kB / 439.2 MB, free: 36.7 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.0004384/0.2729, allocations: 358.8 kB / 439.5 MB, free: 36.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006152/0.2735, allocations: 0.9931 MB / 440.5 MB, free: 36.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002005/0.2737, allocations: 162.7 kB / 440.7 MB, free: 36.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002611/0.274, allocations: 336.3 kB / 441 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003171/0.2743, allocations: 389 kB / 441.4 MB, free: 35.74 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.821e-05/0.2744, allocations: 25.66 kB / 441.4 MB, free: 35.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001253/0.2745, allocations: 56.19 kB / 441.5 MB, free: 35.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000168/0.2747, allocations: 198.3 kB / 441.7 MB, free: 35.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001544/0.2748, allocations: 277.2 kB / 441.9 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004045/0.2752, allocations: 0.6674 MB / 442.6 MB, free: 35.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2753, allocations: 2.969 kB / 442.6 MB, free: 35.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 7.72e-07/0.2753, allocations: 0 / 442.6 MB, free: 35.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.827e-06/0.2753, allocations: 4 kB / 442.6 MB, free: 35.18 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.002681/0.278, allocations: 1.218 MB / 443.8 MB, free: 34.46 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.289e-05/0.278, allocations: 11.81 kB / 443.8 MB, free: 34.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001113/0.2781, allocations: 77.41 kB / 443.9 MB, free: 34.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001324/0.2795, allocations: 0.7293 MB / 444.6 MB, free: 34.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.854e-05/0.2795, allocations: 30.88 kB / 444.7 MB, free: 34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.289e-05/0.2796, allocations: 45.84 kB / 444.7 MB, free: 33.98 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005936/0.2802, allocations: 454.1 kB / 445.2 MB, free: 33.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.2802, allocations: 3.234 kB / 445.2 MB, free: 33.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.362e-05/0.2802, allocations: 11.16 kB / 445.2 MB, free: 33.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.777e-06/0.2802, allocations: 8.906 kB / 445.2 MB, free: 33.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006136/0.2809, allocations: 422.5 kB / 445.6 MB, free: 33.6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001864/0.2827, allocations: 1.629 MB / 447.2 MB, free: 32.6 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005754/0.2833, allocations: 478.1 kB / 447.7 MB, free: 32.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002548/0.2836, allocations: 202.4 kB / 447.9 MB, free: 32.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.173e-05/0.2836, allocations: 3.719 kB / 447.9 MB, free: 32.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.726e-05/0.2837, allocations: 37.97 kB / 447.9 MB, free: 32.28 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.023e-06/0.2837, allocations: 0 / 447.9 MB, free: 32.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.0009242/0.2846, allocations: 0.6293 MB / 448.6 MB, free: 32.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.547e-05/0.2846, allocations: 58.34 kB / 448.6 MB, free: 31.95 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001432/0.2861, allocations: 0.8829 MB / 449.5 MB, free: 31.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.99e-05/0.2861, allocations: 37.64 kB / 449.5 MB, free: 31.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001435/0.2863, allocations: 294.9 kB / 449.8 MB, free: 31.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.48e-05/0.2863, allocations: 161.1 kB / 450 MB, free: 31.22 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001745/0.2865, allocations: 140.8 kB / 450.1 MB, free: 31.15 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.147e-05/0.2866, allocations: 386.8 kB / 450.5 MB, free: 30.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005593/0.2872, allocations: 291.5 kB / 450.8 MB, free: 30.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005929/0.2878, allocations: 411.3 kB / 451.2 MB, free: 30.5 MB / 350.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.004112/0.2919, allocations: 1.681 MB / 452.9 MB, free: 29.79 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.109e-06/0.2919, allocations: 0 / 452.9 MB, free: 29.79 MB / 350.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001546/0.2935, allocations: 0.8292 MB / 453.7 MB, free: 29.47 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.066e-05/0.2935, allocations: 9.219 kB / 453.7 MB, free: 29.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.2935, allocations: 2.219 kB / 453.7 MB, free: 29.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.992e-05/0.2935, allocations: 10.52 kB / 453.7 MB, free: 29.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008633/0.2944, allocations: 204 kB / 453.9 MB, free: 29.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.413e-05/0.2944, allocations: 9.25 kB / 453.9 MB, free: 29.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008701/0.2953, allocations: 166.9 kB / 454.1 MB, free: 29.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.572e-05/0.2954, allocations: 33.62 kB / 454.1 MB, free: 29.39 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.0003122/0.2957, allocations: 248.9 kB / 454.4 MB, free: 29.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001017/0.2958, allocations: 63.78 kB / 454.4 MB, free: 29.17 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008772/0.2967, allocations: 0.526 MB / 454.9 MB, free: 28.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.213e-06/0.2967, allocations: 5.094 kB / 455 MB, free: 28.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.2967, allocations: 4 kB / 455 MB, free: 28.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.2967, allocations: 11.2 kB / 455 MB, free: 28.92 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005865/0.2973, allocations: 0.5896 MB / 455.6 MB, free: 28.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.2973, allocations: 0 / 455.6 MB, free: 28.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005256/0.2979, allocations: 97.38 kB / 455.7 MB, free: 28.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.15e-06/0.2979, allocations: 2.656 kB / 455.7 MB, free: 28.56 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.676e-05/0.2979, allocations: 16.31 kB / 455.7 MB, free: 28.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.496e-06/0.2979, allocations: 1.406 kB / 455.7 MB, free: 28.55 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.2979, allocations: 0 / 455.7 MB, free: 28.55 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001051/0.299, allocations: 0.824 MB / 456.5 MB, free: 28.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001215/0.2991, allocations: 158.4 kB / 456.7 MB, free: 28 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.889e-05/0.2992, allocations: 19.09 kB / 456.7 MB, free: 27.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006094/0.2998, allocations: 84.11 kB / 456.8 MB, free: 27.98 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.216e-05/0.2999, allocations: 45.33 kB / 456.8 MB, free: 27.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.632e-05/0.3, allocations: 13.03 kB / 456.8 MB, free: 27.95 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001296/0.3013, allocations: 0.6558 MB / 457.5 MB, free: 27.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3013, allocations: 0 / 457.5 MB, free: 27.73 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004945/0.3018, allocations: 120 kB / 457.6 MB, free: 27.71 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.000165/0.3019, allocations: 127 kB / 457.7 MB, free: 27.61 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001126/0.3031, allocations: 0.5837 MB / 458.3 MB, free: 27.42 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3031, allocations: 0 / 458.3 MB, free: 27.42 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003335/0.3034, allocations: 231.7 kB / 458.5 MB, free: 27.35 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005372/0.304, allocations: 91.5 kB / 458.6 MB, free: 27.3 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001775/0.3058, allocations: 1.513 MB / 460.1 MB, free: 26.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003918/0.3062, allocations: 0.9517 MB / 461.1 MB, free: 25.68 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003536/0.3065, allocations: 112.1 kB / 461.2 MB, free: 25.67 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001727/0.3067, allocations: 51.81 kB / 461.2 MB, free: 25.66 MB / 350.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3067, allocations: 4 kB / 461.2 MB, free: 25.65 MB / 350.1 MB Notification: Performance of Templates: time 0.01218/0.3189, allocations: 6.002 MB / 467.2 MB, free: 25.27 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)