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.00135/0.00135, allocations: 100.3 kB / 19.72 MB, free: 1.785 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.001502/0.001502, allocations: 210.5 kB / 23.01 MB, free: 4.621 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.51/1.51, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.1079/0.1079, allocations: 24.03 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.002146/0.002146, allocations: 67.91 kB / 473.8 MB, free: 6.395 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3312/0.3333, allocations: 59.57 MB / 0.5209 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.003913/0.3373, allocations: 1.794 MB / 0.5226 GB, free: 9.016 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003684/0.3409, allocations: 1.825 MB / 0.5244 GB, free: 7.715 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004653/0.3414, allocations: 17.56 kB / 0.5244 GB, free: 7.703 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007822/0.3422, allocations: 173 kB / 0.5246 GB, free: 7.609 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009411/0.3431, allocations: 226 kB / 0.5248 GB, free: 7.496 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00122/0.3443, allocations: 434 kB / 0.5252 GB, free: 7.27 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002104/0.3465, allocations: 1.206 MB / 0.5264 GB, free: 6.762 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003762/0.3468, allocations: 111.2 kB / 0.5265 GB, free: 6.703 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000733/0.3476, allocations: 436.2 kB / 0.5269 GB, free: 6.523 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007442/0.3483, allocations: 416.6 kB / 0.5273 GB, free: 6.355 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001575/0.3485, allocations: 65.66 kB / 0.5274 GB, free: 6.355 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003089/0.3488, allocations: 101.8 kB / 0.5275 GB, free: 6.348 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004356/0.3492, allocations: 250 kB / 0.5277 GB, free: 6.223 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003758/0.3496, allocations: 241.4 kB / 0.528 GB, free: 6.062 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001639/0.3512, allocations: 0.7433 MB / 0.5287 GB, free: 5.742 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.985e-06/0.3512, allocations: 0 / 0.5287 GB, free: 5.742 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.787e-06/0.3512, allocations: 3.938 kB / 0.5287 GB, free: 5.738 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.995e-05/0.3513, allocations: 1.031 kB / 0.5287 GB, free: 5.738 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.00361/0.3549, allocations: 1.181 MB / 0.5299 GB, free: 5.078 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.354e-05/0.3549, allocations: 9.766 kB / 0.5299 GB, free: 5.078 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.008e-05/0.355, allocations: 72.27 kB / 0.5299 GB, free: 5.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001464/0.3551, allocations: 84.92 kB / 0.53 GB, free: 4.973 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001707/0.3568, allocations: 0.7042 MB / 0.5307 GB, free: 4.625 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.509e-05/0.3569, allocations: 34.84 kB / 0.5307 GB, free: 4.605 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.81e-05/0.357, allocations: 44.77 kB / 0.5308 GB, free: 4.59 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007112/0.3577, allocations: 454.4 kB / 0.5312 GB, free: 4.371 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.464e-05/0.3577, allocations: 1.219 kB / 0.5312 GB, free: 4.371 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.79e-05/0.3577, allocations: 15.78 kB / 0.5312 GB, free: 4.359 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.312e-05/0.3577, allocations: 13.25 kB / 0.5312 GB, free: 4.355 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007278/0.3585, allocations: 417.3 kB / 0.5316 GB, free: 4.215 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002396/0.3609, allocations: 1.487 MB / 0.5331 GB, free: 3.27 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007155/0.3616, allocations: 452.7 kB / 0.5335 GB, free: 3.086 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003296/0.3619, allocations: 200.5 kB / 0.5337 GB, free: 3 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.343e-05/0.362, allocations: 8.719 kB / 0.5337 GB, free: 2.996 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.201e-05/0.362, allocations: 37.3 kB / 0.5338 GB, free: 2.953 MB / 382.1 MB Notification: Performance of pre-optimization done (n=44): time 1.974e-06/0.362, allocations: 1.062 kB / 0.5338 GB, free: 2.953 MB / 382.1 MB Notification: Performance of matching and sorting (n=44): time 0.001146/0.3631, allocations: 0.6264 MB / 0.5344 GB, free: 2.691 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.403e-05/0.3631, allocations: 55.91 kB / 0.5344 GB, free: 2.629 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001901/0.365, allocations: 0.9115 MB / 0.5353 GB, free: 2.312 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.04e-05/0.3651, allocations: 32.11 kB / 0.5353 GB, free: 2.277 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002089/0.3653, allocations: 319.2 kB / 0.5356 GB, free: 2.016 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001266/0.3654, allocations: 168.8 kB / 0.5358 GB, free: 1.883 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001604/0.3656, allocations: 102 kB / 0.5359 GB, free: 1.828 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.3657, allocations: 388.1 kB / 0.5363 GB, free: 1.48 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003336/0.366, allocations: 195.1 kB / 0.5365 GB, free: 1.41 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003743/0.3664, allocations: 301.2 kB / 0.5367 GB, free: 1.227 MB / 382.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.003559/0.37, allocations: 1.225 MB / 0.5379 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.098e-06/0.37, allocations: 0 / 0.5379 GB, free: 0.7773 MB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.001034/0.371, allocations: 0.6217 MB / 0.5386 GB, free: 0.5 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.894e-05/0.371, allocations: 6.719 kB / 0.5386 GB, free: 0.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.178e-06/0.371, allocations: 3.094 kB / 0.5386 GB, free: 0.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.157e-05/0.3711, allocations: 6.781 kB / 0.5386 GB, free: 0.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007332/0.3718, allocations: 152.8 kB / 0.5387 GB, free: 500 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.387e-05/0.3718, allocations: 18.83 kB / 0.5387 GB, free: 488 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001015/0.3728, allocations: 132.6 kB / 0.5389 GB, free: 444 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.119e-05/0.3729, allocations: 27.11 kB / 0.5389 GB, free: 432 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.0004672/0.3733, allocations: 232.2 kB / 0.5391 GB, free: 256 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001617/0.3735, allocations: 65.3 kB / 0.5392 GB, free: 220 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001104/0.3746, allocations: 0.5282 MB / 0.5397 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.3746, allocations: 5.406 kB / 0.5397 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.024e-06/0.3746, allocations: 3.938 kB / 0.5397 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.3746, allocations: 2.344 kB / 0.5397 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000814/0.3754, allocations: 0.4909 MB / 0.5402 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.007e-06/0.3755, allocations: 4 kB / 0.5402 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006115/0.3761, allocations: 93.12 kB / 0.5403 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/0.3761, allocations: 2.906 kB / 0.5403 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.598e-05/0.3761, allocations: 14.39 kB / 0.5403 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.953e-06/0.3761, allocations: 5.906 kB / 0.5403 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.3761, allocations: 5.406 kB / 0.5403 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001281/0.3774, allocations: 0.835 MB / 0.5411 GB, free: 15.23 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002087/0.3776, allocations: 92.45 kB / 0.5412 GB, free: 15.18 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.688e-05/0.3777, allocations: 14.33 kB / 0.5412 GB, free: 15.17 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007135/0.3784, allocations: 95.28 kB / 0.5413 GB, free: 15.16 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001377/0.3786, allocations: 33.45 kB / 0.5413 GB, free: 15.15 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.588e-05/0.3786, allocations: 13.61 kB / 0.5413 GB, free: 15.14 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001843/0.3804, allocations: 0.6891 MB / 0.542 GB, free: 14.8 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3804, allocations: 0 / 0.542 GB, free: 14.8 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005939/0.381, allocations: 114.5 kB / 0.5421 GB, free: 14.78 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.00178/0.3828, allocations: 1.394 MB / 0.5435 GB, free: 13.75 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009925/0.3838, allocations: 461.3 kB / 0.5439 GB, free: 13.54 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3838, allocations: 0.9688 kB / 0.5439 GB, free: 13.54 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003793/0.3842, allocations: 223.7 kB / 0.5441 GB, free: 13.44 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006221/0.3848, allocations: 109.1 kB / 0.5442 GB, free: 13.38 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01161/0.3964, allocations: 6.428 MB / 0.5505 GB, free: 9.449 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000429/0.3968, allocations: 361.1 kB / 0.5509 GB, free: 9.23 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000378/0.3972, allocations: 104.7 kB / 0.551 GB, free: 9.191 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004167/0.3976, allocations: 254.7 kB / 0.5512 GB, free: 8.98 MB / 398.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3976, allocations: 0 / 0.5512 GB, free: 8.98 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04527/0.4429, allocations: 13.4 MB / 0.5643 GB, free: 14.54 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/11.98, allocations: 2.656 kB / 0.5643 GB, free: 14.54 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_Decoupling_fmu --startTime=0 --stopTime=20 --stepSize=0.04 --timeout=50 --tolerance=1e-06 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: 14.747982386965305] Failed to read output from testmodel.py, exit status != 0: 12.099743268918246 12.116525052 11.761905546 Calling exit ...