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.001283/0.001283, allocations: 106.5 kB / 19.69 MB, free: 2.277 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.001426/0.001426, allocations: 218.1 kB / 23.01 MB, free: 4.605 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.473/1.473, allocations: 230.6 MB / 256.8 MB, free: 8.023 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.1087/0.1087, allocations: 24.13 MB / 337.3 MB, free: 11.46 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: translateModel(AES.Coursework.Typical_control_structures.Decoupling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Decoupling") translateModel(AES.Coursework.Typical_control_structures.Decoupling,tolerance=1e-06,outputFormat="empty",numberOfIntervals=500,variableFilter="",fileNamePrefix="AES_AES.Coursework.Typical_control_structures.Decoupling") [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.002048/0.002048, allocations: 70.23 kB / 474.6 MB, free: 5.906 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3884/0.3904, allocations: 59.59 MB / 0.5216 GB, free: 10.48 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.00313/0.3935, allocations: 2.023 MB / 0.5236 GB, free: 9.086 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003148/0.3967, allocations: 1.872 MB / 0.5254 GB, free: 7.734 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004014/0.3971, allocations: 13.12 kB / 0.5254 GB, free: 7.727 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006279/0.3977, allocations: 173.4 kB / 0.5256 GB, free: 7.633 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007012/0.3984, allocations: 225.8 kB / 0.5258 GB, free: 7.52 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.001019/0.3994, allocations: 447.3 kB / 0.5263 GB, free: 7.277 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001883/0.4013, allocations: 1.233 MB / 0.5275 GB, free: 6.746 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002759/0.4016, allocations: 114.9 kB / 0.5276 GB, free: 6.684 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006951/0.4023, allocations: 432.9 kB / 0.528 GB, free: 6.508 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006682/0.403, allocations: 434.9 kB / 0.5284 GB, free: 6.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001333/0.4031, allocations: 64.5 kB / 0.5285 GB, free: 6.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002549/0.4034, allocations: 110.7 kB / 0.5286 GB, free: 6.305 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002809/0.4036, allocations: 247.1 kB / 0.5288 GB, free: 6.184 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002536/0.4039, allocations: 305.9 kB / 0.5291 GB, free: 5.957 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009625/0.4048, allocations: 0.7281 MB / 0.5298 GB, free: 5.637 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.4049, allocations: 5.125 kB / 0.5298 GB, free: 5.633 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.4049, allocations: 0 / 0.5298 GB, free: 5.633 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.302e-05/0.4049, allocations: 0 / 0.5298 GB, free: 5.633 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.003286/0.4082, allocations: 1.154 MB / 0.5309 GB, free: 4.992 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.642e-05/0.4082, allocations: 14.33 kB / 0.5309 GB, free: 4.988 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000186/0.4084, allocations: 77.31 kB / 0.531 GB, free: 4.949 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001683/0.4101, allocations: 0.6728 MB / 0.5317 GB, free: 4.609 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.196e-05/0.4101, allocations: 39.8 kB / 0.5317 GB, free: 4.586 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.424e-05/0.4102, allocations: 52.58 kB / 0.5318 GB, free: 4.562 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007619/0.411, allocations: 446.8 kB / 0.5322 GB, free: 4.355 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.411, allocations: 1.031 kB / 0.5322 GB, free: 4.355 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.753e-05/0.411, allocations: 19.12 kB / 0.5322 GB, free: 4.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.556e-05/0.411, allocations: 9.156 kB / 0.5322 GB, free: 4.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000849/0.4119, allocations: 423 kB / 0.5326 GB, free: 4.191 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002696/0.4146, allocations: 1.59 MB / 0.5342 GB, free: 3.219 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007576/0.4153, allocations: 460.8 kB / 0.5346 GB, free: 3.031 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00032/0.4157, allocations: 192 kB / 0.5348 GB, free: 2.953 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.836e-05/0.4157, allocations: 5.297 kB / 0.5348 GB, free: 2.953 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.926e-05/0.4157, allocations: 41.56 kB / 0.5348 GB, free: 2.906 MB / 382.1 MB Notification: Performance of pre-optimization done (n=44): time 2.745e-06/0.4157, allocations: 0 / 0.5348 GB, free: 2.906 MB / 382.1 MB Notification: Performance of matching and sorting (n=44): time 0.00119/0.4169, allocations: 0.6251 MB / 0.5355 GB, free: 2.645 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.3e-05/0.417, allocations: 57.17 kB / 0.5355 GB, free: 2.582 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001934/0.4189, allocations: 0.8793 MB / 0.5364 GB, free: 2.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.555e-05/0.419, allocations: 40.23 kB / 0.5364 GB, free: 2.227 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001966/0.4192, allocations: 299.9 kB / 0.5367 GB, free: 1.98 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001324/0.4193, allocations: 174.5 kB / 0.5369 GB, free: 1.844 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002288/0.4195, allocations: 134.7 kB / 0.537 GB, free: 1.777 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.4196, allocations: 387 kB / 0.5374 GB, free: 1.43 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00068/0.4203, allocations: 293.6 kB / 0.5376 GB, free: 1.34 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007189/0.421, allocations: 410.4 kB / 0.538 GB, free: 1.129 MB / 382.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.004801/0.4258, allocations: 1.527 MB / 0.5395 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.87e-06/0.4258, allocations: 1.344 kB / 0.5395 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001857/0.4277, allocations: 0.8359 MB / 0.5403 GB, free: 284 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.859e-05/0.4277, allocations: 9.734 kB / 0.5403 GB, free: 284 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.4277, allocations: 2.344 kB / 0.5403 GB, free: 284 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.769e-05/0.4278, allocations: 10.48 kB / 0.5404 GB, free: 280 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009423/0.4287, allocations: 199.3 kB / 0.5405 GB, free: 264 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.646e-05/0.4287, allocations: 6.625 kB / 0.5406 GB, free: 264 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001045/0.4298, allocations: 183.5 kB / 0.5407 GB, free: 160 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.89e-05/0.4298, allocations: 25.22 kB / 0.5408 GB, free: 152 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 (86): * Single equations (assignments): 86 * 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.0005777/0.4304, allocations: 238.5 kB / 0.541 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001996/0.4306, allocations: 64.27 kB / 0.541 GB, free: 15.92 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001241/0.4318, allocations: 0.5209 MB / 0.5416 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.015e-05/0.4319, allocations: 4.938 kB / 0.5416 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.4319, allocations: 0 / 0.5416 GB, free: 15.62 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.373e-05/0.4319, allocations: 7.922 kB / 0.5416 GB, free: 15.61 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009786/0.4329, allocations: 0.575 MB / 0.5421 GB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.4329, allocations: 0 / 0.5421 GB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006377/0.4335, allocations: 94.14 kB / 0.5422 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.626e-06/0.4335, allocations: 1.375 kB / 0.5422 GB, free: 15.13 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.976e-05/0.4336, allocations: 17.48 kB / 0.5422 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.7e-06/0.4336, allocations: 1.375 kB / 0.5422 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.4336, allocations: 1.375 kB / 0.5422 GB, free: 15.12 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001437/0.435, allocations: 0.8376 MB / 0.5431 GB, free: 14.62 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001935/0.4352, allocations: 83.47 kB / 0.5431 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.971e-05/0.4353, allocations: 12.09 kB / 0.5431 GB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006963/0.436, allocations: 93.55 kB / 0.5432 GB, free: 14.51 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001069/0.4361, allocations: 35.14 kB / 0.5433 GB, free: 14.49 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.194e-05/0.4361, allocations: 15.3 kB / 0.5433 GB, free: 14.48 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001578/0.4377, allocations: 0.6541 MB / 0.5439 GB, free: 14.12 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4377, allocations: 3.938 kB / 0.5439 GB, free: 14.12 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006232/0.4383, allocations: 119.1 kB / 0.544 GB, free: 14.1 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.0002155/0.4385, allocations: 127.3 kB / 0.5442 GB, free: 13.99 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001276/0.4398, allocations: 0.5554 MB / 0.5447 GB, free: 13.74 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.4398, allocations: 4 kB / 0.5447 GB, free: 13.73 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003811/0.4402, allocations: 223.1 kB / 0.5449 GB, free: 13.64 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006271/0.4408, allocations: 104.3 kB / 0.545 GB, free: 13.57 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002393/0.4432, allocations: 1.376 MB / 0.5464 GB, free: 12.69 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006491/0.4439, allocations: 0.9496 MB / 0.5473 GB, free: 11.87 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003172/0.4442, allocations: 57.41 kB / 0.5473 GB, free: 11.85 MB / 398.1 MB Notification: Performance of SimCode: time 8.41e-07/0.4442, allocations: 0 / 0.5473 GB, free: 11.85 MB / 398.1 MB Notification: Performance of Templates: time 0.01659/0.4608, allocations: 8.245 MB / 0.5554 GB, free: 7.602 MB / 398.1 MB " [Timeout remaining time 660] make -j1 -f AES_AES.Coursework.Typical_control_structures.Decoupling.makefile [Timeout 660] (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 & ./AES_AES.Coursework.Typical_control_structures.Decoupling -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.Typical_control_structures.Decoupling.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 8.27831808803603] Failed to read output from testmodel.py, exit status != 0: 0.4703589321579784 0.48524571800000005 0.077125811 Calling exit ...