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.001384/0.001384, allocations: 113.5 kB / 19.73 MB, free: 2.242 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.001441/0.001441, allocations: 221.5 kB / 23.05 MB, free: 5.074 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.539/1.539, allocations: 230.6 MB / 256.8 MB, free: 7.992 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.1217/0.1217, allocations: 22.94 MB / 336.2 MB, free: 12.61 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Decoupling,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Decoupling",fmuType="cs",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.002328/0.002328, allocations: 67.91 kB / 472.3 MB, free: 8.035 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3505/0.3528, allocations: 59.28 MB / 0.5191 GB, free: 10.92 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.00446/0.3573, allocations: 2.024 MB / 0.5211 GB, free: 9.547 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004/0.3613, allocations: 1.876 MB / 0.5229 GB, free: 8.191 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000378/0.3617, allocations: 13.53 kB / 0.5229 GB, free: 8.184 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007627/0.3624, allocations: 170.5 kB / 0.5231 GB, free: 8.094 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009865/0.3634, allocations: 228.5 kB / 0.5233 GB, free: 7.977 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.00144/0.3649, allocations: 447.8 kB / 0.5237 GB, free: 7.734 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002418/0.3673, allocations: 1.229 MB / 0.5249 GB, free: 7.207 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003592/0.3676, allocations: 115.1 kB / 0.525 GB, free: 7.145 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008476/0.3685, allocations: 434.2 kB / 0.5254 GB, free: 6.965 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007567/0.3692, allocations: 437.1 kB / 0.5259 GB, free: 6.777 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001549/0.3694, allocations: 72.81 kB / 0.5259 GB, free: 6.77 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002887/0.3697, allocations: 108.6 kB / 0.526 GB, free: 6.758 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003148/0.37, allocations: 254.1 kB / 0.5263 GB, free: 6.629 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003755/0.3704, allocations: 299.8 kB / 0.5266 GB, free: 6.41 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001459/0.3718, allocations: 0.739 MB / 0.5273 GB, free: 6.082 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.305e-06/0.3718, allocations: 6.031 kB / 0.5273 GB, free: 6.078 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.3718, allocations: 0 / 0.5273 GB, free: 6.078 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.761e-05/0.3719, allocations: 0 / 0.5273 GB, free: 6.078 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.005888/0.3778, allocations: 1.173 MB / 0.5284 GB, free: 5.426 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.426e-05/0.3778, allocations: 10.8 kB / 0.5284 GB, free: 5.426 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.857e-05/0.3779, allocations: 9.375 kB / 0.5285 GB, free: 5.422 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001038/0.378, allocations: 75.23 kB / 0.5285 GB, free: 5.359 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002308/0.3782, allocations: 80.3 kB / 0.5286 GB, free: 5.316 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003103/0.3813, allocations: 0.7115 MB / 0.5293 GB, free: 4.965 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.781e-05/0.3814, allocations: 34.06 kB / 0.5293 GB, free: 4.949 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001362/0.3815, allocations: 45.08 kB / 0.5294 GB, free: 4.934 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00119/0.3827, allocations: 458.4 kB / 0.5298 GB, free: 4.715 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.954e-05/0.3827, allocations: 0.9688 kB / 0.5298 GB, free: 4.715 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.881e-05/0.3828, allocations: 15.41 kB / 0.5298 GB, free: 4.703 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.681e-05/0.3828, allocations: 13 kB / 0.5298 GB, free: 4.699 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001378/0.3842, allocations: 419.6 kB / 0.5302 GB, free: 4.555 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003884/0.388, allocations: 1.602 MB / 0.5318 GB, free: 3.582 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001185/0.3892, allocations: 460.3 kB / 0.5322 GB, free: 3.395 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000547/0.3898, allocations: 191.9 kB / 0.5324 GB, free: 3.316 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.35e-05/0.3898, allocations: 4.688 kB / 0.5324 GB, free: 3.316 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.447e-05/0.3898, allocations: 36.97 kB / 0.5325 GB, free: 3.273 MB / 382.1 MB Notification: Performance of pre-optimization done (n=44): time 3.266e-06/0.3899, allocations: 0 / 0.5325 GB, free: 3.273 MB / 382.1 MB Notification: Performance of matching and sorting (n=44): time 0.00204/0.3919, allocations: 0.631 MB / 0.5331 GB, free: 3.008 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.43e-05/0.3919, allocations: 59.91 kB / 0.5331 GB, free: 2.941 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003081/0.395, allocations: 0.9102 MB / 0.534 GB, free: 2.625 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.194e-05/0.3951, allocations: 36.33 kB / 0.5341 GB, free: 2.586 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002752/0.3953, allocations: 312.2 kB / 0.5344 GB, free: 2.332 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000184/0.3955, allocations: 167.4 kB / 0.5345 GB, free: 2.199 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002352/0.3958, allocations: 106.4 kB / 0.5346 GB, free: 2.141 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.3959, allocations: 384.4 kB / 0.535 GB, free: 1.797 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005719/0.3965, allocations: 194.3 kB / 0.5352 GB, free: 1.727 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006158/0.3971, allocations: 307 kB / 0.5355 GB, free: 1.531 MB / 382.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.006058/0.4032, allocations: 1.221 MB / 0.5367 GB, free: 1.082 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/0.4032, allocations: 4.938 kB / 0.5367 GB, free: 1.078 MB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.00162/0.4048, allocations: 0.6169 MB / 0.5373 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.679e-05/0.4048, allocations: 7.578 kB / 0.5373 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/0.4048, allocations: 6.656 kB / 0.5373 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.777e-05/0.4048, allocations: 5.344 kB / 0.5373 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001153/0.406, allocations: 158.1 kB / 0.5374 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.021e-05/0.406, allocations: 6.359 kB / 0.5374 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001168/0.4072, allocations: 128.3 kB / 0.5376 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.34e-05/0.4072, allocations: 23.72 kB / 0.5376 GB, free: 0.7383 MB / 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.0004719/0.4077, allocations: 238.9 kB / 0.5378 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001934/0.4079, allocations: 73.36 kB / 0.5379 GB, free: 0.5195 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001495/0.4094, allocations: 0.5285 MB / 0.5384 GB, free: 288 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.687e-06/0.4094, allocations: 4.406 kB / 0.5384 GB, free: 288 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/0.4094, allocations: 7.938 kB / 0.5384 GB, free: 280 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.948e-06/0.4094, allocations: 3.703 kB / 0.5384 GB, free: 280 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00115/0.4106, allocations: 0.5821 MB / 0.539 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.69e-06/0.4106, allocations: 1.672 kB / 0.539 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001025/0.4116, allocations: 93.12 kB / 0.5391 GB, free: 15.94 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.403e-06/0.4116, allocations: 1.344 kB / 0.5391 GB, free: 15.94 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.142e-05/0.4117, allocations: 15.22 kB / 0.5391 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.102e-06/0.4117, allocations: 2.562 kB / 0.5391 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.602e-06/0.4117, allocations: 4.453 kB / 0.5391 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002231/0.4139, allocations: 0.838 MB / 0.5399 GB, free: 15.5 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002789/0.4142, allocations: 93.23 kB / 0.54 GB, free: 15.45 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001542/0.4144, allocations: 14.05 kB / 0.54 GB, free: 15.44 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001257/0.4156, allocations: 95.58 kB / 0.5401 GB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001449/0.4158, allocations: 33.66 kB / 0.5401 GB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.268e-05/0.4158, allocations: 13.34 kB / 0.5402 GB, free: 15.41 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001859/0.4177, allocations: 0.6866 MB / 0.5408 GB, free: 15.08 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4177, allocations: 0.9688 kB / 0.5408 GB, free: 15.08 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005415/0.4182, allocations: 110.8 kB / 0.5409 GB, free: 15.05 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.001721/0.4199, allocations: 1.396 MB / 0.5423 GB, free: 14.02 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008728/0.4208, allocations: 454.6 kB / 0.5427 GB, free: 13.82 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.4208, allocations: 0 / 0.5427 GB, free: 13.82 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003499/0.4212, allocations: 219.5 kB / 0.5429 GB, free: 13.72 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006073/0.4218, allocations: 103.1 kB / 0.543 GB, free: 13.66 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01259/0.4344, allocations: 6.442 MB / 0.5493 GB, free: 9.723 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007755/0.4351, allocations: 0.956 MB / 0.5503 GB, free: 8.898 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004661/0.4356, allocations: 119.1 kB / 0.5504 GB, free: 8.848 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005301/0.4361, allocations: 247 kB / 0.5506 GB, free: 8.645 MB / 398.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4361, allocations: 0 / 0.5506 GB, free: 8.645 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04124/0.4774, allocations: 13.03 MB / 0.5633 GB, free: 15.79 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.34/12.81, allocations: 13.78 kB / 0.5633 GB, free: 15.77 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 & /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: 15.710001357016154] Failed to read output from testmodel.py, exit status != 0: 12.989563822979107 13.014751734 12.638198263 Calling exit ...