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.001505/0.001505, allocations: 108 kB / 15.61 MB, free: 148 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.001737/0.001737, allocations: 195.1 kB / 16.53 MB, free: 6.656 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.339/1.339, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1945/0.1945, allocations: 22.35 MB / 312.7 MB, free: 12.58 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 63.91 kB / 380.9 MB, free: 10.51 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2412/0.2425, allocations: 54.95 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.002414/0.245, allocations: 1.81 MB / 437.7 MB, free: 38.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008185/0.2458, allocations: 0.6071 MB / 438.3 MB, free: 38.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.746e-05/0.2459, allocations: 2.531 kB / 438.3 MB, free: 38.04 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002662/0.2462, allocations: 48.97 kB / 438.3 MB, free: 38.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000157/0.2463, allocations: 72.89 kB / 438.4 MB, free: 37.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002693/0.2466, allocations: 120.8 kB / 438.5 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002349/0.2469, allocations: 318.5 kB / 438.8 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001153/0.247, allocations: 42.89 kB / 438.9 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001202/0.2471, allocations: 135.9 kB / 439 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001764/0.2473, allocations: 155.1 kB / 439.2 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.346e-05/0.2474, allocations: 19.75 kB / 439.2 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.629e-05/0.2474, allocations: 22.38 kB / 439.2 MB, free: 37.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.758e-05/0.2475, allocations: 93.75 kB / 439.3 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.323e-05/0.2476, allocations: 104.5 kB / 439.4 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001694/0.2478, allocations: 243.1 kB / 439.6 MB, free: 37.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.494e-06/0.2478, allocations: 0 / 439.6 MB, free: 37.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.2478, allocations: 0 / 439.6 MB, free: 37.46 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.087e-06/0.2478, allocations: 0 / 439.6 MB, free: 37.46 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.001455/0.2493, allocations: 0.6867 MB / 440.3 MB, free: 36.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.019e-05/0.2493, allocations: 15.22 kB / 440.3 MB, free: 36.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.967e-05/0.2493, allocations: 44.94 kB / 440.4 MB, free: 36.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.742e-05/0.2494, allocations: 26.53 kB / 440.4 MB, free: 36.92 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007098/0.2501, allocations: 364.2 kB / 440.8 MB, free: 36.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.518e-05/0.2501, allocations: 10.22 kB / 440.8 MB, free: 36.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.212e-05/0.2502, allocations: 26.95 kB / 440.8 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002623/0.2504, allocations: 179.9 kB / 441 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.2505, allocations: 2.812 kB / 441 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.746e-05/0.2505, allocations: 7.938 kB / 441 MB, free: 36.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.2505, allocations: 2.844 kB / 441 MB, free: 36.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002848/0.2508, allocations: 169.1 kB / 441.2 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008895/0.2517, allocations: 0.6569 MB / 441.8 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002843/0.252, allocations: 209.2 kB / 442 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001528/0.2521, allocations: 117.8 kB / 442.1 MB, free: 35.99 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.788e-05/0.2522, allocations: 7.391 kB / 442.1 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.569e-05/0.2522, allocations: 34.5 kB / 442.2 MB, free: 35.94 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 2.034e-06/0.2522, allocations: 0 / 442.2 MB, free: 35.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001292/0.2535, allocations: 0.5776 MB / 442.8 MB, free: 35.69 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.447e-05/0.2535, allocations: 62.22 kB / 442.8 MB, free: 35.62 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000666/0.2542, allocations: 347.9 kB / 443.2 MB, free: 35.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.649e-05/0.2542, allocations: 29.7 kB / 443.2 MB, free: 35.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.707e-05/0.2543, allocations: 148.6 kB / 443.3 MB, free: 35.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.173e-05/0.2544, allocations: 75.03 kB / 443.4 MB, free: 35.24 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.463e-05/0.2544, allocations: 41.97 kB / 443.4 MB, free: 35.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.103e-05/0.2545, allocations: 335.3 kB / 443.8 MB, free: 34.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001523/0.2546, allocations: 102.2 kB / 443.9 MB, free: 34.85 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001275/0.2548, allocations: 95.22 kB / 444 MB, free: 34.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001744/0.2565, allocations: 0.6219 MB / 444.6 MB, free: 34.67 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.2565, allocations: 0 / 444.6 MB, free: 34.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0006722/0.2572, allocations: 426.7 kB / 445 MB, free: 34.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/0.2572, allocations: 4.812 kB / 445 MB, free: 34.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.2573, allocations: 2.812 kB / 445 MB, free: 34.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003063/0.2576, allocations: 107.2 kB / 445.1 MB, free: 34.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001486/0.2577, allocations: 30.91 kB / 445.1 MB, free: 34.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001562/0.2593, allocations: 2.085 MB / 447.2 MB, free: 32.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003417/0.2597, allocations: 52.14 kB / 447.3 MB, free: 32.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.458e-05/0.2597, allocations: 13.56 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.0001578/0.2598, allocations: 162.8 kB / 447.5 MB, free: 32.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.2e-05/0.2599, allocations: 26.62 kB / 447.5 MB, free: 32.53 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.262e-05/0.26, allocations: 46.47 kB / 447.5 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.26, allocations: 3.562 kB / 447.5 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.26, allocations: 0 / 447.5 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.85e-06/0.26, allocations: 3.234 kB / 447.5 MB, free: 32.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002867/0.2603, allocations: 342.9 kB / 447.9 MB, free: 32.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.2603, allocations: 0 / 447.9 MB, free: 32.24 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001951/0.2605, allocations: 29.36 kB / 447.9 MB, free: 32.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001894/0.2607, allocations: 70.75 kB / 448 MB, free: 32.21 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.297e-05/0.2607, allocations: 12.81 kB / 448 MB, free: 32.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001104/0.2618, allocations: 1.85 MB / 449.8 MB, free: 30.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2619, allocations: 0 / 449.8 MB, free: 30.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007104/0.2626, allocations: 0.5463 MB / 450.4 MB, free: 30.24 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.218e-05/0.2627, allocations: 100.8 kB / 450.5 MB, free: 30.13 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.699e-05/0.2627, allocations: 8.406 kB / 450.5 MB, free: 30.13 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000369/0.2631, allocations: 43.25 kB / 450.5 MB, free: 30.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.481e-05/0.2632, allocations: 24.92 kB / 450.5 MB, free: 30.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.332e-05/0.2632, allocations: 6.938 kB / 450.6 MB, free: 30.11 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005831/0.2638, allocations: 277.2 kB / 450.8 MB, free: 30 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.72e-07/0.2638, allocations: 0 / 450.8 MB, free: 30 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003744/0.2642, allocations: 62.59 kB / 450.9 MB, free: 29.98 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.0008572/0.265, allocations: 1.095 MB / 452 MB, free: 29.16 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006054/0.2656, allocations: 405.2 kB / 452.4 MB, free: 28.96 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2656, allocations: 0 / 452.4 MB, free: 28.96 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003319/0.266, allocations: 262.4 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.0003525/0.2663, allocations: 39.09 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.004487/0.2708, allocations: 3.198 MB / 455.9 MB, free: 26.97 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002207/0.2711, allocations: 0.7708 MB / 456.6 MB, free: 26.27 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001309/0.2712, allocations: 54.66 kB / 456.7 MB, free: 26.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000113/0.2713, allocations: 73.75 kB / 456.8 MB, free: 26.21 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2713, allocations: 0 / 456.8 MB, free: 26.21 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02928/0.3006, allocations: 5.762 MB / 462.5 MB, free: 25.61 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.16/12.46, allocations: 14.23 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 & /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)