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.001798/0.001798, allocations: 104.5 kB / 16.45 MB, free: 6.449 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.002123/0.002123, allocations: 212.9 kB / 19.43 MB, free: 3.637 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.481/1.481, allocations: 230.6 MB / 252.8 MB, free: 9.148 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.1119/0.1119, allocations: 24.1 MB / 333 MB, free: 12.64 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.002271/0.002271, allocations: 67.89 kB / 467.8 MB, free: 9.074 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3334/0.3357, allocations: 59.57 MB / 0.5151 GB, free: 9.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.00266/0.3383, allocations: 2.025 MB / 0.517 GB, free: 8.297 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002207/0.3405, allocations: 1.854 MB / 0.5188 GB, free: 6.969 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001998/0.3407, allocations: 15.03 kB / 0.5189 GB, free: 6.961 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004659/0.3412, allocations: 176.2 kB / 0.519 GB, free: 6.863 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000542/0.3417, allocations: 227.2 kB / 0.5192 GB, free: 6.746 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.0005925/0.3423, allocations: 380.6 kB / 0.5196 GB, free: 6.539 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009764/0.3433, allocations: 1.067 MB / 0.5206 GB, free: 6.086 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002084/0.3435, allocations: 115.5 kB / 0.5208 GB, free: 6.02 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004092/0.3439, allocations: 423.8 kB / 0.5212 GB, free: 5.84 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000442/0.3444, allocations: 434.5 kB / 0.5216 GB, free: 5.656 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000103/0.3445, allocations: 64.53 kB / 0.5216 GB, free: 5.656 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001617/0.3446, allocations: 99.16 kB / 0.5217 GB, free: 5.648 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001971/0.3448, allocations: 247 kB / 0.522 GB, free: 5.527 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001846/0.345, allocations: 308.8 kB / 0.5223 GB, free: 5.301 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006903/0.3457, allocations: 0.7339 MB / 0.523 GB, free: 4.98 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.3457, allocations: 5 kB / 0.523 GB, free: 4.977 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3457, allocations: 4.641 kB / 0.523 GB, free: 4.973 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.047e-05/0.3457, allocations: 0 / 0.523 GB, free: 4.973 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.003074/0.3488, allocations: 1.251 MB / 0.5242 GB, free: 4.223 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.063e-05/0.3488, allocations: 9.875 kB / 0.5242 GB, free: 4.223 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.207e-05/0.3489, allocations: 75.69 kB / 0.5243 GB, free: 4.16 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001321/0.349, allocations: 81.84 kB / 0.5244 GB, free: 4.117 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001667/0.3507, allocations: 0.7603 MB / 0.5251 GB, free: 3.703 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.455e-05/0.3507, allocations: 35.28 kB / 0.5251 GB, free: 3.688 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.519e-05/0.3508, allocations: 53.73 kB / 0.5252 GB, free: 3.664 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007297/0.3515, allocations: 454 kB / 0.5256 GB, free: 3.445 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.29e-05/0.3516, allocations: 0 / 0.5256 GB, free: 3.445 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.889e-05/0.3516, allocations: 16.5 kB / 0.5256 GB, free: 3.434 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.127e-05/0.3516, allocations: 9.156 kB / 0.5257 GB, free: 3.434 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007442/0.3524, allocations: 419.2 kB / 0.5261 GB, free: 3.293 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002194/0.3545, allocations: 1.644 MB / 0.5277 GB, free: 2.285 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006906/0.3552, allocations: 462.3 kB / 0.5281 GB, free: 2.098 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002925/0.3555, allocations: 199.8 kB / 0.5283 GB, free: 2.012 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.72e-05/0.3556, allocations: 5.344 kB / 0.5283 GB, free: 2.012 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.932e-05/0.3556, allocations: 36.66 kB / 0.5283 GB, free: 1.969 MB / 382.1 MB Notification: Performance of pre-optimization done (n=44): time 1.894e-06/0.3556, allocations: 0 / 0.5283 GB, free: 1.969 MB / 382.1 MB Notification: Performance of matching and sorting (n=44): time 0.001122/0.3567, allocations: 0.6256 MB / 0.5289 GB, free: 1.707 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.771e-05/0.3568, allocations: 62.44 kB / 0.529 GB, free: 1.641 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001925/0.3587, allocations: 0.9046 MB / 0.5299 GB, free: 1.328 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.143e-05/0.3587, allocations: 35.67 kB / 0.5299 GB, free: 1.289 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001743/0.3589, allocations: 311.6 kB / 0.5302 GB, free: 1.035 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001081/0.359, allocations: 172.9 kB / 0.5304 GB, free: 0.8984 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001461/0.3591, allocations: 101.5 kB / 0.5305 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.986e-05/0.3592, allocations: 392.3 kB / 0.5309 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003222/0.3596, allocations: 195.8 kB / 0.531 GB, free: 432 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003584/0.3599, allocations: 303.1 kB / 0.5313 GB, free: 240 kB / 382.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.003866/0.3638, allocations: 1.385 MB / 0.5327 GB, free: 15.58 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.3638, allocations: 1.406 kB / 0.5327 GB, free: 15.58 MB / 398.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001173/0.365, allocations: 0.6174 MB / 0.5333 GB, free: 15.31 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.514e-05/0.365, allocations: 7.266 kB / 0.5333 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.365, allocations: 3.375 kB / 0.5333 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.26e-05/0.365, allocations: 5.375 kB / 0.5333 GB, free: 15.31 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007417/0.3658, allocations: 157.9 kB / 0.5335 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.628e-05/0.3658, allocations: 10.66 kB / 0.5335 GB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007665/0.3666, allocations: 128.5 kB / 0.5336 GB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.166e-05/0.3666, allocations: 23.34 kB / 0.5336 GB, free: 15.24 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.000392/0.367, allocations: 236 kB / 0.5338 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001428/0.3671, allocations: 68.75 kB / 0.5339 GB, free: 15.03 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00115/0.3683, allocations: 0.5285 MB / 0.5344 GB, free: 14.79 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.06e-05/0.3683, allocations: 9.031 kB / 0.5344 GB, free: 14.79 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/0.3683, allocations: 7.938 kB / 0.5344 GB, free: 14.78 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.698e-06/0.3683, allocations: 2.672 kB / 0.5344 GB, free: 14.78 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009949/0.3693, allocations: 0.6151 MB / 0.535 GB, free: 14.42 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.008e-06/0.3693, allocations: 1.281 kB / 0.535 GB, free: 14.42 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005665/0.3699, allocations: 93.53 kB / 0.5351 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.382e-06/0.3699, allocations: 1.812 kB / 0.5351 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.572e-05/0.3699, allocations: 14.95 kB / 0.5351 GB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.804e-06/0.3699, allocations: 6 kB / 0.5351 GB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.3699, allocations: 5.094 kB / 0.5351 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001382/0.3713, allocations: 0.8262 MB / 0.536 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002167/0.3715, allocations: 168.9 kB / 0.5361 GB, free: 13.83 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.152e-05/0.3716, allocations: 17.62 kB / 0.5361 GB, free: 13.82 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007318/0.3724, allocations: 90.56 kB / 0.5362 GB, free: 13.81 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001013/0.3725, allocations: 38.03 kB / 0.5363 GB, free: 13.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.805e-05/0.3725, allocations: 8.625 kB / 0.5363 GB, free: 13.8 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001671/0.3742, allocations: 0.6893 MB / 0.5369 GB, free: 13.56 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3742, allocations: 0 / 0.5369 GB, free: 13.56 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005268/0.3747, allocations: 115 kB / 0.537 GB, free: 13.54 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.001771/0.3765, allocations: 1.401 MB / 0.5384 GB, free: 12.57 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009395/0.3774, allocations: 455.2 kB / 0.5389 GB, free: 12.42 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3774, allocations: 0 / 0.5389 GB, free: 12.42 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003742/0.3778, allocations: 232.3 kB / 0.5391 GB, free: 12.33 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005969/0.3784, allocations: 97.5 kB / 0.5392 GB, free: 12.27 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01143/0.3898, allocations: 6.427 MB / 0.5454 GB, free: 8.34 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006358/0.3904, allocations: 0.959 MB / 0.5464 GB, free: 7.512 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003941/0.3908, allocations: 113.8 kB / 0.5465 GB, free: 7.465 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004393/0.3913, allocations: 246.5 kB / 0.5467 GB, free: 7.262 MB / 398.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3913, allocations: 1.188 kB / 0.5467 GB, free: 7.262 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04329/0.4346, allocations: 12.55 MB / 0.559 GB, free: 14.91 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.204/9.638, allocations: 15.8 kB / 0.559 GB, free: 14.89 MB / 414.1 MB " [Timeout remaining time 650] (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.467405995121226] Failed to read output from testmodel.py, exit status != 0: 9.73316883505322 9.756776909 9.406549407 Calling exit ...