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.005088/0.005088, allocations: 95.38 kB / 15.73 MB, free: 6.043 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.001136/0.001136, allocations: 193.2 kB / 16.67 MB, free: 5.969 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.353/1.353, allocations: 222.9 MB / 240.4 MB, free: 4.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2111/0.2111, allocations: 22.36 MB / 312.9 MB, free: 12.48 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 62.84 kB / 436.6 MB, free: 34.04 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09114/0.09243, allocations: 54.97 MB / 491.5 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.002811/0.09528, allocations: 2.004 MB / 493.5 MB, free: 15.71 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00275/0.09806, allocations: 1.798 MB / 495.3 MB, free: 13.89 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000206/0.09829, allocations: 7.938 kB / 495.3 MB, free: 13.89 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004967/0.09879, allocations: 170.8 kB / 495.5 MB, free: 13.72 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005757/0.09941, allocations: 227 kB / 495.7 MB, free: 13.5 MB / 366.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.0006406/0.1001, allocations: 379.5 kB / 496.1 MB, free: 13.12 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001107/0.1012, allocations: 1.07 MB / 497.2 MB, free: 12.05 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000263/0.1014, allocations: 165.6 kB / 497.3 MB, free: 11.89 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004208/0.1019, allocations: 402.7 kB / 497.7 MB, free: 11.49 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004549/0.1023, allocations: 406.3 kB / 498.1 MB, free: 11.09 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.045e-05/0.1024, allocations: 64 kB / 498.2 MB, free: 11.03 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001806/0.1026, allocations: 95.97 kB / 498.3 MB, free: 10.94 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002418/0.1029, allocations: 239.3 kB / 498.5 MB, free: 10.7 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002601/0.1031, allocations: 314.1 kB / 498.8 MB, free: 10.39 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007348/0.1039, allocations: 0.7352 MB / 499.6 MB, free: 9.656 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.1039, allocations: 0 / 499.6 MB, free: 9.656 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1039, allocations: 4 kB / 499.6 MB, free: 9.652 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.957e-06/0.1039, allocations: 0 / 499.6 MB, free: 9.652 MB / 366.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.003123/0.1071, allocations: 1.246 MB / 0.4891 GB, free: 8.355 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.1071, allocations: 12.03 kB / 0.4891 GB, free: 8.344 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.786e-05/0.1072, allocations: 70.72 kB / 0.4891 GB, free: 8.266 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001257/0.1073, allocations: 80.42 kB / 0.4892 GB, free: 8.188 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001684/0.109, allocations: 0.7731 MB / 0.49 GB, free: 7.375 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.558e-05/0.1091, allocations: 29.38 kB / 0.49 GB, free: 7.348 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.826e-05/0.1092, allocations: 48.33 kB / 0.4901 GB, free: 7.301 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007165/0.1099, allocations: 448.8 kB / 0.4905 GB, free: 6.844 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.734e-05/0.1099, allocations: 7.938 kB / 0.4905 GB, free: 6.836 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.553e-05/0.11, allocations: 8 kB / 0.4905 GB, free: 6.828 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.358e-06/0.11, allocations: 16 kB / 0.4905 GB, free: 6.812 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007573/0.1107, allocations: 419.7 kB / 0.4909 GB, free: 6.402 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002399/0.1131, allocations: 1.637 MB / 0.4925 GB, free: 4.699 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007092/0.1139, allocations: 480 kB / 0.493 GB, free: 4.219 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00031/0.1142, allocations: 197.5 kB / 0.4932 GB, free: 4.023 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.843e-05/0.1142, allocations: 7.938 kB / 0.4932 GB, free: 4.016 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.922e-05/0.1143, allocations: 46.55 kB / 0.4932 GB, free: 3.961 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 1.723e-06/0.1143, allocations: 0 / 0.4932 GB, free: 3.961 MB / 366.1 MB Notification: Performance of matching and sorting (n=44): time 0.00109/0.1154, allocations: 0.6305 MB / 0.4938 GB, free: 3.324 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.877e-05/0.1154, allocations: 55.41 kB / 0.4939 GB, free: 3.258 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001754/0.1172, allocations: 0.9139 MB / 0.4948 GB, free: 2.332 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.321e-05/0.1172, allocations: 37.7 kB / 0.4948 GB, free: 2.289 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002407/0.1175, allocations: 312.8 kB / 0.4951 GB, free: 1.977 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001373/0.1176, allocations: 166.6 kB / 0.4953 GB, free: 1.812 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001489/0.1178, allocations: 106.2 kB / 0.4954 GB, free: 1.703 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001905/0.118, allocations: 386.7 kB / 0.4957 GB, free: 1.316 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003241/0.1183, allocations: 189 kB / 0.4959 GB, free: 1.129 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003937/0.1187, allocations: 305.2 kB / 0.4962 GB, free: 0.7969 MB / 366.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.003528/0.1223, allocations: 1.384 MB / 0.4976 GB, free: 15.34 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.1223, allocations: 4 kB / 0.4976 GB, free: 15.34 MB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009933/0.1233, allocations: 0.6197 MB / 0.4982 GB, free: 14.71 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.08e-05/0.1233, allocations: 8 kB / 0.4982 GB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.1233, allocations: 0 / 0.4982 GB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.141e-05/0.1233, allocations: 8 kB / 0.4982 GB, free: 14.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007087/0.1241, allocations: 151.8 kB / 0.4983 GB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.251e-05/0.1241, allocations: 7.984 kB / 0.4983 GB, free: 14.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007113/0.1248, allocations: 131.5 kB / 0.4985 GB, free: 14.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.694e-05/0.1248, allocations: 20 kB / 0.4985 GB, free: 14.39 MB / 382.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.0003367/0.1252, allocations: 237.6 kB / 0.4987 GB, free: 14.14 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001056/0.1253, allocations: 63.58 kB / 0.4988 GB, free: 14.08 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008832/0.1262, allocations: 0.5386 MB / 0.4993 GB, free: 13.53 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.907e-06/0.1262, allocations: 12 kB / 0.4993 GB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.1262, allocations: 3.938 kB / 0.4993 GB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.733e-06/0.1262, allocations: 0 / 0.4993 GB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006874/0.1269, allocations: 0.618 MB / 0.4999 GB, free: 12.85 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.1269, allocations: 0 / 0.4999 GB, free: 12.85 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005401/0.1275, allocations: 91.89 kB / 0.5 GB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.1275, allocations: 8 kB / 0.5 GB, free: 12.75 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.732e-05/0.1275, allocations: 12 kB / 0.5 GB, free: 12.74 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.568e-06/0.1276, allocations: 4 kB / 0.5 GB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.1276, allocations: 7.922 kB / 0.5 GB, free: 12.73 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001147/0.1287, allocations: 0.8371 MB / 0.5008 GB, free: 11.88 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001834/0.1289, allocations: 172.5 kB / 0.501 GB, free: 11.69 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.986e-05/0.129, allocations: 12 kB / 0.501 GB, free: 11.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006986/0.1297, allocations: 95.8 kB / 0.5011 GB, free: 11.58 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.108e-05/0.1298, allocations: 31.66 kB / 0.5011 GB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.74e-05/0.1298, allocations: 19.98 kB / 0.5012 GB, free: 11.53 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001501/0.1313, allocations: 0.6863 MB / 0.5018 GB, free: 10.85 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1313, allocations: 0 / 0.5018 GB, free: 10.85 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000428/0.1318, allocations: 103.9 kB / 0.5019 GB, free: 10.75 MB / 382.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.00148/0.1333, allocations: 1.398 MB / 0.5033 GB, free: 9.32 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000812/0.1341, allocations: 480.2 kB / 0.5038 GB, free: 8.852 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1341, allocations: 4 kB / 0.5038 GB, free: 8.848 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003461/0.1345, allocations: 231.5 kB / 0.504 GB, free: 8.621 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005686/0.135, allocations: 103.4 kB / 0.5041 GB, free: 8.527 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009842/0.1449, allocations: 6.428 MB / 0.5104 GB, free: 1.938 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005194/0.1454, allocations: 0.9528 MB / 0.5113 GB, free: 0.957 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003033/0.1457, allocations: 112.9 kB / 0.5114 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003551/0.1461, allocations: 251.3 kB / 0.5116 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1461, allocations: 0 / 0.5116 GB, free: 0.5977 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03372/0.1799, allocations: 12.4 MB / 0.5237 GB, free: 4.289 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.498/8.678, allocations: 15.45 kB / 0.5238 GB, free: 4.273 MB / 398.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)