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.001608/0.001608, allocations: 108.3 kB / 19.73 MB, free: 1.898 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.00262/0.00262, allocations: 209.9 kB / 23.01 MB, free: 4.992 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.496/1.496, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.1072/0.1072, allocations: 24.04 MB / 337.2 MB, free: 11.32 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.003279/0.003279, allocations: 59.91 kB / 473.8 MB, free: 6.379 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.389/0.3923, allocations: 59.58 MB / 0.5209 GB, free: 10.15 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation): time 0.002818/0.3951, allocations: 1.855 MB / 0.5227 GB, free: 8.887 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001099/0.3962, allocations: 0.5959 MB / 0.5233 GB, free: 8.488 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001048/0.3963, allocations: 2.062 kB / 0.5233 GB, free: 8.488 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003209/0.3967, allocations: 58.92 kB / 0.5234 GB, free: 8.453 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000175/0.3968, allocations: 50.25 kB / 0.5234 GB, free: 8.426 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002856/0.3971, allocations: 122.8 kB / 0.5235 GB, free: 8.367 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004651/0.3976, allocations: 349.6 kB / 0.5239 GB, free: 8.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001244/0.3977, allocations: 41.34 kB / 0.5239 GB, free: 8.215 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001801/0.3979, allocations: 132.9 kB / 0.524 GB, free: 8.16 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002266/0.3981, allocations: 125.6 kB / 0.5241 GB, free: 8.113 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.784e-05/0.3982, allocations: 17.91 kB / 0.5242 GB, free: 8.113 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.057e-05/0.3982, allocations: 18.34 kB / 0.5242 GB, free: 8.113 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.467e-05/0.3983, allocations: 63.38 kB / 0.5242 GB, free: 8.078 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.375e-05/0.3984, allocations: 78.98 kB / 0.5243 GB, free: 8.027 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002296/0.3986, allocations: 199.3 kB / 0.5245 GB, free: 7.945 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3986, allocations: 5.5 kB / 0.5245 GB, free: 7.941 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3986, allocations: 0 / 0.5245 GB, free: 7.941 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.3986, allocations: 0 / 0.5245 GB, free: 7.941 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.001154/0.3998, allocations: 0.5189 MB / 0.525 GB, free: 7.57 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.3998, allocations: 10.02 kB / 0.525 GB, free: 7.57 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.364e-05/0.3998, allocations: 47.62 kB / 0.5251 GB, free: 7.523 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.559e-05/0.3999, allocations: 28.66 kB / 0.5251 GB, free: 7.508 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005043/0.4004, allocations: 266.2 kB / 0.5253 GB, free: 7.316 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.197e-05/0.4004, allocations: 18.62 kB / 0.5254 GB, free: 7.305 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.494e-05/0.4005, allocations: 17.59 kB / 0.5254 GB, free: 7.301 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003126/0.4008, allocations: 198.3 kB / 0.5256 GB, free: 7.191 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.4008, allocations: 0 / 0.5256 GB, free: 7.191 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.667e-05/0.4008, allocations: 6.016 kB / 0.5256 GB, free: 7.188 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.761e-06/0.4008, allocations: 4.375 kB / 0.5256 GB, free: 7.188 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003084/0.4011, allocations: 153.8 kB / 0.5257 GB, free: 7.141 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008751/0.402, allocations: 0.6614 MB / 0.5264 GB, free: 6.629 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004766/0.4025, allocations: 219 kB / 0.5266 GB, free: 6.543 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001438/0.4026, allocations: 78.03 kB / 0.5267 GB, free: 6.512 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.902e-05/0.4026, allocations: 6.156 kB / 0.5267 GB, free: 6.508 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.262e-05/0.4026, allocations: 32.34 kB / 0.5267 GB, free: 6.469 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.383e-06/0.4026, allocations: 9.188 kB / 0.5267 GB, free: 6.461 MB / 382.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005274/0.4032, allocations: 264.5 kB / 0.527 GB, free: 6.348 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.567e-05/0.4032, allocations: 55.66 kB / 0.527 GB, free: 6.285 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004472/0.4036, allocations: 294.5 kB / 0.5273 GB, free: 6.137 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.472e-05/0.4037, allocations: 30.77 kB / 0.5273 GB, free: 6.102 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.878e-05/0.4037, allocations: 142.5 kB / 0.5275 GB, free: 5.973 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.49e-05/0.4038, allocations: 86.78 kB / 0.5275 GB, free: 5.902 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.806e-05/0.4038, allocations: 56.12 kB / 0.5276 GB, free: 5.867 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.085e-05/0.4039, allocations: 331.6 kB / 0.5279 GB, free: 5.547 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001457/0.404, allocations: 73.39 kB / 0.528 GB, free: 5.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001588/0.4042, allocations: 130 kB / 0.5281 GB, free: 5.434 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001238/0.4054, allocations: 457 kB / 0.5285 GB, free: 5.254 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.4054, allocations: 3.938 kB / 0.5285 GB, free: 5.25 MB / 382.1 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004073/0.4058, allocations: 290 kB / 0.5288 GB, free: 5.117 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/0.4058, allocations: 5.125 kB / 0.5288 GB, free: 5.117 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-06/0.4059, allocations: 7.953 kB / 0.5288 GB, free: 5.113 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.4059, allocations: 3.062 kB / 0.5288 GB, free: 5.113 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000271/0.4061, allocations: 59.39 kB / 0.5289 GB, free: 5.109 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.107e-06/0.4061, allocations: 3.922 kB / 0.5289 GB, free: 5.109 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002442/0.4064, allocations: 46.38 kB / 0.5289 GB, free: 5.094 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.809e-05/0.4064, allocations: 12.66 kB / 0.5289 GB, free: 5.09 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.0001495/0.4066, allocations: 144.1 kB / 0.5291 GB, free: 4.957 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.791e-05/0.4066, allocations: 30.58 kB / 0.5291 GB, free: 4.938 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004202/0.407, allocations: 231.5 kB / 0.5293 GB, free: 4.828 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.407, allocations: 3.5 kB / 0.5293 GB, free: 4.828 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.407, allocations: 0.75 kB / 0.5293 GB, free: 4.828 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.407, allocations: 0.7031 kB / 0.5293 GB, free: 4.828 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002503/0.4073, allocations: 240.8 kB / 0.5296 GB, free: 4.629 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.4073, allocations: 0 / 0.5296 GB, free: 4.629 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002612/0.4076, allocations: 53.38 kB / 0.5296 GB, free: 4.617 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.4076, allocations: 1.125 kB / 0.5296 GB, free: 4.617 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.037e-05/0.4076, allocations: 6.953 kB / 0.5296 GB, free: 4.613 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.4076, allocations: 1.094 kB / 0.5296 GB, free: 4.613 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.4076, allocations: 6.141 kB / 0.5296 GB, free: 4.609 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005089/0.4081, allocations: 406.9 kB / 0.53 GB, free: 4.375 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.572e-05/0.4081, allocations: 29.86 kB / 0.5301 GB, free: 4.355 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.43e-05/0.4082, allocations: 6.938 kB / 0.5301 GB, free: 4.352 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002626/0.4084, allocations: 30.33 kB / 0.5301 GB, free: 4.348 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.058e-05/0.4085, allocations: 18 kB / 0.5301 GB, free: 4.344 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.186e-05/0.4085, allocations: 4.438 kB / 0.5301 GB, free: 4.344 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003761/0.4089, allocations: 219.5 kB / 0.5303 GB, free: 4.238 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4089, allocations: 5.438 kB / 0.5303 GB, free: 4.234 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002781/0.4091, allocations: 38.89 kB / 0.5304 GB, free: 4.227 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.0006411/0.4098, allocations: 0.9477 MB / 0.5313 GB, free: 3.453 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000356/0.4101, allocations: 186.3 kB / 0.5315 GB, free: 3.398 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.302e-06/0.4101, allocations: 0 / 0.5315 GB, free: 3.398 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001522/0.4103, allocations: 89.45 kB / 0.5315 GB, free: 3.375 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003458/0.4106, allocations: 47.52 kB / 0.5316 GB, free: 3.348 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003679/0.4143, allocations: 2.743 MB / 0.5343 GB, free: 1.559 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001402/0.4145, allocations: 152.2 kB / 0.5344 GB, free: 1.477 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001545/0.4146, allocations: 36.02 kB / 0.5345 GB, free: 1.473 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001253/0.4147, allocations: 71.48 kB / 0.5345 GB, free: 1.422 MB / 382.1 MB Notification: Performance of SimCode: time 4.11e-07/0.4147, allocations: 1.188 kB / 0.5345 GB, free: 1.422 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03339/0.4481, allocations: 5.32 MB / 0.5397 GB, free: 112 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.38/11.83, allocations: 6.484 kB / 0.5397 GB, free: 112 kB / 382.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.67702570417896] Failed to read output from testmodel.py, exit status != 0: 11.950145374052227 11.967788104 11.565617388 Calling exit ...