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.0009086/0.000909, allocations: 90.83 kB / 15.36 MB, free: 0.7383 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.005219/0.005219, allocations: 169.6 kB / 16.26 MB, free: 6.613 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.253/1.253, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1835/0.1835, allocations: 22.36 MB / 313.8 MB, free: 13.1 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002717/0.0002717, allocations: 8 kB / 382.6 MB, free: 10.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.218/0.2183, allocations: 55.99 MB / 438.6 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.001449/0.2198, allocations: 1.645 MB / 440.2 MB, free: 38.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001623/0.2214, allocations: 1.778 MB / 442 MB, free: 36.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001469/0.2216, allocations: 9.656 kB / 442 MB, free: 36.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003398/0.222, allocations: 140.3 kB / 442.1 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003991/0.2224, allocations: 194.2 kB / 442.3 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.0003965/0.2228, allocations: 355.4 kB / 442.7 MB, free: 36.47 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006047/0.2234, allocations: 0.9925 MB / 443.7 MB, free: 36.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001957/0.2236, allocations: 153.6 kB / 443.8 MB, free: 36.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002358/0.2238, allocations: 324.1 kB / 444.1 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002928/0.2241, allocations: 357 kB / 444.5 MB, free: 35.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.424e-05/0.2242, allocations: 23.88 kB / 444.5 MB, free: 35.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000108/0.2243, allocations: 57.66 kB / 444.6 MB, free: 35.74 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001499/0.2245, allocations: 190.5 kB / 444.8 MB, free: 35.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001438/0.2246, allocations: 282.2 kB / 445 MB, free: 35.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003646/0.225, allocations: 0.653 MB / 445.7 MB, free: 35.24 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.225, allocations: 2.938 kB / 445.7 MB, free: 35.24 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.225, allocations: 3.938 kB / 445.7 MB, free: 35.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.642e-06/0.225, allocations: 0 / 445.7 MB, free: 35.24 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.002494/0.2275, allocations: 1.114 MB / 446.8 MB, free: 34.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.768e-05/0.2276, allocations: 17.62 kB / 446.8 MB, free: 34.58 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.509e-05/0.2277, allocations: 75.84 kB / 446.9 MB, free: 34.54 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001353/0.229, allocations: 0.7353 MB / 447.6 MB, free: 34.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.579e-05/0.229, allocations: 36.69 kB / 447.7 MB, free: 34.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.738e-05/0.2291, allocations: 44.34 kB / 447.7 MB, free: 34.1 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005822/0.2297, allocations: 449.4 kB / 448.2 MB, free: 33.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.2297, allocations: 0 / 448.2 MB, free: 33.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.667e-05/0.2298, allocations: 19.55 kB / 448.2 MB, free: 33.87 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.165e-06/0.2298, allocations: 14.41 kB / 448.2 MB, free: 33.87 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006179/0.2304, allocations: 420.4 kB / 448.6 MB, free: 33.72 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001746/0.2322, allocations: 1.641 MB / 450.2 MB, free: 32.72 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005682/0.2327, allocations: 475.1 kB / 450.7 MB, free: 32.53 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002608/0.233, allocations: 202.2 kB / 450.9 MB, free: 32.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.402e-05/0.2331, allocations: 6.438 kB / 450.9 MB, free: 32.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.337e-05/0.2331, allocations: 40.88 kB / 450.9 MB, free: 32.4 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.522e-06/0.2331, allocations: 0 / 450.9 MB, free: 32.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.0008919/0.234, allocations: 0.6236 MB / 451.6 MB, free: 32.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.856e-05/0.234, allocations: 56.66 kB / 451.6 MB, free: 32.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001464/0.2355, allocations: 0.8905 MB / 452.5 MB, free: 31.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.833e-05/0.2355, allocations: 36.33 kB / 452.5 MB, free: 31.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001355/0.2357, allocations: 290.2 kB / 452.8 MB, free: 31.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.065e-05/0.2357, allocations: 165.7 kB / 453 MB, free: 31.35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.477e-05/0.2358, allocations: 75.81 kB / 453.1 MB, free: 31.31 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.091e-05/0.2359, allocations: 383.1 kB / 453.4 MB, free: 30.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005871/0.2365, allocations: 294.9 kB / 453.7 MB, free: 30.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000614/0.2371, allocations: 415.8 kB / 454.1 MB, free: 30.66 MB / 350.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.004259/0.2414, allocations: 1.724 MB / 455.9 MB, free: 29.94 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.2414, allocations: 5.469 kB / 455.9 MB, free: 29.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001536/0.2429, allocations: 0.8312 MB / 456.7 MB, free: 29.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.243, allocations: 6.469 kB / 456.7 MB, free: 29.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.243, allocations: 2.719 kB / 456.7 MB, free: 29.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.7e-05/0.243, allocations: 14.64 kB / 456.7 MB, free: 29.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008777/0.2439, allocations: 200.6 kB / 456.9 MB, free: 29.59 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.132e-05/0.2439, allocations: 11.31 kB / 456.9 MB, free: 29.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009119/0.2448, allocations: 182.9 kB / 457.1 MB, free: 29.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.283e-05/0.2449, allocations: 30.94 kB / 457.1 MB, free: 29.54 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 (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.0002583/0.2452, allocations: 244.8 kB / 457.4 MB, free: 29.35 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.085e-05/0.2453, allocations: 61.16 kB / 457.4 MB, free: 29.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008274/0.2461, allocations: 0.5266 MB / 458 MB, free: 29.08 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.2461, allocations: 13.06 kB / 458 MB, free: 29.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.2461, allocations: 5.312 kB / 458 MB, free: 29.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.2461, allocations: 7.875 kB / 458 MB, free: 29.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005262/0.2467, allocations: 0.5887 MB / 458.6 MB, free: 28.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.2467, allocations: 0 / 458.6 MB, free: 28.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005194/0.2472, allocations: 95 kB / 458.7 MB, free: 28.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.037e-06/0.2472, allocations: 2.188 kB / 458.7 MB, free: 28.71 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.576e-05/0.2472, allocations: 13.25 kB / 458.7 MB, free: 28.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.2473, allocations: 4.375 kB / 458.7 MB, free: 28.7 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.2473, allocations: 1 kB / 458.7 MB, free: 28.7 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001016/0.2483, allocations: 0.8306 MB / 459.5 MB, free: 28.28 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001089/0.2484, allocations: 162.3 kB / 459.7 MB, free: 28.13 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.495e-05/0.2485, allocations: 17.78 kB / 459.7 MB, free: 28.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006761/0.2492, allocations: 89.25 kB / 459.8 MB, free: 28.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.49e-05/0.2493, allocations: 36.86 kB / 459.8 MB, free: 28.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.569e-05/0.2493, allocations: 16.36 kB / 459.8 MB, free: 28.1 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00141/0.2507, allocations: 0.664 MB / 460.5 MB, free: 27.88 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.2507, allocations: 0 / 460.5 MB, free: 27.88 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004378/0.2512, allocations: 124.5 kB / 460.6 MB, free: 27.85 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.0001385/0.2513, allocations: 116.8 kB / 460.7 MB, free: 27.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001111/0.2524, allocations: 0.589 MB / 461.3 MB, free: 27.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.2524, allocations: 9.125 kB / 461.3 MB, free: 27.56 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003357/0.2528, allocations: 230.3 kB / 461.6 MB, free: 27.49 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005532/0.2533, allocations: 89.91 kB / 461.6 MB, free: 27.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001619/0.255, allocations: 1.55 MB / 463.2 MB, free: 26.55 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000347/0.2553, allocations: 0.952 MB / 464.1 MB, free: 25.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002998/0.2556, allocations: 112.4 kB / 464.3 MB, free: 25.81 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001677/0.2558, allocations: 51 kB / 464.3 MB, free: 25.8 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2558, allocations: 4 kB / 464.3 MB, free: 25.79 MB / 350.1 MB Notification: Performance of Templates: time 0.01059/0.2664, allocations: 5.89 MB / 470.2 MB, free: 25.41 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)