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.001459/0.001459, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001781/0.001781, allocations: 194.6 kB / 16.25 MB, free: 6.629 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.315/1.315, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1946/0.1946, allocations: 22.37 MB / 312.4 MB, free: 12.59 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 55.91 kB / 380.3 MB, free: 10.97 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.273/0.2743, allocations: 54.94 MB / 435.2 MB, free: 39.54 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.002841/0.2772, allocations: 2.02 MB / 437.3 MB, free: 38.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002206/0.2794, allocations: 1.795 MB / 439 MB, free: 36.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002012/0.2797, allocations: 9.375 kB / 439.1 MB, free: 36.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004699/0.2801, allocations: 140.3 kB / 439.2 MB, free: 36.78 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004706/0.2806, allocations: 193.8 kB / 439.4 MB, free: 36.68 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.0004701/0.2811, allocations: 356.2 kB / 439.7 MB, free: 36.47 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007506/0.2819, allocations: 1.062 MB / 440.8 MB, free: 36.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002261/0.2821, allocations: 170.8 kB / 441 MB, free: 35.95 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003351/0.2825, allocations: 416.8 kB / 441.4 MB, free: 35.76 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003669/0.2828, allocations: 408.2 kB / 441.8 MB, free: 35.58 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.181e-05/0.2829, allocations: 65.28 kB / 441.8 MB, free: 35.58 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001422/0.2831, allocations: 100.8 kB / 441.9 MB, free: 35.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001797/0.2833, allocations: 232.8 kB / 442.2 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001761/0.2834, allocations: 304.3 kB / 442.5 MB, free: 35.24 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004642/0.2839, allocations: 0.6994 MB / 443.2 MB, free: 34.94 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.2839, allocations: 0 / 443.2 MB, free: 34.94 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2839, allocations: 3.938 kB / 443.2 MB, free: 34.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.889e-06/0.2839, allocations: 6.969 kB / 443.2 MB, free: 34.93 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.002743/0.2867, allocations: 1.209 MB / 444.4 MB, free: 34.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.2867, allocations: 9.25 kB / 444.4 MB, free: 34.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001212/0.2869, allocations: 73.81 kB / 444.5 MB, free: 34.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00143/0.2883, allocations: 0.7295 MB / 445.2 MB, free: 33.77 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.133e-05/0.2884, allocations: 35.06 kB / 445.2 MB, free: 33.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.718e-05/0.2884, allocations: 47.45 kB / 445.3 MB, free: 33.74 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00064/0.2891, allocations: 446.5 kB / 445.7 MB, free: 33.52 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.502e-05/0.2891, allocations: 10.92 kB / 445.7 MB, free: 33.51 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.612e-05/0.2891, allocations: 14.78 kB / 445.7 MB, free: 33.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/0.2892, allocations: 12.5 kB / 445.7 MB, free: 33.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006301/0.2898, allocations: 423 kB / 446.2 MB, free: 33.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001899/0.2917, allocations: 1.637 MB / 447.8 MB, free: 32.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005936/0.2923, allocations: 483.7 kB / 448.3 MB, free: 32.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002618/0.2926, allocations: 198.1 kB / 448.5 MB, free: 32.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.076e-05/0.2926, allocations: 5.25 kB / 448.5 MB, free: 32.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.796e-05/0.2927, allocations: 37.19 kB / 448.5 MB, free: 32.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.703e-06/0.2927, allocations: 0 / 448.5 MB, free: 32.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.0009325/0.2936, allocations: 0.6281 MB / 449.1 MB, free: 31.76 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.628e-05/0.2937, allocations: 56.72 kB / 449.2 MB, free: 31.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001488/0.2951, allocations: 0.8816 MB / 450.1 MB, free: 31.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.174e-05/0.2952, allocations: 36.83 kB / 450.1 MB, free: 31.34 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001411/0.2953, allocations: 288.2 kB / 450.4 MB, free: 31.1 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.96e-05/0.2954, allocations: 168.8 kB / 450.5 MB, free: 30.97 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001614/0.2956, allocations: 132.2 kB / 450.7 MB, free: 30.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.788e-05/0.2957, allocations: 390.2 kB / 451.1 MB, free: 30.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005746/0.2963, allocations: 288.8 kB / 451.3 MB, free: 30.46 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006026/0.2969, allocations: 413.7 kB / 451.7 MB, free: 30.25 MB / 350.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.004272/0.3012, allocations: 1.681 MB / 453.4 MB, free: 29.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.3012, allocations: 3.938 kB / 453.4 MB, free: 29.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001549/0.3027, allocations: 0.8279 MB / 454.3 MB, free: 29.21 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.361e-05/0.3028, allocations: 6.812 kB / 454.3 MB, free: 29.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.023e-05/0.3028, allocations: 2.781 kB / 454.3 MB, free: 29.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.346e-05/0.3028, allocations: 14.05 kB / 454.3 MB, free: 29.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008966/0.3037, allocations: 193.6 kB / 454.5 MB, free: 29.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.368e-05/0.3037, allocations: 13.22 kB / 454.5 MB, free: 29.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009146/0.3047, allocations: 169.1 kB / 454.6 MB, free: 29.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.06e-05/0.3047, allocations: 27.09 kB / 454.7 MB, free: 29.15 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.0003233/0.3051, allocations: 245.8 kB / 454.9 MB, free: 28.96 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001093/0.3052, allocations: 63.97 kB / 455 MB, free: 28.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008581/0.306, allocations: 0.5246 MB / 455.5 MB, free: 28.69 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.306, allocations: 4.438 kB / 455.5 MB, free: 28.69 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/0.3061, allocations: 5.562 kB / 455.5 MB, free: 28.69 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.3061, allocations: 6.984 kB / 455.5 MB, free: 28.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005941/0.3067, allocations: 0.5998 MB / 456.1 MB, free: 28.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.3067, allocations: 1.125 kB / 456.1 MB, free: 28.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005396/0.3072, allocations: 93.14 kB / 456.2 MB, free: 28.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.3072, allocations: 6.594 kB / 456.2 MB, free: 28.31 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.905e-05/0.3073, allocations: 11.95 kB / 456.2 MB, free: 28.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.417e-06/0.3073, allocations: 5.188 kB / 456.2 MB, free: 28.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.3073, allocations: 5.297 kB / 456.2 MB, free: 28.3 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001037/0.3083, allocations: 0.8337 MB / 457.1 MB, free: 27.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001102/0.3085, allocations: 155.8 kB / 457.2 MB, free: 27.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.767e-05/0.3085, allocations: 14.95 kB / 457.2 MB, free: 27.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006497/0.3092, allocations: 83.95 kB / 457.3 MB, free: 27.72 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.962e-05/0.3093, allocations: 41.97 kB / 457.4 MB, free: 27.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.68e-05/0.3093, allocations: 9.156 kB / 457.4 MB, free: 27.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001354/0.3107, allocations: 0.6574 MB / 458 MB, free: 27.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3107, allocations: 1.125 kB / 458 MB, free: 27.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004635/0.3112, allocations: 119.2 kB / 458.1 MB, free: 27.46 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.0001538/0.3113, allocations: 123.8 kB / 458.3 MB, free: 27.36 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001275/0.3126, allocations: 0.6438 MB / 458.9 MB, free: 27.15 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3126, allocations: 3.938 kB / 458.9 MB, free: 27.15 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003374/0.313, allocations: 231.4 kB / 459.1 MB, free: 27.07 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005567/0.3135, allocations: 91.95 kB / 459.2 MB, free: 27.04 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001807/0.3154, allocations: 1.52 MB / 460.7 MB, free: 26.13 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004114/0.3158, allocations: 0.9591 MB / 461.7 MB, free: 25.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003239/0.3161, allocations: 109.8 kB / 461.8 MB, free: 25.39 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000171/0.3163, allocations: 47.91 kB / 461.9 MB, free: 25.38 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3163, allocations: 0 / 461.9 MB, free: 25.38 MB / 350.1 MB Notification: Performance of Templates: time 0.01238/0.3287, allocations: 6.265 MB / 468.1 MB, free: 24.99 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)