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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 109.4 kB / 17.15 MB, free: 6.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001554/0.001554, allocations: 207.2 kB / 20.11 MB, free: 3.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.458/1.458, allocations: 230.6 MB / 253.5 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1166/0.1166, allocations: 24.03 MB / 333.6 MB, free: 1.562 MB / 254.1 MB " [Timeout remaining time 180] Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: AES requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002745/0.002745, allocations: 78.41 kB / 468.4 MB, free: 31.5 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1128, allocations: 59.55 MB / 0.5156 GB, free: 12.31 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.003548/0.1163, allocations: 2.003 MB / 0.5175 GB, free: 10.29 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00303/0.1194, allocations: 1.86 MB / 0.5193 GB, free: 8.414 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000382/0.1198, allocations: 7.938 kB / 0.5194 GB, free: 8.406 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006176/0.1204, allocations: 182.7 kB / 0.5195 GB, free: 8.227 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007579/0.1211, allocations: 226.9 kB / 0.5197 GB, free: 8.004 MB / 382.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.0008137/0.1219, allocations: 379.4 kB / 0.5201 GB, free: 7.633 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00139/0.1233, allocations: 1.066 MB / 0.5211 GB, free: 6.566 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002761/0.1236, allocations: 113.6 kB / 0.5213 GB, free: 6.449 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006619/0.1243, allocations: 418.6 kB / 0.5217 GB, free: 6.039 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006938/0.125, allocations: 434.2 kB / 0.5221 GB, free: 5.613 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001809/0.1252, allocations: 68 kB / 0.5221 GB, free: 5.543 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002376/0.1254, allocations: 95.95 kB / 0.5222 GB, free: 5.449 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003156/0.1257, allocations: 247.1 kB / 0.5225 GB, free: 5.207 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003126/0.126, allocations: 310.1 kB / 0.5228 GB, free: 4.902 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008743/0.1269, allocations: 0.7468 MB / 0.5235 GB, free: 4.152 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.1269, allocations: 0 / 0.5235 GB, free: 4.152 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1269, allocations: 0 / 0.5235 GB, free: 4.152 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.054e-05/0.1269, allocations: 0 / 0.5235 GB, free: 4.152 MB / 382.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.003387/0.1303, allocations: 1.252 MB / 0.5247 GB, free: 2.852 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.1303, allocations: 8.625 kB / 0.5247 GB, free: 2.844 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001004/0.1304, allocations: 74.72 kB / 0.5248 GB, free: 2.762 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001653/0.1306, allocations: 80.42 kB / 0.5249 GB, free: 2.684 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001803/0.1324, allocations: 0.7653 MB / 0.5256 GB, free: 1.879 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.856e-05/0.1325, allocations: 37.31 kB / 0.5256 GB, free: 1.844 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.084e-05/0.1325, allocations: 44.33 kB / 0.5257 GB, free: 1.801 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000791/0.1333, allocations: 456.8 kB / 0.5261 GB, free: 1.336 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.1333, allocations: 0 / 0.5261 GB, free: 1.336 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.64e-05/0.1334, allocations: 16 kB / 0.5261 GB, free: 1.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.383e-05/0.1334, allocations: 16 kB / 0.5262 GB, free: 1.305 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008216/0.1342, allocations: 419.7 kB / 0.5266 GB, free: 0.8945 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002574/0.1368, allocations: 1.633 MB / 0.5281 GB, free: 15.2 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007724/0.1376, allocations: 464.2 kB / 0.5286 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003651/0.1379, allocations: 196.7 kB / 0.5288 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.404e-05/0.138, allocations: 7.984 kB / 0.5288 GB, free: 14.53 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.254e-05/0.138, allocations: 38.56 kB / 0.5288 GB, free: 14.48 MB / 398.1 MB Notification: Performance of pre-optimization done (n=44): time 2.235e-06/0.138, allocations: 0 / 0.5288 GB, free: 14.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=44): time 0.001239/0.1392, allocations: 0.6266 MB / 0.5294 GB, free: 13.85 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.206e-05/0.1393, allocations: 59.34 kB / 0.5295 GB, free: 13.78 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001982/0.1413, allocations: 0.9139 MB / 0.5304 GB, free: 12.86 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.324e-05/0.1413, allocations: 33.7 kB / 0.5304 GB, free: 12.82 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002819/0.1416, allocations: 312.8 kB / 0.5307 GB, free: 12.5 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001537/0.1418, allocations: 166.5 kB / 0.5309 GB, free: 12.34 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000192/0.142, allocations: 106.2 kB / 0.531 GB, free: 12.23 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002203/0.1422, allocations: 386.7 kB / 0.5313 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003988/0.1426, allocations: 193 kB / 0.5315 GB, free: 11.66 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004783/0.1431, allocations: 309.2 kB / 0.5318 GB, free: 11.32 MB / 398.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.003967/0.147, allocations: 1.387 MB / 0.5332 GB, free: 9.855 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.147, allocations: 0 / 0.5332 GB, free: 9.855 MB / 398.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001155/0.1482, allocations: 0.6197 MB / 0.5338 GB, free: 9.23 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.1482, allocations: 11.94 kB / 0.5338 GB, free: 9.219 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.1482, allocations: 4 kB / 0.5338 GB, free: 9.215 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.1482, allocations: 4 kB / 0.5338 GB, free: 9.211 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000747/0.149, allocations: 151.8 kB / 0.5339 GB, free: 9.062 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.549e-05/0.149, allocations: 11.98 kB / 0.534 GB, free: 9.051 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007801/0.1498, allocations: 131.5 kB / 0.5341 GB, free: 8.922 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.991e-05/0.1498, allocations: 20 kB / 0.5341 GB, free: 8.902 MB / 398.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.0003804/0.1502, allocations: 237.6 kB / 0.5343 GB, free: 8.66 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001432/0.1503, allocations: 71.53 kB / 0.5344 GB, free: 8.59 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001025/0.1514, allocations: 0.5277 MB / 0.5349 GB, free: 8.051 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.523e-06/0.1514, allocations: 4 kB / 0.5349 GB, free: 8.047 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.1514, allocations: 3.938 kB / 0.5349 GB, free: 8.043 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.1514, allocations: 7.875 kB / 0.5349 GB, free: 8.035 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008018/0.1522, allocations: 0.6103 MB / 0.5355 GB, free: 7.375 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.1522, allocations: 0 / 0.5355 GB, free: 7.375 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005652/0.1527, allocations: 91.91 kB / 0.5356 GB, free: 7.285 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.331e-06/0.1528, allocations: 7.984 kB / 0.5356 GB, free: 7.277 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.243e-05/0.1528, allocations: 16 kB / 0.5356 GB, free: 7.262 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.849e-06/0.1528, allocations: 4 kB / 0.5356 GB, free: 7.258 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.1528, allocations: 3.938 kB / 0.5356 GB, free: 7.254 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001309/0.1541, allocations: 0.8256 MB / 0.5364 GB, free: 6.41 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001926/0.1543, allocations: 176.5 kB / 0.5366 GB, free: 6.219 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.647e-05/0.1544, allocations: 12 kB / 0.5366 GB, free: 6.207 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007011/0.1551, allocations: 91.8 kB / 0.5367 GB, free: 6.117 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.78e-05/0.1552, allocations: 35.72 kB / 0.5367 GB, free: 6.082 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.837e-05/0.1552, allocations: 15.98 kB / 0.5368 GB, free: 6.066 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001614/0.1568, allocations: 0.6862 MB / 0.5374 GB, free: 5.383 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1568, allocations: 3.938 kB / 0.5374 GB, free: 5.379 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004968/0.1573, allocations: 111.9 kB / 0.5375 GB, free: 5.27 MB / 398.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.001706/0.159, allocations: 1.396 MB / 0.5389 GB, free: 3.848 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009995/0.16, allocations: 463.4 kB / 0.5393 GB, free: 3.398 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.16, allocations: 0 / 0.5393 GB, free: 3.398 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006219/0.1606, allocations: 224.1 kB / 0.5396 GB, free: 3.18 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008185/0.1615, allocations: 98.88 kB / 0.5397 GB, free: 3.09 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01168/0.1731, allocations: 6.433 MB / 0.5459 GB, free: 12.49 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006572/0.1738, allocations: 0.9605 MB / 0.5469 GB, free: 11.5 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003747/0.1742, allocations: 116.9 kB / 0.547 GB, free: 11.39 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004228/0.1746, allocations: 247.3 kB / 0.5472 GB, free: 11.14 MB / 414.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1746, allocations: 0 / 0.5472 GB, free: 11.14 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05435/0.2289, allocations: 12.55 MB / 0.5595 GB, free: 14.69 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.158/9.387, allocations: 14.45 kB / 0.5595 GB, free: 14.68 MB / 430.1 MB " [Timeout remaining time 651] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.206123517127708] Failed to read output from testmodel.py, exit status != 0: 9.463835377944633 9.477230193 9.347452238 Calling exit ...