Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.FF_compensation.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.001341/0.001341, allocations: 109.3 kB / 17.14 MB, free: 5.93 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.002207/0.002207, allocations: 205.1 kB / 20.11 MB, free: 2.977 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.542/1.542, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.1089/0.1089, allocations: 24.03 MB / 333.6 MB, free: 1.562 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.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.FF_compensation,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_FF_compensation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.FF_compensation,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_FF_compensation",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.002129/0.002129, allocations: 64.19 kB / 468.4 MB, free: 31.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.105/0.1071, allocations: 59.54 MB / 0.5156 GB, free: 12.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation): time 0.003202/0.1103, allocations: 1.923 MB / 0.5174 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001164/0.1115, allocations: 0.6351 MB / 0.5181 GB, free: 9.734 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.349e-05/0.1116, allocations: 3.938 kB / 0.5181 GB, free: 9.73 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003055/0.1119, allocations: 63.44 kB / 0.5181 GB, free: 9.668 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001698/0.1121, allocations: 43.72 kB / 0.5182 GB, free: 9.625 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. Notification: Performance of NFTyping.typeClassSections: time 0.0002604/0.1123, allocations: 119.8 kB / 0.5183 GB, free: 9.508 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003977/0.1127, allocations: 304.1 kB / 0.5186 GB, free: 9.211 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001518/0.1129, allocations: 48.3 kB / 0.5186 GB, free: 9.168 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001849/0.1131, allocations: 119.6 kB / 0.5187 GB, free: 9.051 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002415/0.1133, allocations: 135.4 kB / 0.5189 GB, free: 8.918 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.31e-05/0.1133, allocations: 20 kB / 0.5189 GB, free: 8.898 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.389e-05/0.1134, allocations: 16 kB / 0.5189 GB, free: 8.883 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001231/0.1135, allocations: 67.75 kB / 0.519 GB, free: 8.816 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001018/0.1136, allocations: 87.41 kB / 0.519 GB, free: 8.73 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002819/0.1139, allocations: 207 kB / 0.5192 GB, free: 8.527 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.1139, allocations: 4 kB / 0.5192 GB, free: 8.523 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1139, allocations: 0 / 0.5192 GB, free: 8.523 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.991e-06/0.1139, allocations: 3.938 kB / 0.5192 GB, free: 8.52 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: 37 * Number of variables: 37 Notification: Performance of Generate backend data structure: time 0.00136/0.1152, allocations: 0.5881 MB / 0.5198 GB, free: 7.883 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.1153, allocations: 12.62 kB / 0.5198 GB, free: 7.871 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.944e-05/0.1154, allocations: 50.73 kB / 0.5199 GB, free: 7.812 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.417e-05/0.1154, allocations: 24.8 kB / 0.5199 GB, free: 7.789 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006325/0.116, allocations: 315.4 kB / 0.5202 GB, free: 7.441 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.433e-05/0.1161, allocations: 16.12 kB / 0.5202 GB, free: 7.426 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.094e-05/0.1161, allocations: 16.38 kB / 0.5202 GB, free: 7.41 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000378/0.1165, allocations: 200.8 kB / 0.5204 GB, free: 7.199 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.1165, allocations: 0 / 0.5204 GB, free: 7.199 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.082e-05/0.1165, allocations: 8 kB / 0.5204 GB, free: 7.191 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.1165, allocations: 4 kB / 0.5204 GB, free: 7.188 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003594/0.1169, allocations: 163.7 kB / 0.5206 GB, free: 7.027 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001172/0.1181, allocations: 0.7309 MB / 0.5213 GB, free: 6.238 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005168/0.1186, allocations: 214.7 kB / 0.5215 GB, free: 6.02 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001897/0.1188, allocations: 76.81 kB / 0.5216 GB, free: 5.941 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.359e-05/0.1188, allocations: 11.94 kB / 0.5216 GB, free: 5.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.908e-05/0.1188, allocations: 38.5 kB / 0.5216 GB, free: 5.883 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 4.959e-06/0.1188, allocations: 3.984 kB / 0.5216 GB, free: 5.879 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0006119/0.1194, allocations: 263 kB / 0.5219 GB, free: 5.617 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.204e-05/0.1195, allocations: 55.41 kB / 0.5219 GB, free: 5.551 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005618/0.1201, allocations: 296.8 kB / 0.5222 GB, free: 5.242 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.41e-05/0.1201, allocations: 29.7 kB / 0.5223 GB, free: 5.207 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001191/0.1202, allocations: 144.5 kB / 0.5224 GB, free: 5.062 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.698e-05/0.1203, allocations: 71.39 kB / 0.5225 GB, free: 4.992 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.188e-05/0.1204, allocations: 57.66 kB / 0.5225 GB, free: 4.93 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.1205, allocations: 330.8 kB / 0.5228 GB, free: 4.598 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000169/0.1207, allocations: 80.17 kB / 0.5229 GB, free: 4.516 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002053/0.1209, allocations: 138.4 kB / 0.523 GB, free: 4.359 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001485/0.1224, allocations: 455.9 kB / 0.5235 GB, free: 3.891 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.1224, allocations: 0 / 0.5235 GB, free: 3.891 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005119/0.1229, allocations: 283.4 kB / 0.5237 GB, free: 3.609 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.1229, allocations: 8 kB / 0.5238 GB, free: 3.602 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.1229, allocations: 0 / 0.5238 GB, free: 3.602 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.1229, allocations: 4 kB / 0.5238 GB, free: 3.598 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002969/0.1232, allocations: 63.91 kB / 0.5238 GB, free: 3.535 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.1232, allocations: 8 kB / 0.5238 GB, free: 3.527 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002734/0.1235, allocations: 47.8 kB / 0.5239 GB, free: 3.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.41e-05/0.1235, allocations: 8 kB / 0.5239 GB, free: 3.473 MB / 382.1 MB Warning: Assuming fixed start value for the following 3 variables: M.y:VARIABLE(flow=false start = M.y_start fixed = true ) \"Connector of Real output signal\" type: Real PI.xfb:VARIABLE(fixed = true ) type: Real P.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 (PI.LOsat,PI.HIsat,PI.iNoDec,PI.iNoInc,PI.iTS) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * 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.0002078/0.1238, allocations: 154.6 kB / 0.524 GB, free: 3.312 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.23e-05/0.1238, allocations: 23.8 kB / 0.524 GB, free: 3.289 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004868/0.1243, allocations: 237.7 kB / 0.5243 GB, free: 3.051 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.1243, allocations: 3.938 kB / 0.5243 GB, free: 3.047 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.1243, allocations: 4 kB / 0.5243 GB, free: 3.043 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.1243, allocations: 4 kB / 0.5243 GB, free: 3.039 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003653/0.1247, allocations: 301.4 kB / 0.5246 GB, free: 2.695 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.1247, allocations: 0 / 0.5246 GB, free: 2.695 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002806/0.125, allocations: 39.92 kB / 0.5246 GB, free: 2.656 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.125, allocations: 4 kB / 0.5246 GB, free: 2.652 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.701e-05/0.125, allocations: 7.984 kB / 0.5246 GB, free: 2.645 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.27e-06/0.125, allocations: 4 kB / 0.5246 GB, free: 2.641 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.125, allocations: 0 / 0.5246 GB, free: 2.641 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006301/0.1256, allocations: 407.1 kB / 0.525 GB, free: 2.227 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.044e-05/0.1257, allocations: 101 kB / 0.5251 GB, free: 2.109 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.312e-05/0.1257, allocations: 4 kB / 0.5251 GB, free: 2.105 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002899/0.126, allocations: 31.95 kB / 0.5251 GB, free: 2.074 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.132e-05/0.1261, allocations: 11.98 kB / 0.5252 GB, free: 2.062 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.633e-05/0.1261, allocations: 7.984 kB / 0.5252 GB, free: 2.055 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004517/0.1266, allocations: 224.4 kB / 0.5254 GB, free: 1.836 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1266, allocations: 0 / 0.5254 GB, free: 1.836 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002906/0.1268, allocations: 39.94 kB / 0.5254 GB, free: 1.797 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (M.y,C.x_scaled[1],P.x_scaled[1],PI.xfb,PI.xBias,PI.u,PI.csfil) * Number of discrete variables: 2 (PI.HIsat,PI.LOsat) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 21 * 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.0009537/0.1278, allocations: 0.9399 MB / 0.5263 GB, free: 0.832 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004223/0.1282, allocations: 189.6 kB / 0.5265 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.1282, allocations: 0 / 0.5265 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001798/0.1284, allocations: 91.83 kB / 0.5266 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003742/0.1288, allocations: 38.81 kB / 0.5266 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004504/0.1333, allocations: 2.743 MB / 0.5293 GB, free: 13.68 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003984/0.1337, allocations: 0.7558 MB / 0.5301 GB, free: 12.89 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000131/0.1338, allocations: 45.92 kB / 0.5301 GB, free: 12.85 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001406/0.1339, allocations: 71.42 kB / 0.5302 GB, free: 12.78 MB / 398.1 MB Notification: Performance of SimCode: time 7.41e-07/0.1339, allocations: 0 / 0.5302 GB, free: 12.78 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02764/0.1616, allocations: 4.733 MB / 0.5348 GB, free: 8.133 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.203/8.365, allocations: 8.047 kB / 0.5348 GB, free: 8.129 MB / 398.1 MB " [Timeout remaining time 652] (rm -f AES_AES.Coursework.Typical_control_structures.FF_compensation.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.FF_compensation.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.FF_compensation.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.FF_compensation.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_control_structures.FF_compensation_res.csv --start-time 0 --stop-time 100 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.2 AES_AES_Coursework_Typical_control_structures_FF_compensation.fmu > AES_AES.Coursework.Typical_control_structures.FF_compensation.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.227047082968056] Failed to read output from testmodel.py, exit status != 0: 8.434608364012092 8.45030336 8.333335035 Calling exit ...