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.001693/0.001693, 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.001442/0.001442, allocations: 209 kB / 23.01 MB, free: 4.621 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.5/1.5, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.04 MB / 337.2 MB, free: 11.37 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.002184/0.002184, allocations: 67.91 kB / 473.8 MB, free: 6.414 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3543/0.3565, allocations: 59.58 MB / 0.5209 GB, free: 10.06 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Smith_predictor): time 0.002737/0.3593, allocations: 1.778 MB / 0.5226 GB, free: 8.852 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001025/0.3603, allocations: 0.6058 MB / 0.5232 GB, free: 8.457 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.245e-05/0.3604, allocations: 1.875 kB / 0.5232 GB, free: 8.457 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003026/0.3607, allocations: 64.19 kB / 0.5233 GB, free: 8.422 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001851/0.3609, allocations: 65.61 kB / 0.5234 GB, free: 8.391 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003661/0.3612, allocations: 140.4 kB / 0.5235 GB, free: 8.328 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004564/0.3617, allocations: 377.1 kB / 0.5238 GB, free: 8.191 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001283/0.3618, allocations: 36.78 kB / 0.5239 GB, free: 8.168 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000196/0.362, allocations: 142.1 kB / 0.524 GB, free: 8.117 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002694/0.3623, allocations: 168.6 kB / 0.5242 GB, free: 8.062 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.406e-05/0.3623, allocations: 24.03 kB / 0.5242 GB, free: 8.059 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.143e-05/0.3624, allocations: 19.66 kB / 0.5242 GB, free: 8.059 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001381/0.3625, allocations: 106.7 kB / 0.5243 GB, free: 8.012 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.658e-05/0.3626, allocations: 76.5 kB / 0.5244 GB, free: 7.965 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000262/0.3629, allocations: 250.7 kB / 0.5246 GB, free: 7.863 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.3629, allocations: 0 / 0.5246 GB, free: 7.863 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.684e-06/0.3629, allocations: 0 / 0.5246 GB, free: 7.863 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.913e-06/0.3629, allocations: 0 / 0.5246 GB, free: 7.863 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.001549/0.3644, allocations: 0.6121 MB / 0.5252 GB, free: 7.477 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.3645, allocations: 10.23 kB / 0.5252 GB, free: 7.477 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.02e-05/0.3645, allocations: 46.89 kB / 0.5253 GB, free: 7.43 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.297e-05/0.3645, allocations: 29.34 kB / 0.5253 GB, free: 7.414 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007861/0.3653, allocations: 303.2 kB / 0.5256 GB, free: 7.23 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.922e-05/0.3653, allocations: 10.67 kB / 0.5256 GB, free: 7.227 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.094e-05/0.3654, allocations: 21.17 kB / 0.5256 GB, free: 7.215 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003117/0.3657, allocations: 178.2 kB / 0.5258 GB, free: 7.137 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.734e-05/0.3657, allocations: 2.234 kB / 0.5258 GB, free: 7.137 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.774e-05/0.3657, allocations: 9.531 kB / 0.5258 GB, free: 7.129 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.633e-06/0.3657, allocations: 6.547 kB / 0.5258 GB, free: 7.125 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003151/0.3661, allocations: 171 kB / 0.526 GB, free: 7.078 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001034/0.3671, allocations: 0.5811 MB / 0.5266 GB, free: 6.727 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003339/0.3674, allocations: 208.6 kB / 0.5268 GB, free: 6.645 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001717/0.3676, allocations: 109.7 kB / 0.5269 GB, free: 6.602 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.336e-05/0.3676, allocations: 7.938 kB / 0.5269 GB, free: 6.598 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.858e-05/0.3677, allocations: 36.78 kB / 0.5269 GB, free: 6.555 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.353e-06/0.3677, allocations: 0 / 0.5269 GB, free: 6.555 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.001407/0.3691, allocations: 0.5013 MB / 0.5274 GB, free: 6.391 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.653e-05/0.3691, allocations: 58.34 kB / 0.5274 GB, free: 6.324 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007308/0.3698, allocations: 351.8 kB / 0.5278 GB, free: 6.164 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.897e-05/0.3698, allocations: 30.83 kB / 0.5278 GB, free: 6.129 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.572e-05/0.3699, allocations: 138.2 kB / 0.5279 GB, free: 6.008 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.443e-05/0.37, allocations: 83.2 kB / 0.528 GB, free: 5.941 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.128e-05/0.37, allocations: 42.7 kB / 0.5281 GB, free: 5.914 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.492e-05/0.3701, allocations: 337.7 kB / 0.5284 GB, free: 5.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001824/0.3703, allocations: 91 kB / 0.5285 GB, free: 5.562 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001533/0.3704, allocations: 98.38 kB / 0.5286 GB, free: 5.531 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001878/0.3723, allocations: 0.6276 MB / 0.5292 GB, free: 5.375 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.3723, allocations: 7.938 kB / 0.5292 GB, free: 5.367 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0007561/0.3731, allocations: 425.2 kB / 0.5296 GB, free: 5.199 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.3731, allocations: 5.5 kB / 0.5296 GB, free: 5.199 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.3731, allocations: 0.6094 kB / 0.5296 GB, free: 5.199 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003391/0.3734, allocations: 103.2 kB / 0.5297 GB, free: 5.172 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001626/0.3736, allocations: 30.14 kB / 0.5297 GB, free: 5.172 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001839/0.3754, allocations: 1.968 MB / 0.5316 GB, free: 3.531 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004309/0.3759, allocations: 55.3 kB / 0.5317 GB, free: 3.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.979e-05/0.3759, allocations: 8.875 kB / 0.5317 GB, free: 3.516 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.0002196/0.3761, allocations: 167.3 kB / 0.5319 GB, free: 3.371 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.09e-05/0.3762, allocations: 27.23 kB / 0.5319 GB, free: 3.355 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.504e-05/0.3763, allocations: 37.95 kB / 0.5319 GB, free: 3.336 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.3763, allocations: 1.344 kB / 0.5319 GB, free: 3.336 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.956e-06/0.3763, allocations: 5.922 kB / 0.5319 GB, free: 3.332 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.3763, allocations: 1.891 kB / 0.5319 GB, free: 3.332 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003571/0.3766, allocations: 280.7 kB / 0.5322 GB, free: 3.117 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3766, allocations: 0 / 0.5322 GB, free: 3.117 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000211/0.3768, allocations: 32.17 kB / 0.5322 GB, free: 3.113 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002218/0.3771, allocations: 72.25 kB / 0.5323 GB, free: 3.09 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.856e-05/0.3771, allocations: 8.938 kB / 0.5323 GB, free: 3.086 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00139/0.3785, allocations: 1.745 MB / 0.534 GB, free: 1.531 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.3785, allocations: 0 / 0.534 GB, free: 1.531 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000809/0.3793, allocations: 0.5404 MB / 0.5345 GB, free: 1.254 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.791e-05/0.3793, allocations: 23.06 kB / 0.5346 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.796e-05/0.3794, allocations: 9.125 kB / 0.5346 GB, free: 1.238 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003627/0.3797, allocations: 48.56 kB / 0.5346 GB, free: 1.23 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.755e-05/0.3798, allocations: 20.53 kB / 0.5346 GB, free: 1.227 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.577e-05/0.3798, allocations: 8.438 kB / 0.5346 GB, free: 1.223 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005998/0.3804, allocations: 272.9 kB / 0.5349 GB, free: 1.109 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3804, allocations: 4 kB / 0.5349 GB, free: 1.105 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003961/0.3808, allocations: 54.31 kB / 0.535 GB, free: 1.098 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.001033/0.3819, allocations: 1.093 MB / 0.536 GB, free: 284 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00102/0.3829, allocations: 383.4 kB / 0.5364 GB, free: 84 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.3829, allocations: 1.438 kB / 0.5364 GB, free: 84 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005722/0.3835, allocations: 262.6 kB / 0.5366 GB, free: 15.92 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005056/0.384, allocations: 33.31 kB / 0.5367 GB, free: 15.91 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006901/0.3909, allocations: 3.206 MB / 0.5398 GB, free: 14.09 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002829/0.3912, allocations: 164.3 kB / 0.54 GB, free: 14.01 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001848/0.3913, allocations: 55.56 kB / 0.54 GB, free: 14 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001628/0.3915, allocations: 78.11 kB / 0.5401 GB, free: 13.95 MB / 398.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3915, allocations: 0 / 0.5401 GB, free: 13.95 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04033/0.4318, allocations: 6.531 MB / 0.5465 GB, free: 11.15 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.73/12.16, allocations: 5.062 kB / 0.5465 GB, free: 11.14 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.237880817148834] Failed to read output from testmodel.py, exit status != 0: 12.275958266109228 12.290013374 11.924172034 Calling exit ...