Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.Typical_control_structures.Smith_predictor.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.001387/0.001387, 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.001661/0.001661, 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.487/1.487, 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.1071/0.1071, 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.Smith_predictor,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Smith_predictor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Smith_predictor,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Smith_predictor",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.002029/0.002029, allocations: 71.89 kB / 473.3 MB, free: 6.375 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3557/0.3578, allocations: 59.6 MB / 0.5204 GB, free: 9.887 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Smith_predictor): time 0.002942/0.3607, allocations: 1.848 MB / 0.5222 GB, free: 8.664 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001145/0.3618, allocations: 0.6575 MB / 0.5229 GB, free: 8.215 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.108e-05/0.3619, allocations: 6.844 kB / 0.5229 GB, free: 8.211 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003364/0.3623, allocations: 55.84 kB / 0.5229 GB, free: 8.184 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002334/0.3625, allocations: 65.25 kB / 0.523 GB, free: 8.152 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004243/0.3629, allocations: 150.6 kB / 0.5231 GB, free: 8.078 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005498/0.3635, allocations: 378.6 kB / 0.5235 GB, free: 7.941 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001459/0.3636, allocations: 40.59 kB / 0.5235 GB, free: 7.914 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002264/0.3638, allocations: 141.5 kB / 0.5237 GB, free: 7.863 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003105/0.3642, allocations: 181.7 kB / 0.5238 GB, free: 7.797 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.831e-05/0.3642, allocations: 24.81 kB / 0.5239 GB, free: 7.793 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.334e-05/0.3643, allocations: 19.62 kB / 0.5239 GB, free: 7.793 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001649/0.3644, allocations: 100 kB / 0.524 GB, free: 7.754 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001035/0.3645, allocations: 104.4 kB / 0.5241 GB, free: 7.68 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003531/0.3649, allocations: 238.1 kB / 0.5243 GB, free: 7.586 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.012e-06/0.3649, allocations: 0 / 0.5243 GB, free: 7.586 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3649, allocations: 0 / 0.5243 GB, free: 7.586 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.269e-05/0.3649, allocations: 1.062 kB / 0.5243 GB, free: 7.586 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.001855/0.3668, allocations: 0.6148 MB / 0.5249 GB, free: 7.195 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.208e-05/0.3668, allocations: 11.38 kB / 0.5249 GB, free: 7.195 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.054e-05/0.3669, allocations: 50.11 kB / 0.525 GB, free: 7.145 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.562e-05/0.3669, allocations: 30.33 kB / 0.525 GB, free: 7.129 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008736/0.3678, allocations: 298.5 kB / 0.5253 GB, free: 6.949 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.067e-05/0.3678, allocations: 13.69 kB / 0.5253 GB, free: 6.941 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.216e-05/0.3679, allocations: 22.03 kB / 0.5253 GB, free: 6.93 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004158/0.3683, allocations: 178.5 kB / 0.5255 GB, free: 6.852 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.747e-05/0.3683, allocations: 1.469 kB / 0.5255 GB, free: 6.852 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.16e-05/0.3683, allocations: 4.797 kB / 0.5255 GB, free: 6.848 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.3683, allocations: 4.344 kB / 0.5255 GB, free: 6.848 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003396/0.3687, allocations: 173.6 kB / 0.5256 GB, free: 6.801 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001196/0.3699, allocations: 0.6144 MB / 0.5262 GB, free: 6.445 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003842/0.3703, allocations: 222.2 kB / 0.5265 GB, free: 6.348 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001888/0.3705, allocations: 111.3 kB / 0.5266 GB, free: 6.305 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.626e-05/0.3705, allocations: 3.594 kB / 0.5266 GB, free: 6.305 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.029e-05/0.3705, allocations: 40.69 kB / 0.5266 GB, free: 6.258 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.413e-06/0.3705, allocations: 1.156 kB / 0.5266 GB, free: 6.258 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.001565/0.3721, allocations: 0.5001 MB / 0.5271 GB, free: 6.094 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.102e-05/0.3721, allocations: 58.06 kB / 0.5272 GB, free: 6.027 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008264/0.3729, allocations: 348 kB / 0.5275 GB, free: 5.871 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.423e-05/0.373, allocations: 30.8 kB / 0.5275 GB, free: 5.836 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.726e-05/0.3731, allocations: 142.1 kB / 0.5277 GB, free: 5.711 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.07e-05/0.3731, allocations: 83.19 kB / 0.5277 GB, free: 5.645 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.936e-05/0.3732, allocations: 42.17 kB / 0.5278 GB, free: 5.617 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.3733, allocations: 333.5 kB / 0.5281 GB, free: 5.297 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001948/0.3735, allocations: 91.19 kB / 0.5282 GB, free: 5.27 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001983/0.3737, allocations: 98.78 kB / 0.5283 GB, free: 5.238 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002346/0.3761, allocations: 0.6351 MB / 0.5289 GB, free: 5.074 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.3761, allocations: 1.156 kB / 0.5289 GB, free: 5.074 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.000866/0.377, allocations: 416.4 kB / 0.5293 GB, free: 4.914 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.377, allocations: 5.438 kB / 0.5293 GB, free: 4.914 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.031e-06/0.377, allocations: 0 / 0.5293 GB, free: 4.914 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003789/0.3774, allocations: 103.7 kB / 0.5294 GB, free: 4.887 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001788/0.3775, allocations: 33.33 kB / 0.5294 GB, free: 4.883 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00207/0.3796, allocations: 1.989 MB / 0.5314 GB, free: 3.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004085/0.38, allocations: 51.22 kB / 0.5314 GB, free: 3.223 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.133e-05/0.38, allocations: 8.312 kB / 0.5314 GB, free: 3.219 MB / 382.1 MB Warning: Assuming fixed start value for the following 6 variables: K.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] K.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Mr.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Mr.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Pr.x_scaled[2]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Pr.x_scaled[1]:VARIABLE(fixed = true protected = true ) \"Scaled vector x\" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (20): * Single equations (assignments): 19 * 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,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000241/0.3803, allocations: 159.6 kB / 0.5316 GB, free: 3.082 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.267e-05/0.3803, allocations: 26.52 kB / 0.5316 GB, free: 3.066 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.294e-05/0.3804, allocations: 37.69 kB / 0.5316 GB, free: 3.047 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.3804, allocations: 2.062 kB / 0.5316 GB, free: 3.047 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.054e-05/0.3804, allocations: 5.594 kB / 0.5316 GB, free: 3.043 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.3804, allocations: 9.344 kB / 0.5317 GB, free: 3.035 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003768/0.3808, allocations: 316 kB / 0.532 GB, free: 2.812 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.3808, allocations: 0 / 0.532 GB, free: 2.812 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002187/0.381, allocations: 36.59 kB / 0.532 GB, free: 2.805 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002247/0.3813, allocations: 66.83 kB / 0.5321 GB, free: 2.785 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.687e-05/0.3813, allocations: 8.359 kB / 0.5321 GB, free: 2.781 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001461/0.3828, allocations: 1.743 MB / 0.5338 GB, free: 1.23 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.3828, allocations: 0.9375 kB / 0.5338 GB, free: 1.23 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008113/0.3836, allocations: 0.5489 MB / 0.5343 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.549e-05/0.3836, allocations: 26.08 kB / 0.5343 GB, free: 0.9297 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.807e-05/0.3837, allocations: 7.531 kB / 0.5343 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000381/0.384, allocations: 48.95 kB / 0.5344 GB, free: 0.918 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.054e-05/0.3841, allocations: 15.95 kB / 0.5344 GB, free: 0.918 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.963e-05/0.3841, allocations: 13.31 kB / 0.5344 GB, free: 0.9102 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006327/0.3848, allocations: 275.2 kB / 0.5347 GB, free: 0.793 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3848, allocations: 0 / 0.5347 GB, free: 0.793 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004188/0.3852, allocations: 58.91 kB / 0.5347 GB, free: 0.7812 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (Pr.x_scaled[1],Pr.x_scaled[2],Mr.x_scaled[1],Mr.x_scaled[2],K.x_scaled[1],K.x_scaled[2]) * 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.001034/0.3862, allocations: 1.09 MB / 0.5358 GB, free: 15.96 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008415/0.3871, allocations: 382.2 kB / 0.5362 GB, free: 15.77 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3871, allocations: 0 / 0.5362 GB, free: 15.77 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004474/0.3875, allocations: 260.1 kB / 0.5364 GB, free: 15.61 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000421/0.3879, allocations: 47.95 kB / 0.5364 GB, free: 15.59 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005947/0.3939, allocations: 3.197 MB / 0.5396 GB, free: 13.77 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004977/0.3944, allocations: 0.7771 MB / 0.5403 GB, free: 13.07 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001718/0.3946, allocations: 51.23 kB / 0.5404 GB, free: 13.06 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001496/0.3947, allocations: 73.91 kB / 0.5404 GB, free: 13.01 MB / 398.1 MB Notification: Performance of SimCode: time 1.143e-06/0.3947, allocations: 0.875 kB / 0.5404 GB, free: 13.01 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03749/0.4322, allocations: 6.073 MB / 0.5464 GB, free: 10.63 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.71/12.15, allocations: 9.922 kB / 0.5464 GB, free: 10.63 MB / 398.1 MB " [Timeout remaining time 648] (rm -f AES_AES.Coursework.Typical_control_structures.Smith_predictor.pipe ; mkfifo AES_AES.Coursework.Typical_control_structures.Smith_predictor.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_control_structures.Smith_predictor.pipe >> ../files/AES_AES.Coursework.Typical_control_structures.Smith_predictor.sim & python3 -m fmpy simulate --output-file AES_AES.Coursework.Typical_control_structures.Smith_predictor_res.csv --start-time 0 --stop-time 500 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1 AES_AES_Coursework_Typical_control_structures_Smith_predictor.fmu > AES_AES.Coursework.Typical_control_structures.Smith_predictor.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.295858831996156] Failed to read output from testmodel.py, exit status != 0: 12.258739582997805 12.282611434 11.913281381 Calling exit ...