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.0007606/0.0007607, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.004121/0.004121, allocations: 170.1 kB / 16.27 MB, free: 6.66 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.315/1.315, allocations: 223.3 MB / 240.3 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2115/0.2115, allocations: 22.34 MB / 313.8 MB, free: 13.06 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003021/0.0003021, allocations: 12 kB / 382.7 MB, free: 10.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2518/0.2521, allocations: 55.97 MB / 438.7 MB, free: 39.28 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Smith_predictor): time 0.001399/0.2536, allocations: 1.52 MB / 440.2 MB, free: 38.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007875/0.2544, allocations: 0.5986 MB / 440.8 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.152e-05/0.2544, allocations: 0 / 440.8 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002415/0.2547, allocations: 38.2 kB / 440.8 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001625/0.2549, allocations: 63.92 kB / 440.9 MB, free: 37.72 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002371/0.2551, allocations: 117.6 kB / 441 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002445/0.2554, allocations: 300.8 kB / 441.3 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001077/0.2555, allocations: 53.36 kB / 441.4 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001141/0.2556, allocations: 103 kB / 441.5 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001737/0.2558, allocations: 143.8 kB / 441.6 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.198e-05/0.2558, allocations: 8.5 kB / 441.6 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.524e-05/0.2559, allocations: 12.53 kB / 441.6 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.997e-05/0.256, allocations: 95.33 kB / 441.7 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.484e-05/0.256, allocations: 105.2 kB / 441.8 MB, free: 37.33 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001545/0.2562, allocations: 224.3 kB / 442 MB, free: 37.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.2562, allocations: 0 / 442 MB, free: 37.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2562, allocations: 0 / 442 MB, free: 37.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.2562, allocations: 0 / 442 MB, free: 37.25 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.001375/0.2576, allocations: 0.6518 MB / 442.7 MB, free: 36.8 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.264e-05/0.2577, allocations: 14.56 kB / 442.7 MB, free: 36.8 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.98e-05/0.2577, allocations: 47.69 kB / 442.7 MB, free: 36.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.465e-05/0.2577, allocations: 28.03 kB / 442.8 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006966/0.2585, allocations: 373 kB / 443.1 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.411e-05/0.2585, allocations: 9.062 kB / 443.1 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.389e-05/0.2585, allocations: 14.53 kB / 443.2 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002667/0.2588, allocations: 187.4 kB / 443.3 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.2588, allocations: 0 / 443.3 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.908e-05/0.2588, allocations: 7.328 kB / 443.3 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.2588, allocations: 3.188 kB / 443.3 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002698/0.2591, allocations: 173 kB / 443.5 MB, free: 36.33 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008952/0.26, allocations: 0.6577 MB / 444.2 MB, free: 35.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002867/0.2603, allocations: 214.8 kB / 444.4 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001567/0.2605, allocations: 118.2 kB / 444.5 MB, free: 35.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.835e-05/0.2605, allocations: 8.219 kB / 444.5 MB, free: 35.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.648e-05/0.2605, allocations: 34.5 kB / 444.5 MB, free: 35.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.373e-06/0.2606, allocations: 0 / 444.5 MB, free: 35.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001329/0.2619, allocations: 0.5753 MB / 445.1 MB, free: 35.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.26e-05/0.2619, allocations: 58.06 kB / 445.2 MB, free: 35.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006702/0.2626, allocations: 353.4 kB / 445.5 MB, free: 35.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.852e-05/0.2626, allocations: 25.7 kB / 445.5 MB, free: 35.24 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.22e-05/0.2627, allocations: 146.6 kB / 445.7 MB, free: 35.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.844e-05/0.2628, allocations: 78.62 kB / 445.8 MB, free: 35.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.7e-05/0.2628, allocations: 30.94 kB / 445.8 MB, free: 35.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.845e-05/0.2629, allocations: 337.2 kB / 446.1 MB, free: 34.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001401/0.263, allocations: 92.75 kB / 446.2 MB, free: 34.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000129/0.2632, allocations: 89.27 kB / 446.3 MB, free: 34.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001792/0.2649, allocations: 0.6426 MB / 446.9 MB, free: 34.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.265, allocations: 3.938 kB / 446.9 MB, free: 34.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006791/0.2656, allocations: 415.6 kB / 447.4 MB, free: 34.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.2657, allocations: 9.938 kB / 447.4 MB, free: 34.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.99e-06/0.2657, allocations: 0 / 447.4 MB, free: 34.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003149/0.266, allocations: 110.8 kB / 447.5 MB, free: 34.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00015/0.2662, allocations: 32 kB / 447.5 MB, free: 34.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001523/0.2677, allocations: 1.914 MB / 449.4 MB, free: 32.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003353/0.268, allocations: 59.72 kB / 449.5 MB, free: 32.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.524e-05/0.2681, allocations: 9.25 kB / 449.5 MB, free: 32.66 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.0001535/0.2682, allocations: 160.5 kB / 449.6 MB, free: 32.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.832e-05/0.2683, allocations: 22.59 kB / 449.7 MB, free: 32.51 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.157e-05/0.2684, allocations: 45.56 kB / 449.7 MB, free: 32.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.2684, allocations: 2.969 kB / 449.7 MB, free: 32.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.2684, allocations: 0 / 449.7 MB, free: 32.48 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.2684, allocations: 6.266 kB / 449.7 MB, free: 32.48 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002836/0.2687, allocations: 333.5 kB / 450 MB, free: 32.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.2687, allocations: 0 / 450 MB, free: 32.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001953/0.2689, allocations: 36.66 kB / 450.1 MB, free: 32.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001917/0.2691, allocations: 68.19 kB / 450.1 MB, free: 32.2 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.166e-05/0.2691, allocations: 11.41 kB / 450.2 MB, free: 32.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001072/0.2702, allocations: 1.68 MB / 451.8 MB, free: 30.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.2702, allocations: 6.281 kB / 451.8 MB, free: 30.67 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007139/0.2709, allocations: 0.543 MB / 452.4 MB, free: 30.39 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.812e-05/0.271, allocations: 105.5 kB / 452.5 MB, free: 30.28 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.252e-05/0.271, allocations: 6.688 kB / 452.5 MB, free: 30.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003725/0.2714, allocations: 46.17 kB / 452.5 MB, free: 30.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.704e-05/0.2715, allocations: 19.05 kB / 452.6 MB, free: 30.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.329e-05/0.2715, allocations: 11.28 kB / 452.6 MB, free: 30.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005859/0.2721, allocations: 272.6 kB / 452.8 MB, free: 30.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2721, allocations: 3.938 kB / 452.8 MB, free: 30.15 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003758/0.2725, allocations: 60.69 kB / 452.9 MB, free: 30.14 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.0008763/0.2734, allocations: 1.092 MB / 454 MB, free: 29.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005869/0.274, allocations: 395.2 kB / 454.4 MB, free: 29.12 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.274, allocations: 0 / 454.4 MB, free: 29.12 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000338/0.2743, allocations: 257.9 kB / 454.6 MB, free: 28.96 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003621/0.2747, allocations: 37.14 kB / 454.7 MB, free: 28.95 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004494/0.2792, allocations: 3.282 MB / 457.9 MB, free: 27.06 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001773/0.2794, allocations: 0.7789 MB / 458.7 MB, free: 26.35 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001171/0.2795, allocations: 54.3 kB / 458.8 MB, free: 26.35 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001095/0.2796, allocations: 74.81 kB / 458.9 MB, free: 26.29 MB / 350.1 MB Notification: Performance of SimCode: time 3.6e-07/0.2796, allocations: 0 / 458.9 MB, free: 26.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01608/0.2957, allocations: 5.339 MB / 464.2 MB, free: 25.93 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001427/0.2959, allocations: 213.8 kB / 464.4 MB, free: 25.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.049/2.344, allocations: 5.188 kB / 464.4 MB, free: 25.68 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/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)