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.001322/0.001322, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.00151/0.00151, allocations: 217.8 kB / 23.03 MB, free: 4.922 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.512/1.512, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.1218/0.1218, allocations: 22.94 MB / 336.1 MB, free: 12.4 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_control_structures.Smith_predictor,fileNamePrefix="AES_AES_Coursework_Typical_control_structures_Smith_predictor",fmuType="cs",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.002747/0.002747, allocations: 68.08 kB / 472.2 MB, free: 7.863 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3379/0.3406, allocations: 59.29 MB / 0.519 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Smith_predictor): time 0.003078/0.3437, allocations: 1.778 MB / 0.5207 GB, free: 9.512 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001118/0.3448, allocations: 0.6142 MB / 0.5213 GB, free: 9.109 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.571e-05/0.3449, allocations: 5.688 kB / 0.5213 GB, free: 9.109 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003363/0.3453, allocations: 56 kB / 0.5214 GB, free: 9.082 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000189/0.3454, allocations: 66.84 kB / 0.5215 GB, free: 9.051 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000386/0.3458, allocations: 143.6 kB / 0.5216 GB, free: 8.984 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004851/0.3463, allocations: 384.7 kB / 0.522 GB, free: 8.84 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001318/0.3464, allocations: 40.64 kB / 0.522 GB, free: 8.812 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001979/0.3466, allocations: 141 kB / 0.5221 GB, free: 8.766 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000283/0.3469, allocations: 176.9 kB / 0.5223 GB, free: 8.703 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.823e-05/0.347, allocations: 19.56 kB / 0.5223 GB, free: 8.703 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.597e-05/0.347, allocations: 20.16 kB / 0.5223 GB, free: 8.703 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001498/0.3472, allocations: 100.5 kB / 0.5224 GB, free: 8.66 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001023/0.3473, allocations: 82.55 kB / 0.5225 GB, free: 8.609 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003233/0.3476, allocations: 245.5 kB / 0.5228 GB, free: 8.512 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.362e-06/0.3476, allocations: 9.062 kB / 0.5228 GB, free: 8.504 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3476, allocations: 0 / 0.5228 GB, free: 8.504 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.636e-06/0.3476, allocations: 0.6094 kB / 0.5228 GB, free: 8.504 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.001804/0.3494, allocations: 0.6087 MB / 0.5234 GB, free: 8.121 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.521e-05/0.3495, allocations: 10.48 kB / 0.5234 GB, free: 8.121 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.508e-05/0.3495, allocations: 8.5 kB / 0.5234 GB, free: 8.117 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.404e-05/0.3496, allocations: 46.27 kB / 0.5234 GB, free: 8.07 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.338e-05/0.3497, allocations: 28.75 kB / 0.5235 GB, free: 8.055 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008771/0.3505, allocations: 303 kB / 0.5237 GB, free: 7.871 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.988e-05/0.3506, allocations: 13.66 kB / 0.5238 GB, free: 7.863 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.584e-05/0.3506, allocations: 17.67 kB / 0.5238 GB, free: 7.855 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003919/0.351, allocations: 178.3 kB / 0.5239 GB, free: 7.777 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.723e-05/0.351, allocations: 1.406 kB / 0.5239 GB, free: 7.777 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.332e-05/0.351, allocations: 7.656 kB / 0.5239 GB, free: 7.773 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.706e-06/0.3511, allocations: 3.25 kB / 0.524 GB, free: 7.773 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003829/0.3514, allocations: 171.1 kB / 0.5241 GB, free: 7.727 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001141/0.3526, allocations: 0.5804 MB / 0.5247 GB, free: 7.379 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003793/0.353, allocations: 217.3 kB / 0.5249 GB, free: 7.285 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/0.3531, allocations: 110.6 kB / 0.525 GB, free: 7.242 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.949e-05/0.3532, allocations: 6.75 kB / 0.525 GB, free: 7.238 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.585e-05/0.3532, allocations: 33.31 kB / 0.525 GB, free: 7.199 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.322e-06/0.3532, allocations: 3.938 kB / 0.525 GB, free: 7.195 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.001435/0.3546, allocations: 0.5062 MB / 0.5255 GB, free: 7.027 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.495e-05/0.3546, allocations: 58.45 kB / 0.5256 GB, free: 6.961 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008068/0.3554, allocations: 347.5 kB / 0.5259 GB, free: 6.805 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.389e-05/0.3555, allocations: 27.52 kB / 0.5259 GB, free: 6.773 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.117e-05/0.3555, allocations: 142.9 kB / 0.5261 GB, free: 6.648 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.056e-05/0.3556, allocations: 83.23 kB / 0.5262 GB, free: 6.582 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.429e-05/0.3557, allocations: 42.03 kB / 0.5262 GB, free: 6.555 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.722e-05/0.3558, allocations: 338 kB / 0.5265 GB, free: 6.23 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001774/0.356, allocations: 86.03 kB / 0.5266 GB, free: 6.207 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001855/0.3562, allocations: 99.81 kB / 0.5267 GB, free: 6.176 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002145/0.3583, allocations: 0.6293 MB / 0.5273 GB, free: 6.016 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.3583, allocations: 0.5156 kB / 0.5273 GB, free: 6.016 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0008257/0.3591, allocations: 420.2 kB / 0.5277 GB, free: 5.852 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.3592, allocations: 9.125 kB / 0.5277 GB, free: 5.848 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.3592, allocations: 1.094 kB / 0.5277 GB, free: 5.848 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003552/0.3595, allocations: 99.61 kB / 0.5278 GB, free: 5.824 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001688/0.3597, allocations: 33.66 kB / 0.5279 GB, free: 5.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001785/0.3615, allocations: 1.969 MB / 0.5298 GB, free: 4.18 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003775/0.3618, allocations: 51.27 kB / 0.5298 GB, free: 4.172 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.06e-05/0.3619, allocations: 8.406 kB / 0.5298 GB, free: 4.168 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.0002448/0.3621, allocations: 166.7 kB / 0.53 GB, free: 4.027 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.847e-05/0.3622, allocations: 31.92 kB / 0.53 GB, free: 4.008 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.999e-05/0.3623, allocations: 37.34 kB / 0.5301 GB, free: 3.988 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.3623, allocations: 1.406 kB / 0.5301 GB, free: 3.988 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.307e-06/0.3623, allocations: 5.344 kB / 0.5301 GB, free: 3.984 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-06/0.3623, allocations: 2.422 kB / 0.5301 GB, free: 3.984 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003503/0.3626, allocations: 277.2 kB / 0.5303 GB, free: 3.773 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.3626, allocations: 4 kB / 0.5303 GB, free: 3.77 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002155/0.3628, allocations: 31.84 kB / 0.5304 GB, free: 3.766 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002522/0.3631, allocations: 69 kB / 0.5304 GB, free: 3.746 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.706e-05/0.3631, allocations: 9.297 kB / 0.5304 GB, free: 3.742 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001297/0.3644, allocations: 1.74 MB / 0.5321 GB, free: 2.191 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3644, allocations: 3.938 kB / 0.5321 GB, free: 2.188 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008857/0.3653, allocations: 0.5468 MB / 0.5327 GB, free: 1.902 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.089e-05/0.3654, allocations: 25.66 kB / 0.5327 GB, free: 1.891 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.1e-05/0.3654, allocations: 8.5 kB / 0.5327 GB, free: 1.887 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004327/0.3658, allocations: 48.89 kB / 0.5328 GB, free: 1.879 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000102/0.3659, allocations: 25.02 kB / 0.5328 GB, free: 1.871 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.795e-05/0.3659, allocations: 8.203 kB / 0.5328 GB, free: 1.867 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006843/0.3666, allocations: 268.5 kB / 0.533 GB, free: 1.758 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3666, allocations: 0 / 0.533 GB, free: 1.758 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004599/0.3671, allocations: 58.97 kB / 0.5331 GB, free: 1.746 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.001006/0.3681, allocations: 1.088 MB / 0.5342 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006369/0.3687, allocations: 383.8 kB / 0.5345 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.3687, allocations: 3.938 kB / 0.5345 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003525/0.3691, allocations: 263.1 kB / 0.5348 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003927/0.3695, allocations: 38.17 kB / 0.5348 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006251/0.3757, allocations: 3.192 MB / 0.5379 GB, free: 14.75 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003049/0.376, allocations: 169.2 kB / 0.5381 GB, free: 14.66 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002211/0.3763, allocations: 51.7 kB / 0.5381 GB, free: 14.66 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000189/0.3764, allocations: 77.48 kB / 0.5382 GB, free: 14.6 MB / 398.1 MB Notification: Performance of SimCode: time 2.335e-06/0.3764, allocations: 5.688 kB / 0.5382 GB, free: 14.6 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03232/0.4088, allocations: 6.213 MB / 0.5443 GB, free: 12.32 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.19/12.6, allocations: 7.344 kB / 0.5443 GB, free: 12.32 MB / 398.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_Smith_predictor_fmu --startTime=0 --stopTime=500 --stepSize=1 --timeout=50 --tolerance=1e-06 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.446081656962633] Failed to read output from testmodel.py, exit status != 0: 12.769605426932685 12.783366919 12.432749969 Calling exit ...