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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00188/0.00188, allocations: 104.1 kB / 16.45 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002009/0.002009, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.391/1.391, allocations: 225.6 MB / 247.8 MB, free: 13.93 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.09719/0.09719, allocations: 22.7 MB / 325.4 MB, free: 3.555 MB / 254.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.001895/0.001895, allocations: 63.89 kB / 457.2 MB, free: 1.801 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1131, allocations: 58.01 MB / 0.5031 GB, free: 7.676 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Decoupling): time 0.003385/0.1164, allocations: 2.024 MB / 0.5051 GB, free: 5.645 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002685/0.1191, allocations: 1.809 MB / 0.5068 GB, free: 3.816 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001833/0.1193, allocations: 15.94 kB / 0.5069 GB, free: 3.801 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004837/0.1198, allocations: 162.8 kB / 0.507 GB, free: 3.641 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005635/0.1204, allocations: 223 kB / 0.5072 GB, free: 3.422 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.0006248/0.121, allocations: 383.5 kB / 0.5076 GB, free: 3.047 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001109/0.1221, allocations: 1.066 MB / 0.5086 GB, free: 1.98 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002302/0.1223, allocations: 113.6 kB / 0.5087 GB, free: 1.863 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004631/0.1228, allocations: 410.6 kB / 0.5091 GB, free: 1.461 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005229/0.1233, allocations: 438.2 kB / 0.5095 GB, free: 1.031 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.73e-05/0.1234, allocations: 64 kB / 0.5096 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000168/0.1236, allocations: 95.97 kB / 0.5097 GB, free: 0.875 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002589/0.1238, allocations: 251.2 kB / 0.5099 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002683/0.1241, allocations: 310 kB / 0.5102 GB, free: 332 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2027/0.3268, allocations: 0.7378 MB / 0.511 GB, free: 11.54 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3268, allocations: 1.094 kB / 0.511 GB, free: 11.54 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3268, allocations: 0 / 0.511 GB, free: 11.54 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.29e-05/0.3268, allocations: 0 / 0.511 GB, free: 11.54 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.002901/0.3297, allocations: 1.241 MB / 0.5122 GB, free: 10.92 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.3297, allocations: 11.06 kB / 0.5122 GB, free: 10.92 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.481e-05/0.3298, allocations: 75.88 kB / 0.5122 GB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000123/0.3299, allocations: 91.06 kB / 0.5123 GB, free: 10.84 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001491/0.3314, allocations: 0.7584 MB / 0.5131 GB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.155e-05/0.3315, allocations: 29.94 kB / 0.5131 GB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.817e-05/0.3315, allocations: 53.7 kB / 0.5132 GB, free: 10.54 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000579/0.3321, allocations: 454.9 kB / 0.5136 GB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.767e-05/0.3321, allocations: 0.8906 kB / 0.5136 GB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.341e-05/0.3322, allocations: 19.84 kB / 0.5136 GB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.418e-06/0.3322, allocations: 11.81 kB / 0.5136 GB, free: 10.46 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000651/0.3328, allocations: 412.7 kB / 0.514 GB, free: 10.45 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002002/0.3348, allocations: 1.644 MB / 0.5156 GB, free: 9.801 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006184/0.3354, allocations: 459.5 kB / 0.5161 GB, free: 9.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002769/0.3357, allocations: 196.8 kB / 0.5162 GB, free: 9.758 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.999e-05/0.3358, allocations: 5.859 kB / 0.5163 GB, free: 9.758 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.171e-05/0.3358, allocations: 42.81 kB / 0.5163 GB, free: 9.719 MB / 382.1 MB Notification: Performance of pre-optimization done (n=44): time 1.663e-06/0.3358, allocations: 0 / 0.5163 GB, free: 9.719 MB / 382.1 MB Notification: Performance of matching and sorting (n=44): time 0.001027/0.3368, allocations: 0.6252 MB / 0.5169 GB, free: 9.641 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.476e-05/0.3368, allocations: 58.05 kB / 0.517 GB, free: 9.578 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001618/0.3385, allocations: 0.9109 MB / 0.5178 GB, free: 9.438 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.027e-05/0.3385, allocations: 35.2 kB / 0.5179 GB, free: 9.406 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001613/0.3386, allocations: 314.6 kB / 0.5182 GB, free: 9.277 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001007/0.3387, allocations: 169.3 kB / 0.5183 GB, free: 9.172 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001346/0.3389, allocations: 105.1 kB / 0.5184 GB, free: 9.152 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.158e-05/0.339, allocations: 386.9 kB / 0.5188 GB, free: 8.836 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003078/0.3393, allocations: 191.8 kB / 0.519 GB, free: 8.828 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003336/0.3396, allocations: 304.8 kB / 0.5193 GB, free: 8.727 MB / 382.1 MB Error: Initialization problem is structural singular. Please, check the initial conditions. Notification: Performance of analyzeInitialSystem (initialization): time 0.003294/0.3429, allocations: 1.382 MB / 0.5206 GB, free: 8.379 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.3429, allocations: 0 / 0.5206 GB, free: 8.379 MB / 382.1 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0008834/0.3438, allocations: 0.6202 MB / 0.5212 GB, free: 8.117 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.814e-05/0.3438, allocations: 6.062 kB / 0.5212 GB, free: 8.117 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.3438, allocations: 3.25 kB / 0.5212 GB, free: 8.117 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.881e-05/0.3438, allocations: 5.625 kB / 0.5213 GB, free: 8.117 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006687/0.3445, allocations: 156.5 kB / 0.5214 GB, free: 8.113 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.127e-05/0.3445, allocations: 5.984 kB / 0.5214 GB, free: 8.113 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006442/0.3452, allocations: 128.2 kB / 0.5215 GB, free: 8.074 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.481e-05/0.3452, allocations: 23.09 kB / 0.5216 GB, free: 8.066 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.0002724/0.3455, allocations: 247.2 kB / 0.5218 GB, free: 7.891 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.675e-05/0.3456, allocations: 66.06 kB / 0.5219 GB, free: 7.855 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008141/0.3464, allocations: 0.5303 MB / 0.5224 GB, free: 7.613 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.75e-06/0.3464, allocations: 4.5 kB / 0.5224 GB, free: 7.613 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.3464, allocations: 0 / 0.5224 GB, free: 7.613 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.791e-06/0.3464, allocations: 8.812 kB / 0.5224 GB, free: 7.609 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006087/0.347, allocations: 0.6166 MB / 0.523 GB, free: 7.258 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.347, allocations: 4 kB / 0.523 GB, free: 7.254 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004965/0.3475, allocations: 94.53 kB / 0.5231 GB, free: 7.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.3475, allocations: 3.5 kB / 0.5231 GB, free: 7.25 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.398e-05/0.3475, allocations: 12.23 kB / 0.5231 GB, free: 7.242 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.577e-06/0.3475, allocations: 2.75 kB / 0.5231 GB, free: 7.242 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3475, allocations: 0 / 0.5231 GB, free: 7.242 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009863/0.3485, allocations: 0.8326 MB / 0.5239 GB, free: 6.824 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001694/0.3487, allocations: 172.4 kB / 0.5241 GB, free: 6.672 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.901e-05/0.3488, allocations: 18.16 kB / 0.5241 GB, free: 6.664 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006361/0.3494, allocations: 86.88 kB / 0.5242 GB, free: 6.656 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.544e-05/0.3495, allocations: 46.12 kB / 0.5242 GB, free: 6.637 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.673e-05/0.3495, allocations: 9.781 kB / 0.5242 GB, free: 6.637 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001402/0.3509, allocations: 0.6861 MB / 0.5249 GB, free: 6.41 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3509, allocations: 0 / 0.5249 GB, free: 6.41 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004603/0.3514, allocations: 111.6 kB / 0.525 GB, free: 6.387 MB / 382.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.001332/0.3527, allocations: 1.396 MB / 0.5264 GB, free: 5.426 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000705/0.3534, allocations: 462.6 kB / 0.5268 GB, free: 5.289 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.3534, allocations: 0 / 0.5268 GB, free: 5.289 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002969/0.3537, allocations: 226.3 kB / 0.527 GB, free: 5.223 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005253/0.3543, allocations: 102.7 kB / 0.5271 GB, free: 5.176 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009837/0.3641, allocations: 6.432 MB / 0.5334 GB, free: 2.074 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004428/0.3645, allocations: 0.959 MB / 0.5343 GB, free: 1.348 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003663/0.3649, allocations: 107.3 kB / 0.5344 GB, free: 1.34 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003118/0.3652, allocations: 249.8 kB / 0.5347 GB, free: 1.156 MB / 382.1 MB Notification: Performance of SimCode: time 7.72e-07/0.3652, allocations: 0 / 0.5347 GB, free: 1.156 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03733/0.4025, allocations: 12.57 MB / 0.547 GB, free: 12.07 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.688/9.09, allocations: 10.73 kB / 0.547 GB, free: 12.07 MB / 398.1 MB " [Timeout remaining time 651] (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: 11.59462177194655] Failed to read output from testmodel.py, exit status != 0: 9.169359886087477 9.184190149 8.85435747 Calling exit ...