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.001412/0.001412, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001491/0.001491, allocations: 219.5 kB / 22.26 MB, free: 5.125 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.491/1.491, allocations: 230.6 MB / 256 MB, free: 7.977 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.11/0.11, allocations: 24.12 MB / 336.6 MB, free: 11.43 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.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.002661/0.002661, allocations: 71.89 kB / 473.3 MB, free: 6.391 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.392/0.3946, allocations: 59.6 MB / 0.5204 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation): time 0.003539/0.3982, allocations: 1.944 MB / 0.5223 GB, free: 8.84 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001418/0.3996, allocations: 0.6266 MB / 0.5229 GB, free: 8.406 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001362/0.3997, allocations: 14.31 kB / 0.5229 GB, free: 8.395 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003993/0.4001, allocations: 53.94 kB / 0.523 GB, free: 8.363 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002212/0.4003, allocations: 54.38 kB / 0.523 GB, free: 8.332 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.0003812/0.4007, allocations: 123.1 kB / 0.5232 GB, free: 8.273 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000603/0.4013, allocations: 352.4 kB / 0.5235 GB, free: 8.133 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001526/0.4015, allocations: 46.62 kB / 0.5235 GB, free: 8.113 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002189/0.4017, allocations: 128.6 kB / 0.5237 GB, free: 8.062 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002752/0.402, allocations: 141.5 kB / 0.5238 GB, free: 8 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.144e-05/0.402, allocations: 17.41 kB / 0.5238 GB, free: 8 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.559e-05/0.4021, allocations: 18.81 kB / 0.5238 GB, free: 8 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001121/0.4022, allocations: 60.44 kB / 0.5239 GB, free: 7.969 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001053/0.4023, allocations: 94.09 kB / 0.524 GB, free: 7.902 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002798/0.4026, allocations: 198.1 kB / 0.5242 GB, free: 7.82 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.4026, allocations: 5.062 kB / 0.5242 GB, free: 7.816 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.4026, allocations: 3.938 kB / 0.5242 GB, free: 7.812 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.374e-06/0.4026, allocations: 0 / 0.5242 GB, free: 7.812 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.001244/0.4038, allocations: 0.5181 MB / 0.5247 GB, free: 7.441 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/0.4039, allocations: 10.02 kB / 0.5247 GB, free: 7.441 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.286e-05/0.4039, allocations: 52.16 kB / 0.5247 GB, free: 7.391 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.473e-05/0.404, allocations: 24.17 kB / 0.5248 GB, free: 7.379 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006007/0.4046, allocations: 261.8 kB / 0.525 GB, free: 7.191 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.279e-05/0.4046, allocations: 14.91 kB / 0.525 GB, free: 7.184 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.63e-05/0.4046, allocations: 24.42 kB / 0.525 GB, free: 7.172 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003744/0.405, allocations: 189.7 kB / 0.5252 GB, free: 7.07 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.374e-05/0.405, allocations: 1.953 kB / 0.5252 GB, free: 7.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.182e-05/0.4051, allocations: 9.219 kB / 0.5252 GB, free: 7.062 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.408e-06/0.4051, allocations: 7.969 kB / 0.5252 GB, free: 7.059 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003891/0.4055, allocations: 155.5 kB / 0.5254 GB, free: 7.012 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001274/0.4067, allocations: 0.7006 MB / 0.5261 GB, free: 6.488 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004986/0.4072, allocations: 216.3 kB / 0.5263 GB, free: 6.402 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001553/0.4074, allocations: 86.59 kB / 0.5264 GB, free: 6.363 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.868e-05/0.4074, allocations: 5.906 kB / 0.5264 GB, free: 6.359 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.466e-05/0.4074, allocations: 31.69 kB / 0.5264 GB, free: 6.32 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.272e-06/0.4074, allocations: 0 / 0.5264 GB, free: 6.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005467/0.408, allocations: 270.2 kB / 0.5267 GB, free: 6.203 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.08e-05/0.408, allocations: 54.8 kB / 0.5267 GB, free: 6.141 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005219/0.4085, allocations: 294.4 kB / 0.527 GB, free: 5.992 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.706e-05/0.4086, allocations: 29.7 kB / 0.527 GB, free: 5.957 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.371e-05/0.4086, allocations: 143.5 kB / 0.5272 GB, free: 5.828 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.837e-05/0.4087, allocations: 81.55 kB / 0.5272 GB, free: 5.762 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.637e-05/0.4088, allocations: 55.45 kB / 0.5273 GB, free: 5.727 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.558e-05/0.4088, allocations: 336.2 kB / 0.5276 GB, free: 5.402 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00015/0.409, allocations: 71.81 kB / 0.5277 GB, free: 5.379 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000166/0.4091, allocations: 121.3 kB / 0.5278 GB, free: 5.297 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001376/0.4105, allocations: 463.3 kB / 0.5282 GB, free: 5.113 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.4105, allocations: 0.75 kB / 0.5282 GB, free: 5.113 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004815/0.411, allocations: 284.3 kB / 0.5285 GB, free: 4.984 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/0.411, allocations: 7.016 kB / 0.5285 GB, free: 4.984 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.703e-06/0.411, allocations: 1.375 kB / 0.5285 GB, free: 4.984 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.737e-05/0.4111, allocations: 7.391 kB / 0.5285 GB, free: 4.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002917/0.4113, allocations: 65.86 kB / 0.5286 GB, free: 4.973 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.867e-06/0.4114, allocations: 3.562 kB / 0.5286 GB, free: 4.973 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002634/0.4116, allocations: 49.73 kB / 0.5286 GB, free: 4.953 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.933e-05/0.4116, allocations: 12.19 kB / 0.5286 GB, free: 4.949 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.0001677/0.4118, allocations: 151.8 kB / 0.5288 GB, free: 4.809 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.81e-05/0.4119, allocations: 26.45 kB / 0.5288 GB, free: 4.793 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004481/0.4123, allocations: 239.2 kB / 0.529 GB, free: 4.676 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.421e-06/0.4123, allocations: 2.953 kB / 0.529 GB, free: 4.676 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.676e-06/0.4123, allocations: 0 / 0.529 GB, free: 4.676 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.4123, allocations: 1.406 kB / 0.5291 GB, free: 4.676 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003144/0.4126, allocations: 270.7 kB / 0.5293 GB, free: 4.465 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.4126, allocations: 1.766 kB / 0.5293 GB, free: 4.465 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002829/0.4129, allocations: 52.67 kB / 0.5294 GB, free: 4.453 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.4129, allocations: 5 kB / 0.5294 GB, free: 4.449 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.839e-05/0.413, allocations: 2.844 kB / 0.5294 GB, free: 4.449 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.413, allocations: 1.641 kB / 0.5294 GB, free: 4.449 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.413, allocations: 0 / 0.5294 GB, free: 4.449 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005342/0.4135, allocations: 407.6 kB / 0.5298 GB, free: 4.215 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.532e-05/0.4135, allocations: 23.02 kB / 0.5298 GB, free: 4.203 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.303e-05/0.4136, allocations: 5.906 kB / 0.5298 GB, free: 4.199 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002692/0.4138, allocations: 33.78 kB / 0.5298 GB, free: 4.191 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.217e-05/0.4139, allocations: 12.92 kB / 0.5298 GB, free: 4.191 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.441e-05/0.4139, allocations: 9.453 kB / 0.5298 GB, free: 4.188 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004126/0.4143, allocations: 216.5 kB / 0.53 GB, free: 4.086 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4143, allocations: 4 kB / 0.53 GB, free: 4.082 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002988/0.4146, allocations: 43.16 kB / 0.5301 GB, free: 4.07 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.0007243/0.4154, allocations: 0.9399 MB / 0.531 GB, free: 3.301 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0004272/0.4158, allocations: 189 kB / 0.5312 GB, free: 3.246 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.4158, allocations: 0 / 0.5312 GB, free: 3.246 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001684/0.4159, allocations: 94.75 kB / 0.5313 GB, free: 3.215 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003733/0.4163, allocations: 33.47 kB / 0.5313 GB, free: 3.203 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004215/0.4205, allocations: 2.754 MB / 0.534 GB, free: 1.398 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002433/0.4208, allocations: 0.7634 MB / 0.5347 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001415/0.4209, allocations: 36.89 kB / 0.5348 GB, free: 0.6875 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001259/0.421, allocations: 75.56 kB / 0.5349 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of SimCode: time 6.11e-07/0.421, allocations: 1.25 kB / 0.5349 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03514/0.4562, allocations: 4.982 MB / 0.5397 GB, free: 15.68 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.72, allocations: 8.188 kB / 0.5397 GB, free: 15.68 MB / 398.1 MB " [Timeout remaining time 648] (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: 14.602532196004177] Failed to read output from testmodel.py, exit status != 0: 11.830235345005349 11.844731594 11.438891075999999 Calling exit ...