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: "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Decoupling,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Decoupling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Decoupling,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Decoupling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001735/0.001735, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00177/0.00177, allocations: 197.6 kB / 16.14 MB, free: 6.66 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.063/1.063, allocations: 222.9 MB / 239.8 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1516/0.1516, allocations: 22.36 MB / 312.3 MB, free: 12.67 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009762/0.0009762, allocations: 55.91 kB / 380.2 MB, free: 11.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1791/0.1801, allocations: 54.94 MB / 435.2 MB, free: 39.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.002047/0.1822, allocations: 2.026 MB / 437.2 MB, free: 38.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001625/0.1838, allocations: 1.795 MB / 439 MB, free: 36.99 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002074/0.1841, allocations: 11.28 kB / 439 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003663/0.1844, allocations: 139.4 kB / 439.1 MB, free: 36.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003786/0.1848, allocations: 190.8 kB / 439.3 MB, free: 36.82 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.0004026/0.1852, allocations: 353.7 kB / 439.7 MB, free: 36.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005763/0.1858, allocations: 0.9962 MB / 440.7 MB, free: 36.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001808/0.186, allocations: 161.1 kB / 440.8 MB, free: 36.15 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002646/0.1863, allocations: 335.8 kB / 441.1 MB, free: 36.03 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002905/0.1866, allocations: 384.5 kB / 441.5 MB, free: 35.87 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.762e-05/0.1867, allocations: 26.06 kB / 441.5 MB, free: 35.87 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001129/0.1868, allocations: 65.89 kB / 441.6 MB, free: 35.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001391/0.1869, allocations: 198.5 kB / 441.8 MB, free: 35.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001478/0.1871, allocations: 267.1 kB / 442.1 MB, free: 35.6 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003438/0.1874, allocations: 0.6818 MB / 442.7 MB, free: 35.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.1874, allocations: 0 / 442.7 MB, free: 35.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.62e-07/0.1874, allocations: 3.938 kB / 442.7 MB, free: 35.31 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.358e-05/0.1875, allocations: 4 kB / 442.8 MB, free: 35.31 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.00235/0.1898, allocations: 1.23 MB / 444 MB, free: 34.58 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.3e-05/0.1898, allocations: 15.31 kB / 444 MB, free: 34.58 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.29e-05/0.1899, allocations: 73.2 kB / 444.1 MB, free: 34.52 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001022/0.19, allocations: 75.88 kB / 444.1 MB, free: 34.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00116/0.1912, allocations: 0.7529 MB / 444.9 MB, free: 34.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.037e-05/0.1912, allocations: 28.62 kB / 444.9 MB, free: 34.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.2e-05/0.1913, allocations: 49.31 kB / 445 MB, free: 34.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004899/0.1918, allocations: 456 kB / 445.4 MB, free: 33.81 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.1918, allocations: 4 kB / 445.4 MB, free: 33.81 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.84e-05/0.1918, allocations: 18.78 kB / 445.4 MB, free: 33.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.782e-06/0.1918, allocations: 8.844 kB / 445.4 MB, free: 33.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005192/0.1923, allocations: 423.4 kB / 445.9 MB, free: 33.65 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001509/0.1939, allocations: 1.644 MB / 447.5 MB, free: 32.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004836/0.1944, allocations: 479.6 kB / 448 MB, free: 32.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002133/0.1946, allocations: 199.1 kB / 448.2 MB, free: 32.37 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.294e-05/0.1946, allocations: 5.25 kB / 448.2 MB, free: 32.37 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.157e-05/0.1946, allocations: 41.03 kB / 448.2 MB, free: 32.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.263e-06/0.1946, allocations: 3.938 kB / 448.2 MB, free: 32.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.0007574/0.1954, allocations: 0.6244 MB / 448.8 MB, free: 32.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.668e-05/0.1954, allocations: 61.09 kB / 448.9 MB, free: 31.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001214/0.1966, allocations: 0.9056 MB / 449.8 MB, free: 31.67 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.273e-05/0.1967, allocations: 32.05 kB / 449.8 MB, free: 31.64 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001222/0.1968, allocations: 313.4 kB / 450.1 MB, free: 31.38 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.718e-05/0.1969, allocations: 159.9 kB / 450.3 MB, free: 31.26 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001011/0.197, allocations: 105.7 kB / 450.4 MB, free: 31.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.067e-05/0.197, allocations: 388.7 kB / 450.8 MB, free: 30.85 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002323/0.1973, allocations: 187.1 kB / 451 MB, free: 30.78 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002528/0.1975, allocations: 302.8 kB / 451.3 MB, free: 30.59 MB / 350.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.002649/0.2002, allocations: 1.383 MB / 452.6 MB, free: 29.95 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.2002, allocations: 0 / 452.6 MB, free: 29.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0006503/0.2009, allocations: 0.621 MB / 453.3 MB, free: 29.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.132e-05/0.2009, allocations: 6.156 kB / 453.3 MB, free: 29.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.2009, allocations: 3.062 kB / 453.3 MB, free: 29.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.14e-05/0.2009, allocations: 6.422 kB / 453.3 MB, free: 29.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005787/0.2015, allocations: 152.4 kB / 453.4 MB, free: 29.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.187e-06/0.2015, allocations: 9.781 kB / 453.4 MB, free: 29.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005484/0.2021, allocations: 129.5 kB / 453.6 MB, free: 29.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.004e-05/0.2021, allocations: 27.97 kB / 453.6 MB, free: 29.61 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 (70): * Single equations (assignments): 70 * 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.0002015/0.2023, allocations: 236.1 kB / 453.8 MB, free: 29.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.15e-05/0.2024, allocations: 59.97 kB / 453.9 MB, free: 29.4 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006726/0.2031, allocations: 0.5348 MB / 454.4 MB, free: 29.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.2031, allocations: 3.562 kB / 454.4 MB, free: 29.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.2031, allocations: 9.031 kB / 454.4 MB, free: 29.15 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.2031, allocations: 6.469 kB / 454.4 MB, free: 29.14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000447/0.2035, allocations: 0.613 MB / 455 MB, free: 28.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.2036, allocations: 0 / 455 MB, free: 28.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004644/0.204, allocations: 91.91 kB / 455.1 MB, free: 28.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.204, allocations: 2.219 kB / 455.1 MB, free: 28.78 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.185e-05/0.2041, allocations: 19.66 kB / 455.2 MB, free: 28.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/0.2041, allocations: 1.156 kB / 455.2 MB, free: 28.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2041, allocations: 5 kB / 455.2 MB, free: 28.76 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008477/0.2049, allocations: 0.8327 MB / 456 MB, free: 28.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.532e-05/0.205, allocations: 166.4 kB / 456.2 MB, free: 28.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.586e-05/0.2051, allocations: 12.69 kB / 456.2 MB, free: 28.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005473/0.2057, allocations: 97.75 kB / 456.3 MB, free: 28.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.838e-05/0.2057, allocations: 34.45 kB / 456.3 MB, free: 28.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.084e-05/0.2058, allocations: 8.781 kB / 456.3 MB, free: 28.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001098/0.2069, allocations: 0.6922 MB / 457 MB, free: 27.93 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2069, allocations: 4 kB / 457 MB, free: 27.93 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003397/0.2072, allocations: 110.7 kB / 457.1 MB, free: 27.91 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.00102/0.2082, allocations: 1.387 MB / 458.5 MB, free: 26.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005914/0.2088, allocations: 483.2 kB / 459 MB, free: 26.79 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.422e-06/0.2089, allocations: 1.156 kB / 459 MB, free: 26.79 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002756/0.2091, allocations: 233.5 kB / 459.2 MB, free: 26.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004317/0.2096, allocations: 91.17 kB / 459.3 MB, free: 26.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007835/0.2174, allocations: 6.764 MB / 466.1 MB, free: 23.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003095/0.2177, allocations: 0.9555 MB / 467 MB, free: 22.4 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002687/0.218, allocations: 120 kB / 467.1 MB, free: 22.38 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002659/0.2183, allocations: 244.4 kB / 467.4 MB, free: 22.2 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2183, allocations: 0 / 467.4 MB, free: 22.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01886/0.2372, allocations: 11.73 MB / 479.1 MB, free: 17.67 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001027/0.2373, allocations: 191.9 kB / 479.3 MB, free: 17.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.569/1.806, allocations: 3.938 kB / 479.3 MB, free: 17.41 MB / 350.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_Decoupling_fmu --startTime=0 --stopTime=20 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_control_structures_Decoupling.fmu > AES_AES.Coursework.Typical_control_structures.Decoupling.pipe 2>&1)