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.001165/0.001165, 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.001159/0.001159, allocations: 192.6 kB / 16.25 MB, free: 6.621 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.169/1.169, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1762/0.1762, allocations: 22.35 MB / 312.4 MB, free: 12.62 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001156/0.001156, allocations: 63.91 kB / 380.4 MB, free: 10.88 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2033/0.2045, allocations: 54.93 MB / 435.3 MB, free: 39.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.002275/0.2068, allocations: 2.02 MB / 437.4 MB, free: 38.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001534/0.2083, allocations: 1.801 MB / 439.2 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001451/0.2085, allocations: 9.531 kB / 439.2 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003543/0.2088, allocations: 140.8 kB / 439.3 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004113/0.2093, allocations: 189.5 kB / 439.5 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.0003688/0.2096, allocations: 355.3 kB / 439.8 MB, free: 36.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005949/0.2102, allocations: 1.074 MB / 440.9 MB, free: 36.15 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000187/0.2104, allocations: 160.4 kB / 441.1 MB, free: 36.08 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002432/0.2107, allocations: 417.1 kB / 441.5 MB, free: 35.89 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002718/0.211, allocations: 404.2 kB / 441.9 MB, free: 35.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.928e-05/0.211, allocations: 66.59 kB / 441.9 MB, free: 35.72 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001126/0.2112, allocations: 101.2 kB / 442 MB, free: 35.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001444/0.2113, allocations: 236 kB / 442.3 MB, free: 35.6 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001447/0.2115, allocations: 308.8 kB / 442.6 MB, free: 35.37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003722/0.2118, allocations: 0.7089 MB / 443.3 MB, free: 35.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.2119, allocations: 4 kB / 443.3 MB, free: 35.06 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2119, allocations: 0 / 443.3 MB, free: 35.06 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.295e-06/0.2119, allocations: 2.844 kB / 443.3 MB, free: 35.06 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.002435/0.2143, allocations: 1.235 MB / 444.5 MB, free: 34.33 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.985e-05/0.2144, allocations: 11.41 kB / 444.5 MB, free: 34.33 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.748e-05/0.2144, allocations: 77.02 kB / 444.6 MB, free: 34.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.151e-05/0.2145, allocations: 74.91 kB / 444.7 MB, free: 34.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00124/0.2158, allocations: 0.7471 MB / 445.4 MB, free: 33.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.56e-05/0.2158, allocations: 33.5 kB / 445.5 MB, free: 33.81 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.418e-05/0.2159, allocations: 50.44 kB / 445.5 MB, free: 33.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005374/0.2164, allocations: 451.6 kB / 445.9 MB, free: 33.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.2164, allocations: 0 / 445.9 MB, free: 33.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.202e-05/0.2165, allocations: 25.25 kB / 446 MB, free: 33.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.2165, allocations: 8.25 kB / 446 MB, free: 33.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005701/0.217, allocations: 417.1 kB / 446.4 MB, free: 33.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001625/0.2187, allocations: 1.649 MB / 448 MB, free: 32.4 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005099/0.2192, allocations: 480.8 kB / 448.5 MB, free: 32.2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002284/0.2194, allocations: 199.5 kB / 448.7 MB, free: 32.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.687e-05/0.2195, allocations: 5.25 kB / 448.7 MB, free: 32.12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.335e-05/0.2195, allocations: 40.52 kB / 448.7 MB, free: 32.08 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.442e-06/0.2195, allocations: 0 / 448.7 MB, free: 32.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.0008184/0.2203, allocations: 0.6308 MB / 449.4 MB, free: 31.81 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.003e-05/0.2204, allocations: 54.12 kB / 449.4 MB, free: 31.75 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001347/0.2217, allocations: 0.9079 MB / 450.3 MB, free: 31.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.506e-05/0.2217, allocations: 33.7 kB / 450.4 MB, free: 31.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001278/0.2219, allocations: 308.5 kB / 450.7 MB, free: 31.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.046e-05/0.222, allocations: 156.7 kB / 450.8 MB, free: 31.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001103/0.2221, allocations: 113 kB / 450.9 MB, free: 30.95 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.71e-05/0.2221, allocations: 386.3 kB / 451.3 MB, free: 30.61 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002474/0.2224, allocations: 190.9 kB / 451.5 MB, free: 30.54 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002658/0.2227, allocations: 301.4 kB / 451.8 MB, free: 30.35 MB / 350.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.002853/0.2255, allocations: 1.38 MB / 453.2 MB, free: 29.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.2255, allocations: 7.938 kB / 453.2 MB, free: 29.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007401/0.2263, allocations: 0.614 MB / 453.8 MB, free: 29.43 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.2263, allocations: 10.72 kB / 453.8 MB, free: 29.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.2263, allocations: 2.906 kB / 453.8 MB, free: 29.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.2263, allocations: 5.875 kB / 453.8 MB, free: 29.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006353/0.227, allocations: 158.8 kB / 454 MB, free: 29.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.227, allocations: 5.5 kB / 454 MB, free: 29.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006/0.2276, allocations: 131.5 kB / 454.1 MB, free: 29.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.24e-05/0.2276, allocations: 18.94 kB / 454.1 MB, free: 29.37 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.000229/0.2279, allocations: 245.9 kB / 454.4 MB, free: 29.19 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.655e-05/0.228, allocations: 61.03 kB / 454.4 MB, free: 29.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007334/0.2287, allocations: 0.5377 MB / 455 MB, free: 28.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.2287, allocations: 5.438 kB / 455 MB, free: 28.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.2287, allocations: 3.938 kB / 455 MB, free: 28.9 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.2287, allocations: 3.188 kB / 455 MB, free: 28.9 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005006/0.2292, allocations: 0.6116 MB / 455.6 MB, free: 28.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.2293, allocations: 0 / 455.6 MB, free: 28.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004865/0.2297, allocations: 92.45 kB / 455.7 MB, free: 28.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.015e-06/0.2298, allocations: 1.344 kB / 455.7 MB, free: 28.54 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.646e-05/0.2298, allocations: 20.45 kB / 455.7 MB, free: 28.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.2298, allocations: 1.375 kB / 455.7 MB, free: 28.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2298, allocations: 9.312 kB / 455.7 MB, free: 28.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000902/0.2307, allocations: 0.8286 MB / 456.5 MB, free: 28.1 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000105/0.2308, allocations: 163.2 kB / 456.7 MB, free: 27.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.293e-05/0.2309, allocations: 16.66 kB / 456.7 MB, free: 27.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005979/0.2315, allocations: 98.52 kB / 456.8 MB, free: 27.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.13e-05/0.2316, allocations: 35.47 kB / 456.8 MB, free: 27.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.386e-05/0.2316, allocations: 8.875 kB / 456.8 MB, free: 27.92 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001221/0.2329, allocations: 0.6888 MB / 457.5 MB, free: 27.69 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2329, allocations: 0 / 457.5 MB, free: 27.69 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003854/0.2333, allocations: 112.1 kB / 457.6 MB, free: 27.66 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.001114/0.2344, allocations: 1.38 MB / 459 MB, free: 26.71 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007792/0.2352, allocations: 0.5263 MB / 459.6 MB, free: 26.54 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2352, allocations: 0 / 459.6 MB, free: 26.54 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000291/0.2355, allocations: 230.8 kB / 459.8 MB, free: 26.46 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004895/0.236, allocations: 108 kB / 459.9 MB, free: 26.41 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008593/0.2446, allocations: 6.769 MB / 466.7 MB, free: 22.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003282/0.2449, allocations: 0.9596 MB / 467.6 MB, free: 22.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003017/0.2452, allocations: 114.7 kB / 467.7 MB, free: 22.11 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002877/0.2455, allocations: 245.8 kB / 468 MB, free: 21.93 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2455, allocations: 3.938 kB / 468 MB, free: 21.93 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0213/0.2668, allocations: 12.05 MB / 480 MB, free: 16.89 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001325/0.267, allocations: 194.3 kB / 480.2 MB, free: 16.64 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.803/2.07, allocations: 4.062 kB / 480.2 MB, free: 16.63 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)