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.00117/0.00117, allocations: 111.3 kB / 15.24 MB, free: 0.6484 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.001224/0.001224, allocations: 203.3 kB / 16.15 MB, free: 6.594 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.194/1.194, allocations: 222.9 MB / 239.8 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1681/0.1681, allocations: 22.35 MB / 312.3 MB, free: 12.65 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001161/0.001161, allocations: 63.91 kB / 380.2 MB, free: 11.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2132/0.2144, allocations: 54.95 MB / 435.2 MB, free: 39.45 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_control_structures.Smith_predictor): time 0.002175/0.2166, allocations: 1.855 MB / 437 MB, free: 38.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000694/0.2173, allocations: 0.6077 MB / 437.6 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.661e-05/0.2174, allocations: 6.344 kB / 437.6 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002363/0.2176, allocations: 49.83 kB / 437.7 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001336/0.2178, allocations: 57.8 kB / 437.7 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002007/0.218, allocations: 106.9 kB / 437.8 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001999/0.2182, allocations: 304.4 kB / 438.1 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.749e-05/0.2183, allocations: 46.67 kB / 438.2 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001007/0.2184, allocations: 119.1 kB / 438.3 MB, free: 37.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000153/0.2185, allocations: 154.1 kB / 438.4 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.491e-05/0.2186, allocations: 10.84 kB / 438.5 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.007e-05/0.2186, allocations: 12.69 kB / 438.5 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.437e-05/0.2187, allocations: 93.84 kB / 438.6 MB, free: 37.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.602e-05/0.2188, allocations: 85.22 kB / 438.6 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000137/0.2189, allocations: 230.9 kB / 438.9 MB, free: 37.23 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.2189, allocations: 0 / 438.9 MB, free: 37.23 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.42e-07/0.2189, allocations: 0 / 438.9 MB, free: 37.23 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.507e-06/0.2189, allocations: 0 / 438.9 MB, free: 37.23 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.00131/0.2203, allocations: 0.6938 MB / 439.6 MB, free: 36.74 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.886e-05/0.2203, allocations: 12.94 kB / 439.6 MB, free: 36.74 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.617e-05/0.2203, allocations: 51.5 kB / 439.6 MB, free: 36.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.694e-05/0.2204, allocations: 23.75 kB / 439.6 MB, free: 36.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006355/0.221, allocations: 367.7 kB / 440 MB, free: 36.42 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.169e-05/0.2211, allocations: 7.438 kB / 440 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.729e-05/0.2211, allocations: 16.09 kB / 440 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002408/0.2213, allocations: 176.1 kB / 440.2 MB, free: 36.33 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.2213, allocations: 3.234 kB / 440.2 MB, free: 36.33 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.644e-05/0.2214, allocations: 6.625 kB / 440.2 MB, free: 36.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.089e-06/0.2214, allocations: 6.75 kB / 440.2 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002517/0.2216, allocations: 175 kB / 440.4 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007876/0.2224, allocations: 0.6459 MB / 441 MB, free: 35.88 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002762/0.2227, allocations: 222.6 kB / 441.2 MB, free: 35.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001383/0.2229, allocations: 114.3 kB / 441.4 MB, free: 35.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.31e-05/0.2229, allocations: 7.344 kB / 441.4 MB, free: 35.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.133e-05/0.2229, allocations: 38.5 kB / 441.4 MB, free: 35.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.202e-06/0.2229, allocations: 0 / 441.4 MB, free: 35.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.00114/0.2241, allocations: 0.5741 MB / 442 MB, free: 35.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.69e-05/0.2241, allocations: 58.47 kB / 442 MB, free: 35.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000574/0.2247, allocations: 348.6 kB / 442.4 MB, free: 35.22 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.481e-05/0.2247, allocations: 29.7 kB / 442.4 MB, free: 35.19 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.763e-05/0.2247, allocations: 145.6 kB / 442.5 MB, free: 35.06 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.618e-05/0.2248, allocations: 72.22 kB / 442.6 MB, free: 35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.471e-05/0.2249, allocations: 48.72 kB / 442.7 MB, free: 34.97 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.338e-05/0.2249, allocations: 341.3 kB / 443 MB, free: 34.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001252/0.225, allocations: 90.56 kB / 443.1 MB, free: 34.61 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001173/0.2252, allocations: 95.86 kB / 443.2 MB, free: 34.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00161/0.2268, allocations: 0.6348 MB / 443.8 MB, free: 34.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2268, allocations: 0 / 443.8 MB, free: 34.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0005979/0.2274, allocations: 422.7 kB / 444.2 MB, free: 34.26 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.111e-05/0.2274, allocations: 8.406 kB / 444.2 MB, free: 34.26 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-06/0.2274, allocations: 0 / 444.2 MB, free: 34.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002723/0.2277, allocations: 101.7 kB / 444.3 MB, free: 34.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001292/0.2278, allocations: 40.55 kB / 444.4 MB, free: 34.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001325/0.2292, allocations: 1.906 MB / 446.3 MB, free: 32.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003045/0.2295, allocations: 58.73 kB / 446.3 MB, free: 32.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.405e-05/0.2295, allocations: 5.719 kB / 446.3 MB, free: 32.62 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.0001295/0.2296, allocations: 179.3 kB / 446.5 MB, free: 32.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.53e-05/0.2297, allocations: 24.12 kB / 446.5 MB, free: 32.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.561e-05/0.2298, allocations: 41.97 kB / 446.6 MB, free: 32.42 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.2298, allocations: 0 / 446.6 MB, free: 32.42 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.2298, allocations: 3.094 kB / 446.6 MB, free: 32.42 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.2298, allocations: 3.328 kB / 446.6 MB, free: 32.42 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00025/0.23, allocations: 334.1 kB / 446.9 MB, free: 32.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-06/0.23, allocations: 0 / 446.9 MB, free: 32.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001771/0.2302, allocations: 26.7 kB / 446.9 MB, free: 32.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001743/0.2304, allocations: 81.75 kB / 447 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.985e-05/0.2304, allocations: 9.734 kB / 447 MB, free: 32.14 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009612/0.2314, allocations: 1.673 MB / 448.7 MB, free: 30.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.2314, allocations: 6 kB / 448.7 MB, free: 30.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006485/0.2321, allocations: 0.5379 MB / 449.3 MB, free: 30.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.361e-05/0.2321, allocations: 107.3 kB / 449.4 MB, free: 30.23 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.313e-05/0.2322, allocations: 14.91 kB / 449.4 MB, free: 30.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003278/0.2325, allocations: 43.19 kB / 449.4 MB, free: 30.21 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.381e-05/0.2325, allocations: 14.77 kB / 449.4 MB, free: 30.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.218e-05/0.2326, allocations: 5.25 kB / 449.4 MB, free: 30.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004958/0.2331, allocations: 274.9 kB / 449.7 MB, free: 30.1 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2331, allocations: 3.938 kB / 449.7 MB, free: 30.09 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003324/0.2334, allocations: 57.72 kB / 449.8 MB, free: 30.08 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.0007689/0.2342, allocations: 1.093 MB / 450.9 MB, free: 29.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005067/0.2347, allocations: 388.3 kB / 451.2 MB, free: 29.07 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2347, allocations: 0 / 451.2 MB, free: 29.07 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003001/0.235, allocations: 260.4 kB / 451.5 MB, free: 28.92 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000308/0.2353, allocations: 37.42 kB / 451.5 MB, free: 28.9 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003856/0.2392, allocations: 3.258 MB / 454.8 MB, free: 27.01 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001478/0.2394, allocations: 0.7758 MB / 455.6 MB, free: 26.3 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001041/0.2395, allocations: 61.22 kB / 455.6 MB, free: 26.29 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.429e-05/0.2396, allocations: 71.67 kB / 455.7 MB, free: 26.24 MB / 350.1 MB Notification: Performance of SimCode: time 2.01e-07/0.2396, allocations: 0 / 455.7 MB, free: 26.24 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0144/0.254, allocations: 5.46 MB / 461.1 MB, free: 25.78 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001439/0.2542, allocations: 217 kB / 461.4 MB, free: 25.53 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.583/1.838, allocations: 0 / 461.4 MB, free: 25.53 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)