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.001296/0.001296, 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.001473/0.001473, allocations: 206.3 kB / 23.01 MB, free: 4.625 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.449/1.449, allocations: 230.6 MB / 256.8 MB, free: 7.777 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.1098/0.1098, allocations: 24.05 MB / 337.2 MB, free: 11.41 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.002082/0.002082, allocations: 71.88 kB / 473.8 MB, free: 6.391 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3468/0.3488, allocations: 59.57 MB / 0.5209 GB, free: 10.08 MB / 382.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Smith_predictor): time 0.003122/0.352, allocations: 1.78 MB / 0.5226 GB, free: 8.871 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001136/0.3531, allocations: 0.6101 MB / 0.5232 GB, free: 8.473 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.368e-05/0.3532, allocations: 2.562 kB / 0.5232 GB, free: 8.473 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003266/0.3535, allocations: 59.94 kB / 0.5233 GB, free: 8.441 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001913/0.3537, allocations: 65.22 kB / 0.5234 GB, free: 8.41 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003952/0.3541, allocations: 147.3 kB / 0.5235 GB, free: 8.34 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005023/0.3546, allocations: 374.2 kB / 0.5239 GB, free: 8.207 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001287/0.3547, allocations: 40.42 kB / 0.5239 GB, free: 8.18 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002382/0.355, allocations: 137.5 kB / 0.524 GB, free: 8.133 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002672/0.3552, allocations: 170.2 kB / 0.5242 GB, free: 8.078 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.973e-05/0.3553, allocations: 20.41 kB / 0.5242 GB, free: 8.078 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.821e-05/0.3553, allocations: 20.75 kB / 0.5242 GB, free: 8.078 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001234/0.3555, allocations: 104.1 kB / 0.5243 GB, free: 8.031 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 8.386e-05/0.3555, allocations: 78.23 kB / 0.5244 GB, free: 7.984 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002656/0.3558, allocations: 248 kB / 0.5246 GB, free: 7.883 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.154e-06/0.3558, allocations: 5.594 kB / 0.5246 GB, free: 7.879 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3558, allocations: 0 / 0.5246 GB, free: 7.879 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.133e-06/0.3558, allocations: 0 / 0.5246 GB, free: 7.879 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.001647/0.3575, allocations: 0.6078 MB / 0.5252 GB, free: 7.496 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.3575, allocations: 11.56 kB / 0.5252 GB, free: 7.496 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.343e-05/0.3576, allocations: 46.14 kB / 0.5253 GB, free: 7.449 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.132e-05/0.3576, allocations: 37.38 kB / 0.5253 GB, free: 7.426 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008117/0.3584, allocations: 299.1 kB / 0.5256 GB, free: 7.246 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.894e-05/0.3585, allocations: 9.719 kB / 0.5256 GB, free: 7.242 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.913e-05/0.3585, allocations: 18.81 kB / 0.5256 GB, free: 7.234 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003448/0.3588, allocations: 181.4 kB / 0.5258 GB, free: 7.152 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.522e-05/0.3589, allocations: 1.953 kB / 0.5258 GB, free: 7.152 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.91e-05/0.3589, allocations: 5.219 kB / 0.5258 GB, free: 7.148 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.3589, allocations: 2.688 kB / 0.5258 GB, free: 7.148 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003244/0.3592, allocations: 175.2 kB / 0.526 GB, free: 7.098 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001145/0.3604, allocations: 0.5854 MB / 0.5266 GB, free: 6.742 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003848/0.3607, allocations: 207.7 kB / 0.5268 GB, free: 6.66 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001855/0.3609, allocations: 112.3 kB / 0.5269 GB, free: 6.617 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.74e-05/0.361, allocations: 2.469 kB / 0.5269 GB, free: 6.617 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.479e-05/0.361, allocations: 36.53 kB / 0.5269 GB, free: 6.574 MB / 382.1 MB Notification: Performance of pre-optimization done (n=21): time 1.824e-06/0.361, allocations: 1.188 kB / 0.5269 GB, free: 6.574 MB / 382.1 MB Notification: Performance of matching and sorting (n=21): time 0.001575/0.3626, allocations: 0.5009 MB / 0.5274 GB, free: 6.41 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.352e-05/0.3626, allocations: 53.69 kB / 0.5274 GB, free: 6.348 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008728/0.3635, allocations: 352 kB / 0.5278 GB, free: 6.188 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.667e-05/0.3635, allocations: 25.7 kB / 0.5278 GB, free: 6.156 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.778e-05/0.3636, allocations: 147.9 kB / 0.5279 GB, free: 6.027 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.833e-05/0.3637, allocations: 82.86 kB / 0.528 GB, free: 5.961 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001097/0.3638, allocations: 42.02 kB / 0.5281 GB, free: 5.934 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.776e-05/0.3639, allocations: 337.8 kB / 0.5284 GB, free: 5.609 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001944/0.3641, allocations: 91.64 kB / 0.5285 GB, free: 5.582 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001939/0.3643, allocations: 94.77 kB / 0.5286 GB, free: 5.555 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002097/0.3664, allocations: 0.629 MB / 0.5292 GB, free: 5.395 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.3664, allocations: 5.125 kB / 0.5292 GB, free: 5.391 MB / 382.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0008422/0.3672, allocations: 415.2 kB / 0.5296 GB, free: 5.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.423e-05/0.3673, allocations: 5.703 kB / 0.5296 GB, free: 5.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.3673, allocations: 1.438 kB / 0.5296 GB, free: 5.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003693/0.3676, allocations: 110.4 kB / 0.5297 GB, free: 5.195 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001789/0.3678, allocations: 38.02 kB / 0.5297 GB, free: 5.188 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002048/0.3699, allocations: 1.969 MB / 0.5316 GB, free: 3.547 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004093/0.3703, allocations: 55.39 kB / 0.5317 GB, free: 3.535 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.087e-05/0.3703, allocations: 5.047 kB / 0.5317 GB, free: 3.535 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.00024/0.3705, allocations: 173.3 kB / 0.5319 GB, free: 3.387 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.828e-05/0.3706, allocations: 27.41 kB / 0.5319 GB, free: 3.371 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.088e-05/0.3707, allocations: 37 kB / 0.5319 GB, free: 3.352 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.3707, allocations: 2.75 kB / 0.5319 GB, free: 3.352 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.385e-06/0.3707, allocations: 0.7188 kB / 0.5319 GB, free: 3.352 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.3707, allocations: 2.516 kB / 0.5319 GB, free: 3.352 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00035/0.371, allocations: 276.3 kB / 0.5322 GB, free: 3.141 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.371, allocations: 0.5625 kB / 0.5322 GB, free: 3.141 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002078/0.3712, allocations: 36.77 kB / 0.5322 GB, free: 3.133 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002411/0.3715, allocations: 71.83 kB / 0.5323 GB, free: 3.109 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.639e-05/0.3715, allocations: 8.484 kB / 0.5323 GB, free: 3.105 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001351/0.3729, allocations: 1.748 MB / 0.534 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.3729, allocations: 0 / 0.534 GB, free: 1.547 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008226/0.3737, allocations: 0.542 MB / 0.5345 GB, free: 1.266 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.312e-05/0.3737, allocations: 25.88 kB / 0.5346 GB, free: 1.254 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.715e-05/0.3738, allocations: 7.719 kB / 0.5346 GB, free: 1.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003494/0.3741, allocations: 45.2 kB / 0.5346 GB, free: 1.246 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.844e-05/0.3742, allocations: 20.69 kB / 0.5346 GB, free: 1.242 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.639e-05/0.3742, allocations: 9.203 kB / 0.5347 GB, free: 1.238 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006768/0.3749, allocations: 274.8 kB / 0.5349 GB, free: 1.121 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3749, allocations: 0 / 0.5349 GB, free: 1.121 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004217/0.3753, allocations: 54.84 kB / 0.535 GB, free: 1.113 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.001018/0.3763, allocations: 1.095 MB / 0.536 GB, free: 300 kB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007087/0.3771, allocations: 381.3 kB / 0.5364 GB, free: 100 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3771, allocations: 0 / 0.5364 GB, free: 100 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000415/0.3775, allocations: 265.9 kB / 0.5367 GB, free: 15.93 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004002/0.3779, allocations: 37.09 kB / 0.5367 GB, free: 15.92 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006136/0.384, allocations: 3.189 MB / 0.5398 GB, free: 14.12 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002482/0.3843, allocations: 166 kB / 0.54 GB, free: 14.04 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000203/0.3845, allocations: 55.14 kB / 0.54 GB, free: 14.03 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000164/0.3846, allocations: 78.97 kB / 0.5401 GB, free: 13.97 MB / 398.1 MB Notification: Performance of SimCode: time 1.223e-06/0.3846, allocations: 0 / 0.5401 GB, free: 13.97 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03835/0.423, allocations: 6.531 MB / 0.5465 GB, free: 11.16 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.71/12.13, allocations: 19.19 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 & /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: 14.913266452029347] Failed to read output from testmodel.py, exit status != 0: 12.253992562182248 12.281632778 11.920470482 Calling exit ...