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.001515/0.001515, allocations: 107.4 kB / 16.45 MB, free: 6.5 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.001575/0.001575, allocations: 212.9 kB / 19.43 MB, free: 3.656 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.45/1.45, allocations: 230.6 MB / 252.8 MB, free: 8.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.1071/0.1071, allocations: 24.1 MB / 333 MB, free: 12.64 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.003057/0.003057, allocations: 63.89 kB / 467.9 MB, free: 9.094 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3669/0.3699, allocations: 59.57 MB / 0.5151 GB, free: 9.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_with_delay): time 0.003082/0.373, allocations: 1.99 MB / 0.517 GB, free: 8.332 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001341/0.3744, allocations: 0.7502 MB / 0.5177 GB, free: 7.824 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001244/0.3745, allocations: 7.719 kB / 0.5177 GB, free: 7.82 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000377/0.3749, allocations: 86.95 kB / 0.5178 GB, free: 7.781 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002587/0.3751, allocations: 109.3 kB / 0.5179 GB, free: 7.727 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004798/0.3756, allocations: 190.1 kB / 0.5181 GB, free: 7.637 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005799/0.3762, allocations: 491.1 kB / 0.5186 GB, free: 7.465 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001445/0.3763, allocations: 57.3 kB / 0.5186 GB, free: 7.434 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000266/0.3766, allocations: 200.7 kB / 0.5188 GB, free: 7.363 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003712/0.377, allocations: 229.8 kB / 0.5191 GB, free: 7.281 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.94e-05/0.377, allocations: 23.06 kB / 0.5191 GB, free: 7.281 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.564e-05/0.3771, allocations: 22.88 kB / 0.5191 GB, free: 7.281 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001431/0.3772, allocations: 105.9 kB / 0.5192 GB, free: 7.23 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001217/0.3773, allocations: 122.1 kB / 0.5193 GB, free: 7.145 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003831/0.3777, allocations: 280.5 kB / 0.5196 GB, free: 7.027 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.3777, allocations: 1.312 kB / 0.5196 GB, free: 7.027 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.3777, allocations: 3.938 kB / 0.5196 GB, free: 7.023 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.797e-06/0.3777, allocations: 0.5625 kB / 0.5196 GB, free: 7.023 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.002085/0.3798, allocations: 0.7844 MB / 0.5204 GB, free: 6.508 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.757e-05/0.3799, allocations: 9.219 kB / 0.5204 GB, free: 6.508 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.203e-05/0.3799, allocations: 50.95 kB / 0.5204 GB, free: 6.457 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.228e-05/0.38, allocations: 37.11 kB / 0.5204 GB, free: 6.438 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001042/0.381, allocations: 450.9 kB / 0.5209 GB, free: 6.164 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.502e-05/0.381, allocations: 9.469 kB / 0.5209 GB, free: 6.16 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.162e-05/0.3811, allocations: 19.78 kB / 0.5209 GB, free: 6.152 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003113/0.3814, allocations: 185.3 kB / 0.5211 GB, free: 6.066 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.3814, allocations: 1.453 kB / 0.5211 GB, free: 6.066 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.986e-05/0.3814, allocations: 5.281 kB / 0.5211 GB, free: 6.062 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.203e-06/0.3814, allocations: 8.062 kB / 0.5211 GB, free: 6.059 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003326/0.3818, allocations: 187.1 kB / 0.5213 GB, free: 6.008 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000964/0.3827, allocations: 0.643 MB / 0.5219 GB, free: 5.609 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008684/0.3836, allocations: 341 kB / 0.5222 GB, free: 5.5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001723/0.3838, allocations: 99.03 kB / 0.5223 GB, free: 5.461 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.332e-05/0.3838, allocations: 3.438 kB / 0.5223 GB, free: 5.461 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.793e-05/0.3838, allocations: 32.53 kB / 0.5224 GB, free: 5.422 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.192e-06/0.3838, allocations: 0 / 0.5224 GB, free: 5.422 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.001168/0.385, allocations: 0.5023 MB / 0.5228 GB, free: 5.168 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.188e-05/0.385, allocations: 53.97 kB / 0.5229 GB, free: 5.105 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001035/0.3861, allocations: 453.6 kB / 0.5233 GB, free: 4.93 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.027e-05/0.3861, allocations: 34.77 kB / 0.5234 GB, free: 4.891 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.926e-05/0.3862, allocations: 168.9 kB / 0.5235 GB, free: 4.742 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.266e-05/0.3862, allocations: 83.06 kB / 0.5236 GB, free: 4.676 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.216e-05/0.3863, allocations: 40.69 kB / 0.5236 GB, free: 4.648 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.841e-05/0.3864, allocations: 341.5 kB / 0.524 GB, free: 4.324 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001508/0.3865, allocations: 81.84 kB / 0.524 GB, free: 4.297 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001614/0.3867, allocations: 115.7 kB / 0.5242 GB, free: 4.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001503/0.3882, allocations: 0.5145 MB / 0.5247 GB, free: 4.098 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.3882, allocations: 0 / 0.5247 GB, free: 4.098 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006311/0.3888, allocations: 356.2 kB / 0.525 GB, free: 3.941 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.474e-05/0.3888, allocations: 5.812 kB / 0.525 GB, free: 3.941 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.3888, allocations: 1.266 kB / 0.525 GB, free: 3.941 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002076/0.389, allocations: 47.72 kB / 0.525 GB, free: 3.926 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001729/0.3892, allocations: 31.89 kB / 0.5251 GB, free: 3.926 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001198/0.3904, allocations: 1.604 MB / 0.5266 GB, free: 2.426 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004378/0.3909, allocations: 78.19 kB / 0.5267 GB, free: 2.406 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.979e-05/0.3909, allocations: 8.438 kB / 0.5267 GB, free: 2.402 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.0002335/0.3911, allocations: 170 kB / 0.5269 GB, free: 2.258 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.344e-05/0.3912, allocations: 28.81 kB / 0.5269 GB, free: 2.242 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.536e-05/0.3913, allocations: 40.31 kB / 0.527 GB, free: 2.211 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.3913, allocations: 2.156 kB / 0.527 GB, free: 2.211 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/0.3913, allocations: 1.953 kB / 0.527 GB, free: 2.211 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.092e-06/0.3913, allocations: 8.531 kB / 0.527 GB, free: 2.203 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003806/0.3917, allocations: 348.7 kB / 0.5273 GB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.3917, allocations: 1.281 kB / 0.5273 GB, free: 1.953 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001953/0.3919, allocations: 36.91 kB / 0.5273 GB, free: 1.941 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000159/0.392, allocations: 47.55 kB / 0.5274 GB, free: 1.926 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.774e-05/0.392, allocations: 7.703 kB / 0.5274 GB, free: 1.922 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001044/0.3931, allocations: 1.624 MB / 0.529 GB, free: 408 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.3931, allocations: 1.031 kB / 0.529 GB, free: 408 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007523/0.3938, allocations: 0.5238 MB / 0.5295 GB, free: 112 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.777e-05/0.3939, allocations: 113.1 kB / 0.5296 GB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.384e-05/0.394, allocations: 9.219 kB / 0.5296 GB, free: 15.99 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004537/0.3944, allocations: 61.55 kB / 0.5297 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.448e-05/0.3945, allocations: 20.19 kB / 0.5297 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.61e-05/0.3945, allocations: 8.453 kB / 0.5297 GB, free: 15.97 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0009861/0.3955, allocations: 361.9 kB / 0.53 GB, free: 15.84 MB / 398.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3955, allocations: 0 / 0.53 GB, free: 15.84 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003888/0.3959, allocations: 51.95 kB / 0.5301 GB, free: 15.84 MB / 398.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.001433/0.3974, allocations: 1.062 MB / 0.5311 GB, free: 15.02 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008338/0.3982, allocations: 347.3 kB / 0.5315 GB, free: 14.84 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3982, allocations: 0 / 0.5315 GB, free: 14.84 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003906/0.3986, allocations: 232.7 kB / 0.5317 GB, free: 14.69 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004708/0.399, allocations: 53.03 kB / 0.5317 GB, free: 14.67 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006586/0.4056, allocations: 3.408 MB / 0.5351 GB, free: 12.79 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004756/0.4061, allocations: 0.7983 MB / 0.5358 GB, free: 12.08 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001772/0.4063, allocations: 57.17 kB / 0.5359 GB, free: 12.08 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000163/0.4065, allocations: 94.06 kB / 0.536 GB, free: 12.02 MB / 398.1 MB Notification: Performance of SimCode: time 9.72e-07/0.4065, allocations: 0 / 0.536 GB, free: 12.02 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03642/0.4429, allocations: 6.291 MB / 0.5421 GB, free: 9.82 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.23/10.67, allocations: 8.828 kB / 0.5421 GB, free: 9.812 MB / 398.1 MB " [Timeout remaining time 649] (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: 13.427117733983323] Failed to read output from testmodel.py, exit status != 0: 10.757779864827171 10.773145584 10.392259628 Calling exit ...