Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Cascade_basic.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.001377/0.001377, allocations: 96.36 kB / 19.72 MB, free: 436 kB / 13.93 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.002443/0.002443, allocations: 211 kB / 23.01 MB, free: 2.973 MB / 13.93 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 0.9729/0.9729, allocations: 230.6 MB / 256.8 MB, free: 9.598 MB / 202.7 MB " [Timeout remaining time 179] 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.06409/0.06409, allocations: 24.53 MB / 337.7 MB, free: 9.859 MB / 266.7 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.Cascade_basic,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Cascade_basic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Cascade_basic,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Cascade_basic",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.000959/0.000959, allocations: 70.56 kB / 475.4 MB, free: 14.62 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.103/0.104, allocations: 59.72 MB / 0.5225 GB, free: 2.801 MB / 378.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Cascade_basic): time 0.00255/0.1065, allocations: 1.814 MB / 0.5243 GB, free: 0.9688 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004543/0.107, allocations: 191.2 kB / 0.5245 GB, free: 0.7812 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001119/0.1071, allocations: 7.875 kB / 0.5245 GB, free: 0.7734 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000145/0.1073, allocations: 39.59 kB / 0.5245 GB, free: 0.7344 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.488e-05/0.1073, allocations: 11.81 kB / 0.5246 GB, free: 0.7227 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001977/0.1075, allocations: 91.88 kB / 0.5246 GB, free: 0.6328 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002123/0.1077, allocations: 236.8 kB / 0.5249 GB, free: 408 kB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001263/0.1078, allocations: 48.55 kB / 0.5249 GB, free: 364 kB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.785e-05/0.1079, allocations: 87.66 kB / 0.525 GB, free: 276 kB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001079/0.108, allocations: 83.52 kB / 0.5251 GB, free: 192 kB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.728e-05/0.108, allocations: 20 kB / 0.5251 GB, free: 172 kB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.157e-05/0.1081, allocations: 20 kB / 0.5251 GB, free: 152 kB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.854e-05/0.1081, allocations: 51.78 kB / 0.5252 GB, free: 100 kB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.65e-05/0.1082, allocations: 83.5 kB / 0.5252 GB, free: 16 kB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001821/0.1083, allocations: 191.2 kB / 0.5254 GB, free: 15.82 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.1084, allocations: 3.938 kB / 0.5254 GB, free: 15.82 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1084, allocations: 0 / 0.5254 GB, free: 15.82 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.124e-06/0.1084, allocations: 0 / 0.5254 GB, free: 15.82 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.0005991/0.109, allocations: 449.7 kB / 0.5259 GB, free: 15.35 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.109, allocations: 12.03 kB / 0.5259 GB, free: 15.34 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.364e-05/0.109, allocations: 50.73 kB / 0.5259 GB, free: 15.28 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.134e-05/0.1091, allocations: 28.8 kB / 0.5259 GB, free: 15.25 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000222/0.1093, allocations: 178.8 kB / 0.5261 GB, free: 15.05 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.842e-05/0.1093, allocations: 20.81 kB / 0.5261 GB, free: 15.03 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.88e-05/0.1094, allocations: 20.38 kB / 0.5262 GB, free: 15.01 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002845/0.1096, allocations: 240.8 kB / 0.5264 GB, free: 14.75 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.1097, allocations: 3.938 kB / 0.5264 GB, free: 14.75 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.646e-05/0.1097, allocations: 12 kB / 0.5264 GB, free: 14.73 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.623e-06/0.1097, allocations: 4 kB / 0.5264 GB, free: 14.73 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002076/0.1099, allocations: 153 kB / 0.5266 GB, free: 14.58 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00109/0.111, allocations: 0.9508 MB / 0.5275 GB, free: 13.57 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002121/0.1112, allocations: 146.6 kB / 0.5276 GB, free: 13.42 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.943e-05/0.1113, allocations: 60.84 kB / 0.5277 GB, free: 13.36 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.127e-05/0.1113, allocations: 11.92 kB / 0.5277 GB, free: 13.35 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.112e-05/0.1113, allocations: 34.56 kB / 0.5277 GB, free: 13.3 MB / 394.7 MB Notification: Performance of pre-optimization done (n=21): time 1.112e-06/0.1113, allocations: 0 / 0.5277 GB, free: 13.3 MB / 394.7 MB Notification: Performance of matching and sorting (n=21): time 0.0003483/0.1117, allocations: 240.3 kB / 0.528 GB, free: 13.07 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.893e-05/0.1117, allocations: 59.41 kB / 0.528 GB, free: 13 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001367/0.1118, allocations: 219 kB / 0.5282 GB, free: 12.77 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.817e-05/0.1119, allocations: 33.7 kB / 0.5282 GB, free: 12.73 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.817e-05/0.1119, allocations: 156.3 kB / 0.5284 GB, free: 12.58 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.263e-05/0.112, allocations: 83.33 kB / 0.5285 GB, free: 12.5 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.374e-05/0.112, allocations: 73.64 kB / 0.5285 GB, free: 12.42 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.437e-05/0.1121, allocations: 330.8 kB / 0.5289 GB, free: 12.09 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.599e-05/0.1122, allocations: 75.75 kB / 0.5289 GB, free: 12.01 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001287/0.1123, allocations: 163.1 kB / 0.5291 GB, free: 11.81 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001076/0.1134, allocations: 461.2 kB / 0.5295 GB, free: 11.32 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.1134, allocations: 0 / 0.5295 GB, free: 11.32 MB / 394.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0003068/0.1137, allocations: 305.2 kB / 0.5298 GB, free: 11.02 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.1137, allocations: 8 kB / 0.5298 GB, free: 11.01 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.232e-06/0.1138, allocations: 4 kB / 0.5298 GB, free: 11.01 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.1138, allocations: 4 kB / 0.5298 GB, free: 11 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001667/0.1139, allocations: 84.2 kB / 0.5299 GB, free: 10.92 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.106e-06/0.1139, allocations: 8 kB / 0.5299 GB, free: 10.91 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.152e-05/0.114, allocations: 39.72 kB / 0.53 GB, free: 10.88 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.585e-05/0.114, allocations: 16 kB / 0.53 GB, free: 10.86 MB / 394.7 MB Warning: Assuming fixed start value for the following 2 variables: P_I.y:VARIABLE(flow=false start = P_I.y_start fixed = true ) \"Connector of Real output signal\" type: Real P_E.y:VARIABLE(flow=false start = P_E.y_start fixed = true ) \"Connector of Real output signal\" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 8 (PI_I.LOsat,PI_I.HIsat,PI_E.LOsat,PI_E.HIsat,PI_I.iNoDec,PI_I.iNoInc,PI_I.iTS,PI_E.iTS) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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.0001642/0.1142, allocations: 141.7 kB / 0.5301 GB, free: 10.71 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.521e-05/0.1142, allocations: 23.78 kB / 0.5301 GB, free: 10.69 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002879/0.1145, allocations: 223.3 kB / 0.5303 GB, free: 10.45 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.1145, allocations: 0 / 0.5303 GB, free: 10.45 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.1145, allocations: 8 kB / 0.5304 GB, free: 10.45 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.1145, allocations: 3.984 kB / 0.5304 GB, free: 10.44 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002907/0.1148, allocations: 268.4 kB / 0.5306 GB, free: 10.14 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.1148, allocations: 4 kB / 0.5306 GB, free: 10.13 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000163/0.115, allocations: 55.91 kB / 0.5307 GB, free: 10.08 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.115, allocations: 0 / 0.5307 GB, free: 10.08 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.68e-05/0.115, allocations: 8 kB / 0.5307 GB, free: 10.07 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.115, allocations: 0 / 0.5307 GB, free: 10.07 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.115, allocations: 0 / 0.5307 GB, free: 10.07 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003695/0.1154, allocations: 381.1 kB / 0.531 GB, free: 9.68 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.143e-05/0.1154, allocations: 19.8 kB / 0.5311 GB, free: 9.66 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.158e-05/0.1154, allocations: 8 kB / 0.5311 GB, free: 9.652 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.925e-05/0.1155, allocations: 7.984 kB / 0.5311 GB, free: 9.645 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.329e-05/0.1155, allocations: 23.95 kB / 0.5311 GB, free: 9.621 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.035e-06/0.1156, allocations: 8 kB / 0.5311 GB, free: 9.613 MB / 394.7 MB Notification: Performance of sorting global known variables: time 7.505e-05/0.1156, allocations: 145 kB / 0.5312 GB, free: 9.473 MB / 394.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1156, allocations: 96 / 0.5312 GB, free: 9.473 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002069/0.1158, allocations: 47.89 kB / 0.5313 GB, free: 9.426 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (P_I.y,P_E.y,PI_E.xfb,PI_E.xBias,PI_E.u,PI_E.csfil,PI_I.xfb,PI_I.xBias,PI_I.u,PI_I.csfil) * Number of discrete variables: 4 (PI_E.HIsat,PI_E.LOsat,PI_I.HIsat,PI_I.LOsat) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 23 * 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.000499/0.1163, allocations: 0.9188 MB / 0.5322 GB, free: 8.484 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002506/0.1166, allocations: 191.7 kB / 0.5324 GB, free: 8.297 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.1166, allocations: 0 / 0.5324 GB, free: 8.297 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 9.463e-05/0.1167, allocations: 91.84 kB / 0.5325 GB, free: 8.207 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002376/0.1169, allocations: 29.34 kB / 0.5325 GB, free: 8.18 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002067/0.119, allocations: 2.625 MB / 0.5351 GB, free: 5.418 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.036e-05/0.1191, allocations: 138.5 kB / 0.5352 GB, free: 5.262 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 7.6e-05/0.1191, allocations: 30.28 kB / 0.5352 GB, free: 5.234 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.087e-05/0.1192, allocations: 79.78 kB / 0.5353 GB, free: 5.156 MB / 394.7 MB Notification: Performance of SimCode: time 5.81e-07/0.1192, allocations: 0 / 0.5353 GB, free: 5.156 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01777/0.137, allocations: 5.193 MB / 0.5404 GB, free: 92 kB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.661/6.798, allocations: 10.36 kB / 0.5404 GB, free: 84 kB / 394.7 MB " [Timeout remaining time 653] (rm -f AES_AES.Coursework.Typical_control_structures.Cascade_basic.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Cascade_basic.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Cascade_basic.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Cascade_basic.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_control_structures.Cascade_basic_res.csv --start-time 0 --stop-time 200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 AES_AES_Coursework_Typical_control_structures_Cascade_basic.fmu > AES_AES.Coursework.Typical_control_structures.Cascade_basic.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 8.921359984669834] Failed to read output from testmodel.py, exit status != 0: 6.8772255959920585 6.886813255 6.7765842769999995 Calling exit ...