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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001247/0.001247, allocations: 99.16 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001425/0.001425, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.442/1.442, allocations: 223.2 MB / 239.9 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2435/0.2435, allocations: 22.34 MB / 313.3 MB, free: 13.15 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004367/0.0004367, allocations: 12 kB / 381.9 MB, free: 10.47 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3994/0.3999, allocations: 55.98 MB / 437.9 MB, free: 39.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Smith_predictor): time 0.002173/0.4021, allocations: 1.482 MB / 439.4 MB, free: 38.2 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001075/0.4032, allocations: 0.5785 MB / 440 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001194/0.4033, allocations: 0 / 440 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003541/0.4037, allocations: 44 kB / 440 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000202/0.4039, allocations: 62.23 kB / 440.1 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003531/0.4043, allocations: 101.2 kB / 440.2 MB, free: 37.72 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002572/0.4045, allocations: 174.5 kB / 440.3 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001539/0.4047, allocations: 40.62 kB / 440.4 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002299/0.4049, allocations: 137.8 kB / 440.5 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002271/0.4052, allocations: 141.2 kB / 440.6 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.098e-05/0.4052, allocations: 10.94 kB / 440.7 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.445e-05/0.4053, allocations: 7.812 kB / 440.7 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001184/0.4054, allocations: 75.47 kB / 440.7 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.294e-05/0.4055, allocations: 57.83 kB / 440.8 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001882/0.4057, allocations: 166.8 kB / 441 MB, free: 37.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.4057, allocations: 0 / 441 MB, free: 37.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.4057, allocations: 0 / 441 MB, free: 37.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.4057, allocations: 0 / 441 MB, free: 37.43 MB / 350.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.001817/0.4075, allocations: 0.6634 MB / 441.6 MB, free: 36.97 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/0.4076, allocations: 10.44 kB / 441.6 MB, free: 36.97 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.903e-05/0.4076, allocations: 48.59 kB / 441.7 MB, free: 36.92 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.896e-05/0.4077, allocations: 25.44 kB / 441.7 MB, free: 36.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009618/0.4087, allocations: 367.9 kB / 442.1 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.286e-05/0.4087, allocations: 6.75 kB / 442.1 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.463e-05/0.4088, allocations: 15.75 kB / 442.1 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003875/0.4092, allocations: 177.5 kB / 442.3 MB, free: 36.56 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.4092, allocations: 3.953 kB / 442.3 MB, free: 36.56 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.863e-05/0.4092, allocations: 7.906 kB / 442.3 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.354e-06/0.4093, allocations: 3.938 kB / 442.3 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003746/0.4096, allocations: 173.5 kB / 442.4 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001276/0.4109, allocations: 0.6524 MB / 443.1 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004031/0.4113, allocations: 215.9 kB / 443.3 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.858e-05/0.4114, allocations: 2.875 kB / 443.3 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.856e-05/0.4114, allocations: 41.25 kB / 443.3 MB, free: 35.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.723e-06/0.4114, allocations: 0 / 443.3 MB, free: 35.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001689/0.4131, allocations: 0.5763 MB / 443.9 MB, free: 35.72 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.827e-05/0.4132, allocations: 54.09 kB / 444 MB, free: 35.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008638/0.414, allocations: 351.7 kB / 444.3 MB, free: 35.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.481e-05/0.4141, allocations: 29.7 kB / 444.3 MB, free: 35.47 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.541e-05/0.4142, allocations: 141.5 kB / 444.5 MB, free: 35.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.725e-05/0.4142, allocations: 81 kB / 444.6 MB, free: 35.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.309e-05/0.4143, allocations: 0 / 444.6 MB, free: 35.28 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.558e-05/0.4144, allocations: 335.3 kB / 444.9 MB, free: 34.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001861/0.4146, allocations: 91.41 kB / 445 MB, free: 34.93 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001787/0.4147, allocations: 95.55 kB / 445.1 MB, free: 34.9 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002302/0.415, allocations: 109.6 kB / 445.2 MB, free: 34.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.415, allocations: 0 / 445.2 MB, free: 34.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0009083/0.4159, allocations: 417.7 kB / 445.6 MB, free: 34.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.4159, allocations: 2.625 kB / 445.6 MB, free: 34.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.094e-06/0.416, allocations: 2.812 kB / 445.6 MB, free: 34.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004307/0.4164, allocations: 110.2 kB / 445.7 MB, free: 34.67 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002024/0.4166, allocations: 29.47 kB / 445.7 MB, free: 34.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002104/0.4187, allocations: 1.927 MB / 447.7 MB, free: 33.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004313/0.4192, allocations: 60.3 kB / 447.7 MB, free: 33.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.285e-05/0.4192, allocations: 7.969 kB / 447.7 MB, free: 33.04 MB / 350.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] Pr.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] Mr.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 7} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002223/0.4194, allocations: 158.6 kB / 447.9 MB, free: 32.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.124e-05/0.4195, allocations: 27.62 kB / 447.9 MB, free: 32.89 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.154e-05/0.4196, allocations: 39.38 kB / 447.9 MB, free: 32.86 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.4196, allocations: 2.906 kB / 447.9 MB, free: 32.86 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.645e-06/0.4197, allocations: 3.328 kB / 448 MB, free: 32.86 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.4197, allocations: 0 / 448 MB, free: 32.86 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004364/0.4201, allocations: 335.5 kB / 448.3 MB, free: 32.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.963e-06/0.4201, allocations: 3.938 kB / 448.3 MB, free: 32.61 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002581/0.4204, allocations: 34.62 kB / 448.3 MB, free: 32.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002484/0.4206, allocations: 76.84 kB / 448.4 MB, free: 32.57 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.015e-05/0.4207, allocations: 11.02 kB / 448.4 MB, free: 32.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001519/0.4222, allocations: 1.692 MB / 450.1 MB, free: 31.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.4222, allocations: 0 / 450.1 MB, free: 31.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001013/0.4233, allocations: 0.5448 MB / 450.6 MB, free: 30.76 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.807e-05/0.4233, allocations: 108.4 kB / 450.7 MB, free: 30.65 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.616e-05/0.4234, allocations: 1.344 kB / 450.7 MB, free: 30.65 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004751/0.4239, allocations: 50.45 kB / 450.8 MB, free: 30.64 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.819e-05/0.424, allocations: 13.78 kB / 450.8 MB, free: 30.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.252e-05/0.424, allocations: 12.09 kB / 450.8 MB, free: 30.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007646/0.4248, allocations: 276.5 kB / 451.1 MB, free: 30.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4248, allocations: 0 / 451.1 MB, free: 30.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000613/0.4254, allocations: 57.06 kB / 451.1 MB, free: 30.51 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001208/0.4266, allocations: 1.088 MB / 452.2 MB, free: 29.69 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008017/0.4274, allocations: 389.9 kB / 452.6 MB, free: 29.49 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.4274, allocations: 0 / 452.6 MB, free: 29.49 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004477/0.4279, allocations: 256.7 kB / 452.9 MB, free: 29.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003587/0.4283, allocations: 34.98 kB / 452.9 MB, free: 29.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004912/0.4332, allocations: 2.046 MB / 454.9 MB, free: 28.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002615/0.4335, allocations: 0.7815 MB / 455.7 MB, free: 27.71 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001744/0.4337, allocations: 60.45 kB / 455.8 MB, free: 27.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001468/0.4338, allocations: 72.56 kB / 455.9 MB, free: 27.64 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.4338, allocations: 3.938 kB / 455.9 MB, free: 27.64 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02284/0.4567, allocations: 5.311 MB / 461.2 MB, free: 27.27 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000172/0.4569, allocations: 194.3 kB / 461.4 MB, free: 27.04 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.805/2.262, allocations: 0 / 461.4 MB, free: 27.04 MB / 350.1 MB (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/linux/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_control_structures_Smith_predictor_fmu --startTime=0 --stopTime=500 --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) Environment - environmentSimulation: