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.001294/0.001294, allocations: 110.4 kB / 18.94 MB, free: 2.793 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.001467/0.001467, allocations: 224.4 kB / 22.26 MB, free: 5.215 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.574/1.574, allocations: 230.6 MB / 256 MB, free: 7.996 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.1135/0.1135, allocations: 24.12 MB / 336.6 MB, free: 11.42 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.00199/0.00199, allocations: 67.91 kB / 473.3 MB, free: 6.375 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3682/0.3702, allocations: 59.6 MB / 0.5204 GB, free: 10.07 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.FF_compensation_with_delay): time 0.003145/0.3733, allocations: 2.002 MB / 0.5224 GB, free: 8.68 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001456/0.3748, allocations: 0.7582 MB / 0.5231 GB, free: 8.164 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001297/0.3749, allocations: 2.75 kB / 0.5231 GB, free: 8.164 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003782/0.3753, allocations: 89.08 kB / 0.5232 GB, free: 8.121 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002595/0.3755, allocations: 105.1 kB / 0.5233 GB, free: 8.07 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005561/0.3761, allocations: 223.5 kB / 0.5235 GB, free: 7.965 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007848/0.3769, allocations: 0.6009 MB / 0.5241 GB, free: 7.738 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001393/0.377, allocations: 48.05 kB / 0.5241 GB, free: 7.715 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002893/0.3773, allocations: 219.5 kB / 0.5244 GB, free: 7.637 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003321/0.3776, allocations: 234.3 kB / 0.5246 GB, free: 7.551 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.538e-05/0.3777, allocations: 23 kB / 0.5246 GB, free: 7.551 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.728e-05/0.3778, allocations: 24.19 kB / 0.5246 GB, free: 7.551 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001198/0.3779, allocations: 104.2 kB / 0.5247 GB, free: 7.5 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000108/0.378, allocations: 122 kB / 0.5248 GB, free: 7.414 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003716/0.3784, allocations: 284.8 kB / 0.5251 GB, free: 7.293 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.3784, allocations: 1.125 kB / 0.5251 GB, free: 7.293 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.3784, allocations: 0 / 0.5251 GB, free: 7.293 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.212e-05/0.3784, allocations: 0 / 0.5251 GB, free: 7.293 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.001909/0.3803, allocations: 0.7133 MB / 0.5258 GB, free: 6.867 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.3803, allocations: 10.5 kB / 0.5258 GB, free: 6.867 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.204e-05/0.3804, allocations: 46.69 kB / 0.5259 GB, free: 6.82 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.685e-05/0.3805, allocations: 39.89 kB / 0.5259 GB, free: 6.797 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001047/0.3815, allocations: 383.1 kB / 0.5263 GB, free: 6.598 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.092e-05/0.3815, allocations: 9.469 kB / 0.5263 GB, free: 6.594 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.638e-05/0.3816, allocations: 27.27 kB / 0.5263 GB, free: 6.578 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003278/0.3819, allocations: 184.7 kB / 0.5265 GB, free: 6.492 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.3819, allocations: 1.078 kB / 0.5265 GB, free: 6.492 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.354e-05/0.3819, allocations: 6.188 kB / 0.5265 GB, free: 6.488 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.3819, allocations: 7.125 kB / 0.5265 GB, free: 6.484 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003501/0.3823, allocations: 190.5 kB / 0.5267 GB, free: 6.43 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001056/0.3834, allocations: 0.6095 MB / 0.5273 GB, free: 6.066 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008839/0.3842, allocations: 326.4 kB / 0.5276 GB, free: 5.969 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002234/0.3845, allocations: 102.4 kB / 0.5277 GB, free: 5.926 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.308e-05/0.3845, allocations: 10.88 kB / 0.5277 GB, free: 5.918 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.89e-05/0.3845, allocations: 35.75 kB / 0.5277 GB, free: 5.875 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 2.024e-06/0.3845, allocations: 1.062 kB / 0.5277 GB, free: 5.875 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.0017/0.3862, allocations: 435 kB / 0.5281 GB, free: 5.715 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.591e-05/0.3863, allocations: 54.62 kB / 0.5282 GB, free: 5.652 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001497/0.3878, allocations: 453.9 kB / 0.5286 GB, free: 5.477 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.622e-05/0.3878, allocations: 30.89 kB / 0.5287 GB, free: 5.441 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001215/0.3879, allocations: 164.9 kB / 0.5288 GB, free: 5.301 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.241e-05/0.388, allocations: 78.94 kB / 0.5289 GB, free: 5.238 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000107/0.3881, allocations: 45.53 kB / 0.5289 GB, free: 5.207 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.759e-05/0.3882, allocations: 340.9 kB / 0.5293 GB, free: 4.883 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002342/0.3884, allocations: 90.77 kB / 0.5293 GB, free: 4.848 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002451/0.3886, allocations: 107 kB / 0.5294 GB, free: 4.805 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002368/0.391, allocations: 0.5228 MB / 0.53 GB, free: 4.648 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.391, allocations: 0 / 0.53 GB, free: 4.648 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0008864/0.3919, allocations: 343.1 kB / 0.5303 GB, free: 4.504 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.3919, allocations: 5.562 kB / 0.5303 GB, free: 4.504 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.3919, allocations: 1.125 kB / 0.5303 GB, free: 4.504 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000271/0.3922, allocations: 56.55 kB / 0.5303 GB, free: 4.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002726/0.3925, allocations: 34.61 kB / 0.5304 GB, free: 4.477 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001676/0.3941, allocations: 1.509 MB / 0.5318 GB, free: 3.098 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007146/0.3949, allocations: 69.64 kB / 0.5319 GB, free: 3.082 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.218e-05/0.3949, allocations: 8.906 kB / 0.5319 GB, free: 3.078 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.0003034/0.3952, allocations: 161.1 kB / 0.5321 GB, free: 2.941 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001114/0.3953, allocations: 33.59 kB / 0.5321 GB, free: 2.922 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001188/0.3954, allocations: 44.62 kB / 0.5322 GB, free: 2.891 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.3954, allocations: 2.469 kB / 0.5322 GB, free: 2.891 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/0.3954, allocations: 5.312 kB / 0.5322 GB, free: 2.887 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.747e-06/0.3954, allocations: 5.859 kB / 0.5322 GB, free: 2.883 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005959/0.396, allocations: 320 kB / 0.5325 GB, free: 2.664 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.396, allocations: 3.938 kB / 0.5325 GB, free: 2.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003322/0.3964, allocations: 28.02 kB / 0.5325 GB, free: 2.656 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000269/0.3966, allocations: 51.94 kB / 0.5325 GB, free: 2.637 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.721e-05/0.3967, allocations: 8.125 kB / 0.5326 GB, free: 2.633 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001517/0.3982, allocations: 1.514 MB / 0.534 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.3982, allocations: 1.125 kB / 0.534 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001157/0.3994, allocations: 0.5131 MB / 0.5345 GB, free: 0.9609 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000109/0.3995, allocations: 35.91 kB / 0.5346 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.28e-05/0.3995, allocations: 8.469 kB / 0.5346 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007222/0.4003, allocations: 66.48 kB / 0.5346 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001054/0.4004, allocations: 20.11 kB / 0.5347 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.222e-05/0.4004, allocations: 5.594 kB / 0.5347 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001423/0.4018, allocations: 360.6 kB / 0.535 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4018, allocations: 1.031 kB / 0.535 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005874/0.4024, allocations: 52.89 kB / 0.5351 GB, free: 0.7773 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.001411/0.4038, allocations: 1.063 MB / 0.5361 GB, free: 15.96 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001026/0.4048, allocations: 348 kB / 0.5364 GB, free: 15.78 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.4048, allocations: 0 / 0.5364 GB, free: 15.78 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005916/0.4054, allocations: 238.8 kB / 0.5367 GB, free: 15.62 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006854/0.4061, allocations: 50.2 kB / 0.5367 GB, free: 15.61 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009674/0.4158, allocations: 3.41 MB / 0.54 GB, free: 13.73 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006164/0.4164, allocations: 0.795 MB / 0.5408 GB, free: 13.03 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002541/0.4167, allocations: 56.38 kB / 0.5409 GB, free: 13.02 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002308/0.4169, allocations: 94.58 kB / 0.541 GB, free: 12.96 MB / 398.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4169, allocations: 0 / 0.541 GB, free: 12.96 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04163/0.4585, allocations: 6.462 MB / 0.5473 GB, free: 10.29 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/12.1, allocations: 4.812 kB / 0.5473 GB, free: 10.29 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.066971091000596] Failed to read output from testmodel.py, exit status != 0: 12.217925005003053 12.235956014 11.853824235 Calling exit ...