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.001147/0.001147, 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.00112/0.00112, allocations: 194 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.171/1.171, allocations: 222.9 MB / 239.8 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.171/0.171, allocations: 22.34 MB / 312.3 MB, free: 12.63 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 63.91 kB / 380.2 MB, free: 11.03 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2057/0.2069, allocations: 54.94 MB / 435.1 MB, free: 39.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.002318/0.2092, allocations: 2.021 MB / 437.2 MB, free: 38.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001515/0.2107, allocations: 1.79 MB / 439 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001431/0.2109, allocations: 13.94 kB / 439 MB, free: 36.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003525/0.2113, allocations: 134.6 kB / 439.1 MB, free: 36.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000367/0.2116, allocations: 197.7 kB / 439.3 MB, free: 36.74 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.0003681/0.212, allocations: 352.6 kB / 439.6 MB, free: 36.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005684/0.2126, allocations: 0.998 MB / 440.6 MB, free: 36.14 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001879/0.2128, allocations: 163.6 kB / 440.8 MB, free: 36.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002217/0.213, allocations: 334.2 kB / 441.1 MB, free: 35.94 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002826/0.2133, allocations: 383.7 kB / 441.5 MB, free: 35.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.228e-05/0.2134, allocations: 28.34 kB / 441.5 MB, free: 35.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001233/0.2135, allocations: 57.06 kB / 441.6 MB, free: 35.78 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001502/0.2137, allocations: 205.1 kB / 441.8 MB, free: 35.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001474/0.2138, allocations: 267.9 kB / 442 MB, free: 35.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000374/0.2142, allocations: 0.6895 MB / 442.7 MB, free: 35.22 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.646e-06/0.2142, allocations: 0 / 442.7 MB, free: 35.22 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.81e-07/0.2142, allocations: 0 / 442.7 MB, free: 35.22 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.2142, allocations: 0 / 442.7 MB, free: 35.22 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.002574/0.2168, allocations: 1.228 MB / 444 MB, free: 34.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3e-05/0.2168, allocations: 15.31 kB / 444 MB, free: 34.49 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.801e-05/0.2169, allocations: 84.22 kB / 444.1 MB, free: 34.42 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.079e-05/0.217, allocations: 78.19 kB / 444.1 MB, free: 34.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001322/0.2183, allocations: 0.7536 MB / 444.9 MB, free: 33.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.952e-05/0.2184, allocations: 34.69 kB / 444.9 MB, free: 33.95 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.734e-05/0.2184, allocations: 49.06 kB / 445 MB, free: 33.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005521/0.219, allocations: 455 kB / 445.4 MB, free: 33.71 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.219, allocations: 0 / 445.4 MB, free: 33.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.174e-05/0.219, allocations: 14.56 kB / 445.4 MB, free: 33.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.626e-06/0.219, allocations: 8.344 kB / 445.4 MB, free: 33.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005814/0.2196, allocations: 418.2 kB / 445.8 MB, free: 33.56 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001663/0.2213, allocations: 1.65 MB / 447.5 MB, free: 32.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005397/0.2219, allocations: 478.1 kB / 448 MB, free: 32.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002434/0.2221, allocations: 199.6 kB / 448.2 MB, free: 32.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.612e-05/0.2221, allocations: 3.688 kB / 448.2 MB, free: 32.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.758e-05/0.2222, allocations: 37.5 kB / 448.2 MB, free: 32.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.433e-06/0.2222, allocations: 0 / 448.2 MB, free: 32.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.0008501/0.223, allocations: 0.6269 MB / 448.8 MB, free: 31.97 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.253e-05/0.2231, allocations: 59.69 kB / 448.9 MB, free: 31.9 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001357/0.2244, allocations: 0.9086 MB / 449.8 MB, free: 31.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.686e-05/0.2245, allocations: 36.33 kB / 449.8 MB, free: 31.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001379/0.2246, allocations: 304.2 kB / 450.1 MB, free: 31.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.367e-05/0.2247, allocations: 161.3 kB / 450.3 MB, free: 31.17 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001097/0.2248, allocations: 111.4 kB / 450.4 MB, free: 31.11 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.965e-05/0.2249, allocations: 390.1 kB / 450.8 MB, free: 30.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002545/0.2251, allocations: 190.7 kB / 451 MB, free: 30.69 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002787/0.2254, allocations: 295.6 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.002947/0.2284, allocations: 1.384 MB / 452.6 MB, free: 29.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.2284, allocations: 0 / 452.6 MB, free: 29.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0007233/0.2291, allocations: 0.621 MB / 453.2 MB, free: 29.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/0.2291, allocations: 6.25 kB / 453.3 MB, free: 29.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.2292, allocations: 3.219 kB / 453.3 MB, free: 29.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.2292, allocations: 3 kB / 453.3 MB, free: 29.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006384/0.2298, allocations: 155.6 kB / 453.4 MB, free: 29.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.063e-05/0.2298, allocations: 9.688 kB / 453.4 MB, free: 29.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006115/0.2305, allocations: 132.8 kB / 453.6 MB, free: 29.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.261e-05/0.2305, allocations: 20.12 kB / 453.6 MB, free: 29.52 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.0002253/0.2307, allocations: 246.2 kB / 453.8 MB, free: 29.34 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.982e-05/0.2308, allocations: 60.16 kB / 453.9 MB, free: 29.31 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007505/0.2316, allocations: 0.5316 MB / 454.4 MB, free: 29.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.2316, allocations: 4.625 kB / 454.4 MB, free: 29.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.2316, allocations: 5.344 kB / 454.4 MB, free: 29.06 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.2316, allocations: 11.23 kB / 454.4 MB, free: 29.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005074/0.2321, allocations: 0.609 MB / 455 MB, free: 28.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.2321, allocations: 4 kB / 455 MB, free: 28.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004973/0.2326, allocations: 96.2 kB / 455.1 MB, free: 28.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.2326, allocations: 2.5 kB / 455.1 MB, free: 28.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.428e-05/0.2327, allocations: 15.02 kB / 455.1 MB, free: 28.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.444e-06/0.2327, allocations: 2.594 kB / 455.1 MB, free: 28.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.2327, allocations: 3.938 kB / 455.2 MB, free: 28.67 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009471/0.2336, allocations: 0.8339 MB / 456 MB, free: 28.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001082/0.2338, allocations: 162.9 kB / 456.1 MB, free: 28.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.349e-05/0.2338, allocations: 18.72 kB / 456.2 MB, free: 28.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006193/0.2345, allocations: 91.56 kB / 456.3 MB, free: 28.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.415e-05/0.2346, allocations: 35.52 kB / 456.3 MB, free: 28.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.392e-05/0.2346, allocations: 11.16 kB / 456.3 MB, free: 28.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001224/0.2358, allocations: 0.684 MB / 457 MB, free: 27.85 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2358, allocations: 5.344 kB / 457 MB, free: 27.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003715/0.2362, allocations: 106.3 kB / 457.1 MB, free: 27.82 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.001167/0.2374, allocations: 1.391 MB / 458.5 MB, free: 26.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006805/0.2381, allocations: 480.8 kB / 459 MB, free: 26.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.2381, allocations: 0 / 459 MB, free: 26.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003161/0.2384, allocations: 239 kB / 459.2 MB, free: 26.62 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004873/0.2389, allocations: 88.17 kB / 459.3 MB, free: 26.58 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008766/0.2477, allocations: 6.767 MB / 466 MB, free: 23.03 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003384/0.248, allocations: 0.9561 MB / 467 MB, free: 22.3 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002973/0.2483, allocations: 116.1 kB / 467.1 MB, free: 22.29 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002907/0.2486, allocations: 248.2 kB / 467.4 MB, free: 22.11 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.2486, allocations: 0 / 467.4 MB, free: 22.11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02052/0.2691, allocations: 11.74 MB / 479.1 MB, free: 17.66 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001338/0.2693, allocations: 190.2 kB / 479.3 MB, free: 17.4 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.821/2.091, allocations: 0 / 479.3 MB, free: 17.4 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)