Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.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.001683/0.001683, allocations: 100.3 kB / 19.72 MB, free: 1.785 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.002042/0.002042, allocations: 206.1 kB / 23.01 MB, free: 4.625 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.524/1.524, allocations: 230.6 MB / 256.8 MB, free: 7.727 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.1079/0.1079, allocations: 24.04 MB / 337.2 MB, free: 11.3 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_with_delay,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_FF_compensation_with_delay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.FF_compensation_with_delay,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_FF_compensation_with_delay",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.002416/0.002416, allocations: 59.91 kB / 473.8 MB, free: 6.383 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3596/0.362, allocations: 59.58 MB / 0.5209 GB, free: 10.09 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_with_delay): time 0.003162/0.3652, allocations: 1.902 MB / 0.5228 GB, free: 8.805 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001359/0.3665, allocations: 0.711 MB / 0.5235 GB, free: 8.34 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001272/0.3667, allocations: 6.719 kB / 0.5235 GB, free: 8.336 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003761/0.3671, allocations: 84.75 kB / 0.5235 GB, free: 8.297 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002684/0.3673, allocations: 114.5 kB / 0.5237 GB, free: 8.238 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005587/0.3679, allocations: 211.6 kB / 0.5239 GB, free: 8.145 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007977/0.3687, allocations: 0.5831 MB / 0.5244 GB, free: 7.934 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001639/0.3688, allocations: 47.52 kB / 0.5245 GB, free: 7.91 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003186/0.3692, allocations: 219.7 kB / 0.5247 GB, free: 7.836 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003631/0.3695, allocations: 223.7 kB / 0.5249 GB, free: 7.758 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.883e-05/0.3696, allocations: 22.84 kB / 0.5249 GB, free: 7.758 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.575e-05/0.3696, allocations: 22.66 kB / 0.5249 GB, free: 7.758 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001557/0.3698, allocations: 109.9 kB / 0.525 GB, free: 7.703 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001238/0.3699, allocations: 97.34 kB / 0.5251 GB, free: 7.641 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004104/0.3703, allocations: 285.1 kB / 0.5254 GB, free: 7.523 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.3703, allocations: 0 / 0.5254 GB, free: 7.523 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3703, allocations: 0 / 0.5254 GB, free: 7.523 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.073e-05/0.3704, allocations: 1.156 kB / 0.5254 GB, free: 7.523 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: 35 * Number of variables: 35 Notification: Performance of Generate backend data structure: time 0.002142/0.3725, allocations: 0.7046 MB / 0.5261 GB, free: 7.105 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.99e-05/0.3725, allocations: 10.67 kB / 0.5261 GB, free: 7.105 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.774e-05/0.3726, allocations: 51.86 kB / 0.5262 GB, free: 7.055 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.161e-05/0.3727, allocations: 35.7 kB / 0.5262 GB, free: 7.035 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001111/0.3738, allocations: 390.9 kB / 0.5266 GB, free: 6.828 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.692e-05/0.3738, allocations: 13.97 kB / 0.5266 GB, free: 6.82 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.438e-05/0.3739, allocations: 17.89 kB / 0.5266 GB, free: 6.812 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003191/0.3742, allocations: 185.9 kB / 0.5268 GB, free: 6.727 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.3742, allocations: 0 / 0.5268 GB, free: 6.727 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.892e-05/0.3742, allocations: 6.281 kB / 0.5268 GB, free: 6.723 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.3742, allocations: 3.656 kB / 0.5268 GB, free: 6.723 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003309/0.3745, allocations: 191.8 kB / 0.527 GB, free: 6.668 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001019/0.3756, allocations: 0.5716 MB / 0.5275 GB, free: 6.309 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008321/0.3764, allocations: 331.7 kB / 0.5278 GB, free: 6.207 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001717/0.3766, allocations: 99.25 kB / 0.5279 GB, free: 6.168 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.565e-05/0.3766, allocations: 2.953 kB / 0.5279 GB, free: 6.168 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.776e-05/0.3766, allocations: 33 kB / 0.528 GB, free: 6.129 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.693e-06/0.3766, allocations: 4 kB / 0.528 GB, free: 6.125 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.001199/0.3778, allocations: 432.6 kB / 0.5284 GB, free: 5.969 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.227e-05/0.3779, allocations: 59.02 kB / 0.5284 GB, free: 5.902 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001016/0.3789, allocations: 449.7 kB / 0.5289 GB, free: 5.73 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.238e-05/0.3789, allocations: 35.66 kB / 0.5289 GB, free: 5.691 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.992e-05/0.379, allocations: 167.8 kB / 0.5291 GB, free: 5.547 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.476e-05/0.379, allocations: 83.58 kB / 0.5291 GB, free: 5.48 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.032e-05/0.3791, allocations: 45.05 kB / 0.5292 GB, free: 5.449 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.593e-05/0.3792, allocations: 341.6 kB / 0.5295 GB, free: 5.125 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000154/0.3793, allocations: 81.66 kB / 0.5296 GB, free: 5.098 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001672/0.3795, allocations: 110.4 kB / 0.5297 GB, free: 5.051 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001552/0.3811, allocations: 0.52 MB / 0.5302 GB, free: 4.895 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.3811, allocations: 1.219 kB / 0.5302 GB, free: 4.895 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006369/0.3817, allocations: 346.2 kB / 0.5305 GB, free: 4.746 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/0.3817, allocations: 5.438 kB / 0.5305 GB, free: 4.746 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.3817, allocations: 5.094 kB / 0.5305 GB, free: 4.742 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002202/0.3819, allocations: 52.48 kB / 0.5306 GB, free: 4.723 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001815/0.3821, allocations: 32.47 kB / 0.5306 GB, free: 4.723 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001265/0.3834, allocations: 1.494 MB / 0.5321 GB, free: 3.352 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004753/0.3839, allocations: 73.33 kB / 0.5322 GB, free: 3.336 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.341e-05/0.3839, allocations: 9.438 kB / 0.5322 GB, free: 3.332 MB / 382.1 MB Warning: Assuming fixed start value for the following 5 variables: C.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] K.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] M.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] H.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [1] 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: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002435/0.3841, allocations: 168.6 kB / 0.5323 GB, free: 3.188 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.929e-05/0.3842, allocations: 29.44 kB / 0.5323 GB, free: 3.172 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.857e-05/0.3843, allocations: 44.69 kB / 0.5324 GB, free: 3.141 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.3843, allocations: 10.84 kB / 0.5324 GB, free: 3.133 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/0.3843, allocations: 1.094 kB / 0.5324 GB, free: 3.133 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.3843, allocations: 6.5 kB / 0.5324 GB, free: 3.129 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003968/0.3847, allocations: 294.4 kB / 0.5327 GB, free: 2.91 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.3847, allocations: 0 / 0.5327 GB, free: 2.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001908/0.3849, allocations: 28.72 kB / 0.5327 GB, free: 2.906 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001474/0.3851, allocations: 53.28 kB / 0.5328 GB, free: 2.887 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.176e-05/0.3851, allocations: 6.25 kB / 0.5328 GB, free: 2.883 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009967/0.3861, allocations: 1.5 MB / 0.5342 GB, free: 1.504 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3861, allocations: 0 / 0.5342 GB, free: 1.504 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007011/0.3868, allocations: 0.5116 MB / 0.5347 GB, free: 1.227 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.766e-05/0.3868, allocations: 40.38 kB / 0.5348 GB, free: 1.203 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.39e-05/0.3869, allocations: 12.03 kB / 0.5348 GB, free: 1.195 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004382/0.3873, allocations: 59.23 kB / 0.5348 GB, free: 1.191 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.766e-05/0.3874, allocations: 21.62 kB / 0.5349 GB, free: 1.188 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.368e-05/0.3874, allocations: 3.406 kB / 0.5349 GB, free: 1.188 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008586/0.3883, allocations: 361.4 kB / 0.5352 GB, free: 1.051 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3883, allocations: 1.062 kB / 0.5352 GB, free: 1.051 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003358/0.3886, allocations: 59.64 kB / 0.5353 GB, free: 1.035 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (P.x_scaled[1],H.x_scaled[1],M.x_scaled[1],K.x_scaled[1],C.x_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009184/0.3895, allocations: 1.061 MB / 0.5363 GB, free: 228 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006328/0.3902, allocations: 348.5 kB / 0.5366 GB, free: 40 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.3902, allocations: 1.188 kB / 0.5366 GB, free: 40 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003694/0.3905, allocations: 233.9 kB / 0.5369 GB, free: 15.89 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004504/0.391, allocations: 58.64 kB / 0.5369 GB, free: 15.86 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006261/0.3973, allocations: 3.399 MB / 0.5402 GB, free: 14 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002374/0.3975, allocations: 192.6 kB / 0.5404 GB, free: 13.91 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001768/0.3977, allocations: 56.81 kB / 0.5405 GB, free: 13.9 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001645/0.3978, allocations: 94.5 kB / 0.5406 GB, free: 13.84 MB / 398.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3978, allocations: 0 / 0.5406 GB, free: 13.84 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03874/0.4366, allocations: 6.957 MB / 0.5474 GB, free: 10.74 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.83/12.26, allocations: 8.312 kB / 0.5474 GB, free: 10.73 MB / 398.1 MB " [Timeout remaining time 648] (rm -f AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.1 AES_AES_Coursework_Typical_control_structures_FF_compensation_with_delay.fmu > AES_AES.Coursework.Typical_control_structures.FF_compensation_with_delay.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.108657379169017] Failed to read output from testmodel.py, exit status != 0: 12.376188876107335 12.392289255 12.018401526 Calling exit ...