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.00116/0.00116, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.0009214/0.0009213, allocations: 192.1 kB / 16.25 MB, free: 6.633 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.178/1.178, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1666/0.1666, allocations: 22.34 MB / 312.4 MB, free: 12.56 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001153, allocations: 59.91 kB / 380.4 MB, free: 10.9 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2106/0.2118, allocations: 54.93 MB / 435.3 MB, free: 39.55 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Smith_predictor): time 0.002192/0.2141, allocations: 1.869 MB / 437.2 MB, free: 38.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000715/0.2148, allocations: 0.6055 MB / 437.8 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.97e-05/0.2149, allocations: 6.625 kB / 437.8 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002522/0.2151, allocations: 42.59 kB / 437.9 MB, free: 37.81 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00014/0.2153, allocations: 63.17 kB / 437.9 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002255/0.2155, allocations: 107.3 kB / 438 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000216/0.2157, allocations: 315 kB / 438.3 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001008/0.2158, allocations: 47.77 kB / 438.4 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001075/0.216, allocations: 135.1 kB / 438.5 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001588/0.2161, allocations: 161.2 kB / 438.7 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.349e-05/0.2162, allocations: 17.88 kB / 438.7 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.808e-05/0.2162, allocations: 21.59 kB / 438.7 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.228e-05/0.2163, allocations: 107 kB / 438.8 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.781e-05/0.2164, allocations: 103.1 kB / 438.9 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001442/0.2165, allocations: 235.7 kB / 439.1 MB, free: 37.26 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.2165, allocations: 0 / 439.1 MB, free: 37.26 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2165, allocations: 0 / 439.1 MB, free: 37.26 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.2165, allocations: 0 / 439.1 MB, free: 37.26 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.001343/0.2179, allocations: 0.6849 MB / 439.8 MB, free: 36.79 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.932e-05/0.2179, allocations: 15.97 kB / 439.8 MB, free: 36.78 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.441e-05/0.2179, allocations: 48.14 kB / 439.9 MB, free: 36.73 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.199e-05/0.218, allocations: 23.09 kB / 439.9 MB, free: 36.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006359/0.2186, allocations: 365 kB / 440.3 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.021e-05/0.2187, allocations: 10.22 kB / 440.3 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.037e-05/0.2187, allocations: 13.38 kB / 440.3 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002468/0.2189, allocations: 183.8 kB / 440.5 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.219, allocations: 0 / 440.5 MB, free: 36.38 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.568e-05/0.219, allocations: 6.844 kB / 440.5 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.219, allocations: 6.812 kB / 440.5 MB, free: 36.37 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002467/0.2192, allocations: 180.2 kB / 440.7 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007921/0.22, allocations: 0.6507 MB / 441.3 MB, free: 35.92 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002503/0.2203, allocations: 213.9 kB / 441.5 MB, free: 35.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000136/0.2204, allocations: 114.3 kB / 441.6 MB, free: 35.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.821e-05/0.2205, allocations: 11 kB / 441.6 MB, free: 35.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.189e-05/0.2205, allocations: 41.92 kB / 441.7 MB, free: 35.74 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.092e-06/0.2205, allocations: 0 / 441.7 MB, free: 35.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001154/0.2217, allocations: 0.5681 MB / 442.2 MB, free: 35.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.624e-05/0.2217, allocations: 54.28 kB / 442.3 MB, free: 35.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005773/0.2223, allocations: 352.6 kB / 442.6 MB, free: 35.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.645e-05/0.2223, allocations: 29.7 kB / 442.7 MB, free: 35.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.874e-05/0.2224, allocations: 146.5 kB / 442.8 MB, free: 35.1 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.641e-05/0.2224, allocations: 70.12 kB / 442.9 MB, free: 35.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.711e-05/0.2225, allocations: 46.45 kB / 442.9 MB, free: 35.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.579e-05/0.2225, allocations: 338.7 kB / 443.3 MB, free: 34.69 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001247/0.2226, allocations: 95.81 kB / 443.4 MB, free: 34.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001152/0.2228, allocations: 92.67 kB / 443.4 MB, free: 34.63 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001631/0.2244, allocations: 0.6301 MB / 444.1 MB, free: 34.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.2244, allocations: 3.031 kB / 444.1 MB, free: 34.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006063/0.225, allocations: 423.7 kB / 444.5 MB, free: 34.31 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.099e-05/0.225, allocations: 2.812 kB / 444.5 MB, free: 34.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.768e-06/0.2251, allocations: 4 kB / 444.5 MB, free: 34.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002728/0.2253, allocations: 105 kB / 444.6 MB, free: 34.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001338/0.2255, allocations: 32.56 kB / 444.6 MB, free: 34.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001355/0.2268, allocations: 2.092 MB / 446.7 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003052/0.2272, allocations: 54.47 kB / 446.8 MB, free: 32.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.431e-05/0.2272, allocations: 5.031 kB / 446.8 MB, free: 32.49 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.0001294/0.2273, allocations: 169.3 kB / 446.9 MB, free: 32.35 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.529e-05/0.2274, allocations: 26.53 kB / 447 MB, free: 32.33 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.297e-05/0.2274, allocations: 38.06 kB / 447 MB, free: 32.31 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.2274, allocations: 3.781 kB / 447 MB, free: 32.31 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.915e-06/0.2274, allocations: 3.938 kB / 447 MB, free: 32.3 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.2275, allocations: 3.797 kB / 447 MB, free: 32.3 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002483/0.2277, allocations: 342.2 kB / 447.4 MB, free: 32.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.2277, allocations: 4 kB / 447.4 MB, free: 32.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001819/0.2279, allocations: 30.69 kB / 447.4 MB, free: 32.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001724/0.2281, allocations: 68.98 kB / 447.5 MB, free: 32.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.135e-05/0.2281, allocations: 10.64 kB / 447.5 MB, free: 32.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009941/0.2291, allocations: 1.855 MB / 449.3 MB, free: 30.32 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.2291, allocations: 0 / 449.3 MB, free: 30.32 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006341/0.2298, allocations: 0.5425 MB / 449.9 MB, free: 30.04 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.175e-05/0.2298, allocations: 104.6 kB / 450 MB, free: 29.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.4e-05/0.2299, allocations: 11.69 kB / 450 MB, free: 29.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003322/0.2302, allocations: 45.09 kB / 450 MB, free: 29.92 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.38e-05/0.2303, allocations: 19.48 kB / 450 MB, free: 29.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.316e-05/0.2303, allocations: 11.23 kB / 450.1 MB, free: 29.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004982/0.2308, allocations: 270.5 kB / 450.3 MB, free: 29.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2308, allocations: 0 / 450.3 MB, free: 29.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003314/0.2311, allocations: 58.62 kB / 450.4 MB, free: 29.79 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.0008327/0.232, allocations: 1.097 MB / 451.5 MB, free: 28.97 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005965/0.2326, allocations: 403.7 kB / 451.9 MB, free: 28.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.2326, allocations: 0 / 451.9 MB, free: 28.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003353/0.2329, allocations: 263.1 kB / 452.1 MB, free: 28.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003423/0.2333, allocations: 37.92 kB / 452.2 MB, free: 28.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003957/0.2372, allocations: 3.251 MB / 455.4 MB, free: 26.71 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001523/0.2374, allocations: 0.7792 MB / 456.2 MB, free: 26 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001063/0.2375, allocations: 58.3 kB / 456.2 MB, free: 25.99 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.386e-05/0.2376, allocations: 77.19 kB / 456.3 MB, free: 25.94 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2376, allocations: 3.938 kB / 456.3 MB, free: 25.93 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01837/0.256, allocations: 5.665 MB / 462 MB, free: 25.46 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001343/0.2562, allocations: 218.2 kB / 462.2 MB, free: 25.21 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.676/1.932, allocations: 0 / 462.2 MB, free: 25.21 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)