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.001455/0.001454, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001923/0.001923, allocations: 194.6 kB / 16.53 MB, free: 6.699 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.467/1.467, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2207/0.2207, allocations: 22.35 MB / 312.7 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001816/0.001816, allocations: 55.91 kB / 380.9 MB, free: 10.42 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3573/0.3592, allocations: 54.94 MB / 435.9 MB, free: 39.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.003261/0.3625, allocations: 1.993 MB / 437.9 MB, free: 38.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002379/0.3649, allocations: 1.802 MB / 439.7 MB, free: 36.92 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002285/0.3651, allocations: 13.59 kB / 439.7 MB, free: 36.91 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005055/0.3657, allocations: 168 kB / 439.8 MB, free: 36.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005275/0.3662, allocations: 224.7 kB / 440.1 MB, free: 36.71 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.0005411/0.3668, allocations: 382.9 kB / 440.4 MB, free: 36.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008509/0.3676, allocations: 1.057 MB / 441.5 MB, free: 36.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000266/0.3679, allocations: 167.3 kB / 441.6 MB, free: 35.97 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003845/0.3683, allocations: 411.5 kB / 442.1 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003723/0.3687, allocations: 399.1 kB / 442.4 MB, free: 35.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.973e-05/0.3688, allocations: 68.56 kB / 442.5 MB, free: 35.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001665/0.3689, allocations: 97.62 kB / 442.6 MB, free: 35.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001897/0.3691, allocations: 226.4 kB / 442.8 MB, free: 35.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002008/0.3693, allocations: 313.1 kB / 443.1 MB, free: 35.27 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004956/0.3698, allocations: 0.7085 MB / 443.8 MB, free: 34.97 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.3699, allocations: 0 / 443.8 MB, free: 34.97 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.046e-06/0.3699, allocations: 0 / 443.8 MB, free: 34.97 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.903e-05/0.3699, allocations: 10.62 kB / 443.8 MB, free: 34.96 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.002771/0.3727, allocations: 1.227 MB / 445.1 MB, free: 34.23 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.3727, allocations: 8.656 kB / 445.1 MB, free: 34.23 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.928e-05/0.3728, allocations: 73.7 kB / 445.2 MB, free: 34.17 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001149/0.3729, allocations: 82.34 kB / 445.2 MB, free: 34.13 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001447/0.3744, allocations: 0.7449 MB / 446 MB, free: 33.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.486e-05/0.3744, allocations: 41.53 kB / 446 MB, free: 33.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.681e-05/0.3745, allocations: 44.94 kB / 446.1 MB, free: 33.69 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000618/0.3751, allocations: 452.8 kB / 446.5 MB, free: 33.47 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.3751, allocations: 0 / 446.5 MB, free: 33.47 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.582e-05/0.3752, allocations: 15.56 kB / 446.5 MB, free: 33.46 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.164e-05/0.3752, allocations: 13.84 kB / 446.5 MB, free: 33.46 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006495/0.3759, allocations: 426 kB / 447 MB, free: 33.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001993/0.3779, allocations: 1.643 MB / 448.6 MB, free: 32.31 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006365/0.3785, allocations: 478.9 kB / 449.1 MB, free: 32.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002728/0.3788, allocations: 201.5 kB / 449.3 MB, free: 32.03 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.476e-05/0.3788, allocations: 5.25 kB / 449.3 MB, free: 32.03 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.831e-05/0.3789, allocations: 33.19 kB / 449.3 MB, free: 31.99 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.573e-06/0.3789, allocations: 0 / 449.3 MB, free: 31.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=44): time 0.001035/0.3799, allocations: 0.6362 MB / 449.9 MB, free: 31.72 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.516e-05/0.38, allocations: 58.5 kB / 450 MB, free: 31.65 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00158/0.3815, allocations: 0.9021 MB / 450.9 MB, free: 31.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.736e-05/0.3816, allocations: 38.97 kB / 450.9 MB, free: 31.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002113/0.3818, allocations: 306.4 kB / 451.2 MB, free: 31.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001028/0.3819, allocations: 158.7 kB / 451.4 MB, free: 30.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001394/0.3821, allocations: 105.8 kB / 451.5 MB, free: 30.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.3822, allocations: 391.1 kB / 451.9 MB, free: 30.51 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002872/0.3825, allocations: 191.7 kB / 452.1 MB, free: 30.45 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003201/0.3828, allocations: 307.2 kB / 452.4 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.003238/0.3861, allocations: 1.377 MB / 453.7 MB, free: 29.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.3861, allocations: 6.906 kB / 453.7 MB, free: 29.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008854/0.387, allocations: 0.6159 MB / 454.4 MB, free: 29.34 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.15e-05/0.387, allocations: 8.531 kB / 454.4 MB, free: 29.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.387, allocations: 2.562 kB / 454.4 MB, free: 29.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.399e-05/0.387, allocations: 9.656 kB / 454.4 MB, free: 29.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007175/0.3878, allocations: 154.9 kB / 454.5 MB, free: 29.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.312e-05/0.3878, allocations: 5.75 kB / 454.5 MB, free: 29.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006717/0.3885, allocations: 133.9 kB / 454.7 MB, free: 29.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.936e-05/0.3885, allocations: 20.28 kB / 454.7 MB, free: 29.27 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.0003073/0.3888, allocations: 244 kB / 454.9 MB, free: 29.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001052/0.3889, allocations: 60.47 kB / 455 MB, free: 29.06 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009097/0.3898, allocations: 0.5376 MB / 455.5 MB, free: 28.81 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.253e-06/0.3899, allocations: 7.844 kB / 455.5 MB, free: 28.81 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/0.3899, allocations: 5.375 kB / 455.5 MB, free: 28.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.3899, allocations: 0 / 455.5 MB, free: 28.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006365/0.3905, allocations: 0.6104 MB / 456.1 MB, free: 28.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.3905, allocations: 4 kB / 456.1 MB, free: 28.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005112/0.3911, allocations: 96.08 kB / 456.2 MB, free: 28.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-05/0.3911, allocations: 1.25 kB / 456.2 MB, free: 28.43 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.04e-05/0.3911, allocations: 16.59 kB / 456.3 MB, free: 28.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.618e-06/0.3911, allocations: 2.688 kB / 456.3 MB, free: 28.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.3911, allocations: 3.938 kB / 456.3 MB, free: 28.42 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001251/0.3924, allocations: 0.833 MB / 457.1 MB, free: 28 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001402/0.3925, allocations: 162.5 kB / 457.3 MB, free: 27.86 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.089e-05/0.3926, allocations: 16.19 kB / 457.3 MB, free: 27.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000642/0.3933, allocations: 89.11 kB / 457.4 MB, free: 27.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.3934, allocations: 38.62 kB / 457.4 MB, free: 27.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.492e-05/0.3934, allocations: 8.031 kB / 457.4 MB, free: 27.83 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001605/0.395, allocations: 0.69 MB / 458.1 MB, free: 27.6 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.395, allocations: 0 / 458.1 MB, free: 27.6 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005234/0.3956, allocations: 110.2 kB / 458.2 MB, free: 27.57 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.001577/0.3972, allocations: 1.384 MB / 459.6 MB, free: 26.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001113/0.3983, allocations: 0.5272 MB / 460.1 MB, free: 26.44 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.3983, allocations: 5.125 kB / 460.1 MB, free: 26.44 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004363/0.3987, allocations: 229.9 kB / 460.3 MB, free: 26.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000632/0.3994, allocations: 106.4 kB / 460.4 MB, free: 26.31 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01035/0.4097, allocations: 6.604 MB / 467.1 MB, free: 22.95 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004505/0.4102, allocations: 0.9585 MB / 468 MB, free: 22.22 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003712/0.4106, allocations: 120.2 kB / 468.1 MB, free: 22.2 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000319/0.4109, allocations: 244.2 kB / 468.4 MB, free: 22.02 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.4109, allocations: 1.375 kB / 468.4 MB, free: 22.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03354/0.4445, allocations: 12.26 MB / 480.6 MB, free: 16.55 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.679/8.123, allocations: 15.84 kB / 480.6 MB, free: 16.54 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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_control_structures.Decoupling_res.csv --start-time 0 --stop-time 20 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.04 AES_AES_Coursework_Typical_control_structures_Decoupling.fmu > AES_AES.Coursework.Typical_control_structures.Decoupling.pipe 2>&1)