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.001517/0.001517, allocations: 108.3 kB / 19.73 MB, free: 1.898 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.001494/0.001494, allocations: 211.9 kB / 23.01 MB, free: 4.992 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.549/1.549, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.108/0.108, allocations: 24.04 MB / 337.2 MB, free: 11.34 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.003571/0.003571, allocations: 72.17 kB / 473.8 MB, free: 6.406 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3442/0.3477, allocations: 59.58 MB / 0.5209 GB, free: 10.11 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.00297/0.3507, allocations: 1.787 MB / 0.5226 GB, free: 8.953 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002731/0.3534, allocations: 1.829 MB / 0.5244 GB, free: 7.648 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002664/0.3537, allocations: 13.94 kB / 0.5244 GB, free: 7.641 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005145/0.3542, allocations: 176.6 kB / 0.5246 GB, free: 7.543 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005869/0.3548, allocations: 226.7 kB / 0.5248 GB, free: 7.43 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007268/0.3555, allocations: 433.5 kB / 0.5252 GB, free: 7.203 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001447/0.357, allocations: 1.207 MB / 0.5264 GB, free: 6.695 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002338/0.3572, allocations: 107.1 kB / 0.5265 GB, free: 6.641 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005409/0.3577, allocations: 444.7 kB / 0.527 GB, free: 6.453 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004516/0.3582, allocations: 410.1 kB / 0.5273 GB, free: 6.289 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000112/0.3583, allocations: 64.16 kB / 0.5274 GB, free: 6.289 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002185/0.3585, allocations: 103.8 kB / 0.5275 GB, free: 6.281 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003109/0.3588, allocations: 247.2 kB / 0.5277 GB, free: 6.16 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000198/0.359, allocations: 241.5 kB / 0.528 GB, free: 6 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007945/0.3598, allocations: 0.7429 MB / 0.5287 GB, free: 5.68 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.3598, allocations: 1.219 kB / 0.5287 GB, free: 5.68 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3598, allocations: 0 / 0.5287 GB, free: 5.68 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.329e-05/0.3598, allocations: 3.938 kB / 0.5287 GB, free: 5.676 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.003206/0.363, allocations: 1.18 MB / 0.5299 GB, free: 5.016 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.02e-05/0.3631, allocations: 12.03 kB / 0.5299 GB, free: 5.016 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.026e-05/0.3632, allocations: 74.22 kB / 0.5299 GB, free: 4.953 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001482/0.3633, allocations: 80.3 kB / 0.53 GB, free: 4.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001722/0.3651, allocations: 0.704 MB / 0.5307 GB, free: 4.562 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.79e-05/0.3651, allocations: 30.72 kB / 0.5307 GB, free: 4.547 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.584e-05/0.3652, allocations: 51.3 kB / 0.5308 GB, free: 4.527 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007096/0.3659, allocations: 449.8 kB / 0.5312 GB, free: 4.312 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.619e-05/0.3659, allocations: 1.031 kB / 0.5312 GB, free: 4.312 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.671e-05/0.3659, allocations: 15.25 kB / 0.5312 GB, free: 4.301 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/0.366, allocations: 20.66 kB / 0.5312 GB, free: 4.293 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007184/0.3667, allocations: 416.9 kB / 0.5316 GB, free: 4.148 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002309/0.369, allocations: 1.48 MB / 0.5331 GB, free: 3.211 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000705/0.3697, allocations: 455.9 kB / 0.5335 GB, free: 3.023 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003075/0.37, allocations: 196.8 kB / 0.5337 GB, free: 2.941 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.18e-05/0.37, allocations: 9.703 kB / 0.5337 GB, free: 2.938 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.939e-05/0.3701, allocations: 36.88 kB / 0.5338 GB, free: 2.895 MB / 382.1 MB Notification: Performance of pre-optimization done (n=44): time 2.084e-06/0.3701, allocations: 0 / 0.5338 GB, free: 2.895 MB / 382.1 MB Notification: Performance of matching and sorting (n=44): time 0.001075/0.3711, allocations: 0.631 MB / 0.5344 GB, free: 2.629 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.255e-05/0.3712, allocations: 55.97 kB / 0.5344 GB, free: 2.566 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001783/0.3729, allocations: 0.9075 MB / 0.5353 GB, free: 2.254 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.971e-05/0.373, allocations: 35.67 kB / 0.5353 GB, free: 2.215 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001889/0.3732, allocations: 316.8 kB / 0.5356 GB, free: 1.957 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001256/0.3733, allocations: 163.5 kB / 0.5358 GB, free: 1.828 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001405/0.3734, allocations: 107 kB / 0.5359 GB, free: 1.77 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001001/0.3735, allocations: 384.3 kB / 0.5363 GB, free: 1.426 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003273/0.3739, allocations: 194.6 kB / 0.5365 GB, free: 1.355 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003554/0.3742, allocations: 300.9 kB / 0.5367 GB, free: 1.172 MB / 382.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.003438/0.3777, allocations: 1.228 MB / 0.5379 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.943e-06/0.3777, allocations: 5.156 kB / 0.5379 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0009538/0.3786, allocations: 0.6174 MB / 0.5385 GB, free: 452 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.3786, allocations: 5.812 kB / 0.5386 GB, free: 452 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.177e-06/0.3786, allocations: 4.297 kB / 0.5386 GB, free: 452 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.073e-05/0.3787, allocations: 5.031 kB / 0.5386 GB, free: 452 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006871/0.3794, allocations: 158.7 kB / 0.5387 GB, free: 436 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.652e-05/0.3794, allocations: 13.97 kB / 0.5387 GB, free: 428 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007162/0.3801, allocations: 131.7 kB / 0.5389 GB, free: 384 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.012e-05/0.3801, allocations: 19.41 kB / 0.5389 GB, free: 380 kB / 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.0003065/0.3804, allocations: 236.8 kB / 0.5391 GB, free: 200 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000114/0.3805, allocations: 66.58 kB / 0.5392 GB, free: 164 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009465/0.3815, allocations: 0.5225 MB / 0.5397 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.3815, allocations: 4.375 kB / 0.5397 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/0.3815, allocations: 5.344 kB / 0.5397 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-06/0.3815, allocations: 6.703 kB / 0.5397 GB, free: 15.92 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007348/0.3823, allocations: 0.5017 MB / 0.5402 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.3823, allocations: 1 kB / 0.5402 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005226/0.3828, allocations: 94.06 kB / 0.5403 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.3828, allocations: 1.375 kB / 0.5403 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.825e-05/0.3828, allocations: 15.42 kB / 0.5403 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.018e-06/0.3828, allocations: 2.078 kB / 0.5403 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/0.3828, allocations: 3.938 kB / 0.5403 GB, free: 15.6 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001349/0.3842, allocations: 0.8362 MB / 0.5411 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002074/0.3844, allocations: 91.92 kB / 0.5412 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.691e-05/0.3845, allocations: 18.44 kB / 0.5412 GB, free: 15.11 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007064/0.3852, allocations: 90.81 kB / 0.5413 GB, free: 15.09 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.433e-05/0.3853, allocations: 38.05 kB / 0.5413 GB, free: 15.08 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.609e-05/0.3853, allocations: 13.27 kB / 0.5413 GB, free: 15.08 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001567/0.3869, allocations: 0.6875 MB / 0.542 GB, free: 14.72 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3869, allocations: 0 / 0.542 GB, free: 14.72 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005069/0.3874, allocations: 114.1 kB / 0.5421 GB, free: 14.7 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.001679/0.3891, allocations: 1.395 MB / 0.5435 GB, free: 13.66 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008484/0.3899, allocations: 457.7 kB / 0.5439 GB, free: 13.46 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.3899, allocations: 3.938 kB / 0.5439 GB, free: 13.46 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00036/0.3903, allocations: 228 kB / 0.5441 GB, free: 13.36 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006035/0.3909, allocations: 108.3 kB / 0.5442 GB, free: 13.29 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01121/0.4021, allocations: 6.425 MB / 0.5505 GB, free: 9.367 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004361/0.4025, allocations: 357.4 kB / 0.5509 GB, free: 9.152 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003955/0.4029, allocations: 116.8 kB / 0.551 GB, free: 9.102 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004367/0.4034, allocations: 247.3 kB / 0.5512 GB, free: 8.898 MB / 398.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4034, allocations: 0 / 0.5512 GB, free: 8.898 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04753/0.4509, allocations: 13.41 MB / 0.5643 GB, free: 14.52 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.72/12.17, allocations: 9.844 kB / 0.5643 GB, free: 14.52 MB / 414.1 MB " [Timeout remaining time 648] (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.082402500789613] Failed to read output from testmodel.py, exit status != 0: 12.298846317920834 12.321114997 11.956680896 Calling exit ...