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.001556/0.001556, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00119/0.00119, allocations: 194.7 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.403/1.403, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2318/0.2318, allocations: 22.35 MB / 312.7 MB, free: 12.54 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002136/0.002136, allocations: 59.91 kB / 380.9 MB, free: 10.51 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3011/0.3033, allocations: 54.94 MB / 435.9 MB, free: 39.72 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Smith_predictor): time 0.002702/0.306, allocations: 1.816 MB / 437.7 MB, free: 38.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009627/0.307, allocations: 0.6108 MB / 438.3 MB, free: 38.03 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001385/0.3072, allocations: 2.625 kB / 438.3 MB, free: 38.03 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003067/0.3075, allocations: 54.69 kB / 438.4 MB, free: 38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001993/0.3077, allocations: 63.33 kB / 438.4 MB, free: 37.97 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003452/0.3081, allocations: 131.4 kB / 438.5 MB, free: 37.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003095/0.3084, allocations: 314.5 kB / 438.8 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001352/0.3085, allocations: 44.22 kB / 438.9 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001739/0.3087, allocations: 127.6 kB / 439 MB, free: 37.72 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002334/0.309, allocations: 163 kB / 439.2 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.768e-05/0.309, allocations: 22.19 kB / 439.2 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.186e-05/0.3091, allocations: 18.75 kB / 439.2 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001073/0.3092, allocations: 98.38 kB / 439.3 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.792e-05/0.3093, allocations: 102.9 kB / 439.4 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002075/0.3095, allocations: 235.3 kB / 439.6 MB, free: 37.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.3095, allocations: 0 / 439.6 MB, free: 37.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.3095, allocations: 0 / 439.6 MB, free: 37.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.686e-06/0.3095, allocations: 0 / 439.6 MB, free: 37.45 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.00158/0.3111, allocations: 0.6888 MB / 440.3 MB, free: 36.97 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.3112, allocations: 15.12 kB / 440.3 MB, free: 36.97 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.273e-05/0.3112, allocations: 51.28 kB / 440.4 MB, free: 36.92 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.627e-05/0.3113, allocations: 26.25 kB / 440.4 MB, free: 36.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007111/0.312, allocations: 368.7 kB / 440.8 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.625e-05/0.312, allocations: 9.656 kB / 440.8 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.326e-05/0.3121, allocations: 14.84 kB / 440.8 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002661/0.3123, allocations: 180.2 kB / 441 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.3124, allocations: 0 / 441 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.754e-05/0.3124, allocations: 10.67 kB / 441 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.079e-06/0.3124, allocations: 2.812 kB / 441 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002795/0.3127, allocations: 173.7 kB / 441.2 MB, free: 36.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009662/0.3136, allocations: 0.6451 MB / 441.8 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003181/0.314, allocations: 223.8 kB / 442 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000172/0.3142, allocations: 114.8 kB / 442.1 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.61e-05/0.3142, allocations: 15.08 kB / 442.2 MB, free: 35.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.149e-05/0.3142, allocations: 34.5 kB / 442.2 MB, free: 35.92 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.663e-06/0.3142, allocations: 0 / 442.2 MB, free: 35.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.00141/0.3157, allocations: 0.5729 MB / 442.8 MB, free: 35.67 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.581e-05/0.3157, allocations: 55.06 kB / 442.8 MB, free: 35.61 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007197/0.3164, allocations: 350.8 kB / 443.2 MB, free: 35.45 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.961e-05/0.3165, allocations: 29.7 kB / 443.2 MB, free: 35.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.096e-05/0.3165, allocations: 146 kB / 443.3 MB, free: 35.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.308e-05/0.3166, allocations: 75.62 kB / 443.4 MB, free: 35.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.832e-05/0.3167, allocations: 43.67 kB / 443.4 MB, free: 35.2 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.405e-05/0.3168, allocations: 337.4 kB / 443.8 MB, free: 34.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001729/0.3169, allocations: 95.42 kB / 443.9 MB, free: 34.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001385/0.3171, allocations: 98.44 kB / 444 MB, free: 34.81 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001795/0.3189, allocations: 0.629 MB / 444.6 MB, free: 34.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.3189, allocations: 0 / 444.6 MB, free: 34.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006696/0.3196, allocations: 420 kB / 445 MB, free: 34.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.3196, allocations: 2.875 kB / 445 MB, free: 34.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.3196, allocations: 0 / 445 MB, free: 34.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003319/0.32, allocations: 106.8 kB / 445.1 MB, free: 34.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001575/0.3201, allocations: 33.28 kB / 445.1 MB, free: 34.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00172/0.3219, allocations: 2.085 MB / 447.2 MB, free: 32.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003444/0.3222, allocations: 58.53 kB / 447.3 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.596e-05/0.3222, allocations: 4.438 kB / 447.3 MB, free: 32.68 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] 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.0001704/0.3224, allocations: 174.5 kB / 447.5 MB, free: 32.53 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.479e-05/0.3225, allocations: 31.77 kB / 447.5 MB, free: 32.51 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.293e-05/0.3226, allocations: 39.28 kB / 447.5 MB, free: 32.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.3226, allocations: 2.75 kB / 447.5 MB, free: 32.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.3226, allocations: 3.156 kB / 447.5 MB, free: 32.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.3226, allocations: 0 / 447.5 MB, free: 32.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002945/0.3229, allocations: 338.7 kB / 447.9 MB, free: 32.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.624e-06/0.3229, allocations: 6.625 kB / 447.9 MB, free: 32.22 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000193/0.3231, allocations: 25.95 kB / 447.9 MB, free: 32.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001911/0.3233, allocations: 71.17 kB / 448 MB, free: 32.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.365e-05/0.3233, allocations: 10.83 kB / 448 MB, free: 32.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001165/0.3245, allocations: 1.85 MB / 449.8 MB, free: 30.51 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.3245, allocations: 0 / 449.8 MB, free: 30.51 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007309/0.3253, allocations: 0.5439 MB / 450.4 MB, free: 30.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.353e-05/0.3253, allocations: 104.7 kB / 450.5 MB, free: 30.12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.799e-05/0.3254, allocations: 2.969 kB / 450.5 MB, free: 30.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003673/0.3257, allocations: 52.14 kB / 450.5 MB, free: 30.11 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.473e-05/0.3258, allocations: 22.89 kB / 450.6 MB, free: 30.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.365e-05/0.3258, allocations: 5.656 kB / 450.6 MB, free: 30.1 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005929/0.3264, allocations: 268.6 kB / 450.8 MB, free: 29.99 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.3264, allocations: 4 kB / 450.8 MB, free: 29.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003889/0.3268, allocations: 59.28 kB / 450.9 MB, free: 29.97 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 (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.0008868/0.3277, allocations: 1.092 MB / 452 MB, free: 29.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006317/0.3284, allocations: 406 kB / 452.4 MB, free: 28.96 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.043e-06/0.3284, allocations: 0 / 452.4 MB, free: 28.96 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003368/0.3287, allocations: 262.8 kB / 452.6 MB, free: 28.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003723/0.3291, allocations: 41.36 kB / 452.7 MB, free: 28.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004573/0.3337, allocations: 3.201 MB / 455.9 MB, free: 26.96 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001766/0.3339, allocations: 0.7748 MB / 456.6 MB, free: 26.26 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001279/0.334, allocations: 52.56 kB / 456.7 MB, free: 26.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001094/0.3341, allocations: 76.22 kB / 456.8 MB, free: 26.2 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.3342, allocations: 1.062 kB / 456.8 MB, free: 26.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03746/0.3716, allocations: 5.753 MB / 462.5 MB, free: 25.6 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.003/9.374, allocations: 5 kB / 462.5 MB, free: 25.6 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 & 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)