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.0007878/0.0007878, allocations: 80.44 kB / 19.95 MB, free: 4.617 MB / 18.57 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.0008316/0.0008316, allocations: 165.2 kB / 23.23 MB, free: 1.336 MB / 18.57 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 0.8782/0.8782, allocations: 177.1 MB / 203.5 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] 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.06076/0.06076, allocations: 18.13 MB / 278.1 MB, free: 11.54 MB / 266.7 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: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 415.8 MB, free: 12.34 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.03e-05/2.183e-05, allocations: 3.125 kB / 415.8 MB, free: 12.33 MB / 330.7 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Smith_predictor): time 0.001712/0.001734, allocations: 1.783 MB / 417.6 MB, free: 11.17 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006762/0.00241, allocations: 0.6139 MB / 418.2 MB, free: 10.77 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.145e-05/0.002482, allocations: 6.969 kB / 418.2 MB, free: 10.76 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002546/0.002736, allocations: 55.11 kB / 418.3 MB, free: 10.73 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000126/0.002862, allocations: 65.55 kB / 418.4 MB, free: 10.7 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003082/0.003171, allocations: 193.3 kB / 418.6 MB, free: 10.62 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001823/0.003353, allocations: 219 kB / 418.8 MB, free: 10.54 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.642e-05/0.003449, allocations: 31.91 kB / 418.8 MB, free: 10.52 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.043e-05/0.00354, allocations: 98.19 kB / 418.9 MB, free: 10.48 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001603/0.0037, allocations: 142.5 kB / 419 MB, free: 10.44 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 3.513e-05/0.003735, allocations: 24.12 kB / 419.1 MB, free: 10.44 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.243e-05/0.003757, allocations: 20.12 kB / 419.1 MB, free: 10.44 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 8.683e-05/0.003844, allocations: 102.9 kB / 419.2 MB, free: 10.39 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 5.89e-05/0.003903, allocations: 61.7 kB / 419.2 MB, free: 10.36 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001999/0.004103, allocations: 247 kB / 419.5 MB, free: 10.26 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.773e-06/0.004105, allocations: 4 kB / 419.5 MB, free: 10.26 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.004106, allocations: 1.156 kB / 419.5 MB, free: 10.26 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.004111, allocations: 0 / 419.5 MB, free: 10.26 MB / 330.7 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.0008688/0.00498, allocations: 0.6056 MB / 420.1 MB, free: 9.875 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.238e-05/0.005012, allocations: 9.922 kB / 420.1 MB, free: 9.875 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.231e-05/0.005044, allocations: 46.91 kB / 420.1 MB, free: 9.828 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.478e-05/0.005079, allocations: 33.36 kB / 420.2 MB, free: 9.809 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004276/0.005507, allocations: 306.6 kB / 420.5 MB, free: 9.613 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.481e-05/0.005521, allocations: 11 kB / 420.5 MB, free: 9.609 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.718e-05/0.005549, allocations: 21.2 kB / 420.5 MB, free: 9.598 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002307/0.005779, allocations: 182.3 kB / 420.7 MB, free: 9.516 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.005792, allocations: 2.578 kB / 420.7 MB, free: 9.516 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.366e-05/0.005805, allocations: 9.219 kB / 420.7 MB, free: 9.508 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.229e-06/0.005811, allocations: 3.281 kB / 420.7 MB, free: 9.508 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002629/0.006073, allocations: 167.1 kB / 420.9 MB, free: 9.465 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007054/0.006779, allocations: 0.5738 MB / 421.4 MB, free: 9.121 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003002/0.007079, allocations: 210.5 kB / 421.6 MB, free: 9.035 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001451/0.007224, allocations: 111.3 kB / 421.8 MB, free: 8.992 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.419e-05/0.007248, allocations: 3.562 kB / 421.8 MB, free: 8.992 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.692e-05/0.007265, allocations: 37.89 kB / 421.8 MB, free: 8.949 MB / 330.7 MB Notification: Performance of pre-optimization done (n=21): time 1.824e-06/0.007267, allocations: 0 / 421.8 MB, free: 8.949 MB / 330.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009498/0.008217, allocations: 0.4994 MB / 422.3 MB, free: 8.785 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.299e-05/0.00824, allocations: 54.41 kB / 422.3 MB, free: 8.723 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004208/0.008661, allocations: 345.5 kB / 422.7 MB, free: 8.574 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.592e-05/0.008677, allocations: 30.83 kB / 422.7 MB, free: 8.539 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.787e-05/0.008734, allocations: 150.1 kB / 422.9 MB, free: 8.406 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.039e-05/0.008785, allocations: 86.12 kB / 422.9 MB, free: 8.336 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.109e-05/0.008836, allocations: 41.89 kB / 423 MB, free: 8.309 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.934e-05/0.008885, allocations: 342.8 kB / 423.3 MB, free: 7.98 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001114/0.008997, allocations: 90.7 kB / 423.4 MB, free: 7.953 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001056/0.009102, allocations: 99.39 kB / 423.5 MB, free: 7.922 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001159/0.01026, allocations: 0.6269 MB / 424.1 MB, free: 7.766 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.01026, allocations: 0.6875 kB / 424.1 MB, free: 7.766 MB / 330.7 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005471/0.01081, allocations: 421.6 kB / 424.5 MB, free: 7.602 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.224e-05/0.01083, allocations: 9.047 kB / 424.6 MB, free: 7.598 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.01084, allocations: 0.5 kB / 424.6 MB, free: 7.598 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002569/0.0111, allocations: 110.3 kB / 424.7 MB, free: 7.566 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.799e-05/0.0112, allocations: 33.45 kB / 424.7 MB, free: 7.562 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001236/0.01243, allocations: 1.966 MB / 426.7 MB, free: 5.93 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001709/0.01261, allocations: 51.33 kB / 426.7 MB, free: 5.922 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.185e-05/0.01262, allocations: 9.125 kB / 426.7 MB, free: 5.918 MB / 330.7 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.0001335/0.01275, allocations: 170 kB / 426.9 MB, free: 5.77 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.177e-05/0.01278, allocations: 27.23 kB / 426.9 MB, free: 5.754 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.574e-05/0.01283, allocations: 40.81 kB / 427 MB, free: 5.723 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.01283, allocations: 2.188 kB / 427 MB, free: 5.723 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.01284, allocations: 1.797 kB / 427 MB, free: 5.723 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.01284, allocations: 1.266 kB / 427 MB, free: 5.723 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002268/0.01307, allocations: 277.2 kB / 427.2 MB, free: 5.512 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.01307, allocations: 0 / 427.2 MB, free: 5.512 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001156/0.01319, allocations: 28.86 kB / 427.3 MB, free: 5.512 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001341/0.01332, allocations: 75.27 kB / 427.3 MB, free: 5.484 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.64e-05/0.01334, allocations: 8.719 kB / 427.3 MB, free: 5.48 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008388/0.01417, allocations: 1.736 MB / 429.1 MB, free: 3.941 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.01418, allocations: 3.938 kB / 429.1 MB, free: 3.938 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005286/0.01471, allocations: 0.5461 MB / 429.6 MB, free: 3.652 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.929e-05/0.01473, allocations: 33.03 kB / 429.7 MB, free: 3.633 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.02e-05/0.01475, allocations: 9.125 kB / 429.7 MB, free: 3.629 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001853/0.01494, allocations: 44.25 kB / 429.7 MB, free: 3.625 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.67e-05/0.015, allocations: 19.98 kB / 429.7 MB, free: 3.621 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.448e-06/0.01501, allocations: 5 kB / 429.7 MB, free: 3.621 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003378/0.01534, allocations: 280.6 kB / 430 MB, free: 3.5 MB / 330.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01534, allocations: 0 / 430 MB, free: 3.5 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002546/0.0156, allocations: 50.28 kB / 430.1 MB, free: 3.496 MB / 330.7 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.0006298/0.01623, allocations: 1.101 MB / 431.2 MB, free: 2.672 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004391/0.01667, allocations: 381.4 kB / 431.5 MB, free: 2.477 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.292e-06/0.01667, allocations: 0 / 431.5 MB, free: 2.477 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002258/0.01689, allocations: 252.2 kB / 431.8 MB, free: 2.324 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002504/0.01714, allocations: 50.84 kB / 431.8 MB, free: 2.297 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003137/0.02028, allocations: 3.17 MB / 435 MB, free: 0.5039 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001146/0.0204, allocations: 164.5 kB / 435.2 MB, free: 432 kB / 330.7 MB Notification: Performance of simCode: alias equations: time 9.097e-05/0.02049, allocations: 51.39 kB / 435.2 MB, free: 428 kB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.552e-05/0.02057, allocations: 74.52 kB / 435.3 MB, free: 372 kB / 330.7 MB Notification: Performance of SimCode: time 5.61e-07/0.02057, allocations: 0 / 435.3 MB, free: 372 kB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0187/0.03927, allocations: 6.699 MB / 442 MB, free: 13.02 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.294/7.334, allocations: 5.875 kB / 442 MB, free: 13.02 MB / 346.7 MB " [Timeout remaining time 653] (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 100 --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: 9.257193152792752] Failed to read output from testmodel.py, exit status != 0: 7.417492033913732 7.427809983 7.421808691 Calling exit ...