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.001313/0.001313, allocations: 110.6 kB / 18.94 MB, free: 2.949 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.001439/0.001439, allocations: 220.9 kB / 22.26 MB, free: 5.125 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.561/1.561, allocations: 230.6 MB / 256 MB, free: 7.984 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.1074/0.1074, allocations: 24.13 MB / 336.6 MB, free: 11.44 MB / 270.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.00204/0.00204, allocations: 63.91 kB / 473.3 MB, free: 6.402 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3536/0.3557, allocations: 59.61 MB / 0.5204 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.003224/0.3589, allocations: 2.025 MB / 0.5224 GB, free: 8.742 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002799/0.3617, allocations: 1.869 MB / 0.5242 GB, free: 7.395 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002949/0.362, allocations: 13.56 kB / 0.5242 GB, free: 7.387 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005139/0.3625, allocations: 172.6 kB / 0.5244 GB, free: 7.293 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006346/0.3632, allocations: 225 kB / 0.5246 GB, free: 7.18 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.0009075/0.3641, allocations: 448.9 kB / 0.525 GB, free: 6.938 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00183/0.3659, allocations: 1.228 MB / 0.5262 GB, free: 6.41 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002716/0.3662, allocations: 118.5 kB / 0.5263 GB, free: 6.344 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006323/0.3668, allocations: 434.5 kB / 0.5268 GB, free: 6.164 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005606/0.3674, allocations: 434.3 kB / 0.5272 GB, free: 5.98 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001134/0.3675, allocations: 65.12 kB / 0.5272 GB, free: 5.98 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002361/0.3677, allocations: 105.5 kB / 0.5273 GB, free: 5.969 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002594/0.368, allocations: 251.3 kB / 0.5276 GB, free: 5.844 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002371/0.3682, allocations: 308.7 kB / 0.5279 GB, free: 5.617 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009531/0.3692, allocations: 0.7397 MB / 0.5286 GB, free: 5.293 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.3692, allocations: 0 / 0.5286 GB, free: 5.293 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.3692, allocations: 3.938 kB / 0.5286 GB, free: 5.289 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.12e-05/0.3692, allocations: 5.859 kB / 0.5286 GB, free: 5.285 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.003471/0.3726, allocations: 1.171 MB / 0.5297 GB, free: 4.633 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.458e-05/0.3727, allocations: 10.52 kB / 0.5298 GB, free: 4.633 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.556e-05/0.3728, allocations: 75.95 kB / 0.5298 GB, free: 4.57 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001786/0.373, allocations: 84.23 kB / 0.5299 GB, free: 4.523 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001813/0.3748, allocations: 0.7027 MB / 0.5306 GB, free: 4.176 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.96e-05/0.3748, allocations: 33.94 kB / 0.5306 GB, free: 4.156 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.153e-05/0.3749, allocations: 45.27 kB / 0.5307 GB, free: 4.141 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007923/0.3757, allocations: 459.4 kB / 0.5311 GB, free: 3.922 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.603e-05/0.3757, allocations: 1.25 kB / 0.5311 GB, free: 3.922 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.696e-05/0.3758, allocations: 14.72 kB / 0.5311 GB, free: 3.91 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.299e-05/0.3758, allocations: 13.67 kB / 0.5311 GB, free: 3.906 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007995/0.3766, allocations: 419.5 kB / 0.5315 GB, free: 3.762 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002838/0.3794, allocations: 1.605 MB / 0.5331 GB, free: 2.785 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007706/0.3802, allocations: 461.3 kB / 0.5335 GB, free: 2.598 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003569/0.3805, allocations: 196.4 kB / 0.5337 GB, free: 2.516 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.811e-05/0.3806, allocations: 4.562 kB / 0.5337 GB, free: 2.516 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.271e-05/0.3806, allocations: 32.69 kB / 0.5338 GB, free: 2.477 MB / 382.1 MB Notification: Performance of pre-optimization done (n=44): time 3.156e-06/0.3806, allocations: 1.188 kB / 0.5338 GB, free: 2.477 MB / 382.1 MB Notification: Performance of matching and sorting (n=44): time 0.001371/0.382, allocations: 0.6371 MB / 0.5344 GB, free: 2.203 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.763e-05/0.382, allocations: 57.03 kB / 0.5344 GB, free: 2.141 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002205/0.3842, allocations: 0.9026 MB / 0.5353 GB, free: 1.832 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.745e-05/0.3843, allocations: 36.66 kB / 0.5354 GB, free: 1.793 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002576/0.3845, allocations: 310.3 kB / 0.5357 GB, free: 1.539 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001621/0.3847, allocations: 176.4 kB / 0.5358 GB, free: 1.398 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002196/0.3849, allocations: 103.3 kB / 0.5359 GB, free: 1.344 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.3851, allocations: 387.1 kB / 0.5363 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003903/0.3855, allocations: 195.2 kB / 0.5365 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000438/0.3859, allocations: 298.4 kB / 0.5368 GB, free: 0.7383 MB / 382.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.003849/0.3898, allocations: 1.229 MB / 0.538 GB, free: 288 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.163e-06/0.3898, allocations: 5.375 kB / 0.538 GB, free: 284 kB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001352/0.3911, allocations: 0.6127 MB / 0.5386 GB, free: 8 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.552e-05/0.3911, allocations: 6.266 kB / 0.5386 GB, free: 8 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.759e-06/0.3912, allocations: 3.938 kB / 0.5386 GB, free: 8 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.837e-05/0.3912, allocations: 6.281 kB / 0.5386 GB, free: 8 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007549/0.3919, allocations: 156.8 kB / 0.5387 GB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.399e-05/0.392, allocations: 15.28 kB / 0.5388 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007874/0.3928, allocations: 131 kB / 0.5389 GB, free: 15.94 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.11e-05/0.3928, allocations: 19.88 kB / 0.5389 GB, free: 15.93 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.0004711/0.3933, allocations: 236.8 kB / 0.5391 GB, free: 15.76 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001426/0.3934, allocations: 69.62 kB / 0.5392 GB, free: 15.72 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001079/0.3945, allocations: 0.5229 MB / 0.5397 GB, free: 15.49 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.373e-06/0.3945, allocations: 7.938 kB / 0.5397 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.403e-06/0.3945, allocations: 5.25 kB / 0.5397 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.104e-05/0.3945, allocations: 6.625 kB / 0.5397 GB, free: 15.48 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00096/0.3955, allocations: 0.5838 MB / 0.5403 GB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.3955, allocations: 0 / 0.5403 GB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005558/0.396, allocations: 95.03 kB / 0.5404 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.396, allocations: 1.406 kB / 0.5404 GB, free: 15.14 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.535e-05/0.3961, allocations: 17.55 kB / 0.5404 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.3961, allocations: 1.281 kB / 0.5404 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.3961, allocations: 9.219 kB / 0.5404 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00131/0.3974, allocations: 0.8344 MB / 0.5412 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001814/0.3976, allocations: 92.3 kB / 0.5413 GB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.554e-05/0.3977, allocations: 12.12 kB / 0.5413 GB, free: 14.55 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006841/0.3984, allocations: 94.56 kB / 0.5414 GB, free: 14.51 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.587e-05/0.3984, allocations: 34.69 kB / 0.5414 GB, free: 14.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.777e-05/0.3985, allocations: 8.25 kB / 0.5415 GB, free: 14.48 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001599/0.4001, allocations: 0.6948 MB / 0.5421 GB, free: 14.11 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4001, allocations: 3.938 kB / 0.5421 GB, free: 14.11 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005795/0.4007, allocations: 110.7 kB / 0.5422 GB, free: 14.08 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.001789/0.4024, allocations: 1.398 MB / 0.5436 GB, free: 13.04 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009985/0.4034, allocations: 458 kB / 0.544 GB, free: 12.84 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.4034, allocations: 0 / 0.544 GB, free: 12.84 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004081/0.4039, allocations: 224.9 kB / 0.5443 GB, free: 12.74 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006138/0.4045, allocations: 100.7 kB / 0.5444 GB, free: 12.68 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01186/0.4163, allocations: 6.431 MB / 0.5506 GB, free: 8.742 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007014/0.417, allocations: 0.9563 MB / 0.5516 GB, free: 7.918 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004096/0.4174, allocations: 116.4 kB / 0.5517 GB, free: 7.867 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004246/0.4179, allocations: 246.5 kB / 0.5519 GB, free: 7.664 MB / 398.1 MB Notification: Performance of SimCode: time 9.72e-07/0.4179, allocations: 1.25 kB / 0.5519 GB, free: 7.664 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05163/0.4695, allocations: 13.02 MB / 0.5646 GB, free: 13.7 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.22/12.69, allocations: 3.938 kB / 0.5646 GB, free: 13.69 MB / 414.1 MB " [Timeout remaining time 647] (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: 15.687677449001058] Failed to read output from testmodel.py, exit status != 0: 12.822962392994668 12.847000648 12.473105686 Calling exit ...