Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.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_actuation_schemes.SplitRange_cascadeLoops,fileNamePrefix="AES_AES_Coursework_Typical_actuation_schemes_SplitRange_cascadeLoops",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops,fileNamePrefix="AES_AES_Coursework_Typical_actuation_schemes_SplitRange_cascadeLoops",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.001758/0.001758, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001769/0.001769, allocations: 196.9 kB / 16.14 MB, free: 6.703 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.096/1.096, allocations: 222.9 MB / 239.8 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1555/0.1555, allocations: 22.35 MB / 312.3 MB, free: 12.7 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001018/0.001018, allocations: 63.91 kB / 380.2 MB, free: 11.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1791/0.1802, allocations: 54.94 MB / 435.2 MB, free: 39.75 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops): time 0.002006/0.1822, allocations: 2.046 MB / 437.2 MB, free: 38.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006834/0.1829, allocations: 0.6724 MB / 437.9 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.387e-05/0.183, allocations: 6.5 kB / 437.9 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002595/0.1833, allocations: 66.25 kB / 438 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001684/0.1835, allocations: 85.05 kB / 438 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001818/0.1836, allocations: 144.9 kB / 438.2 MB, free: 37.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002536/0.1839, allocations: 442 kB / 438.6 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001102/0.184, allocations: 74.55 kB / 438.7 MB, free: 37.53 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001176/0.1841, allocations: 163.9 kB / 438.8 MB, free: 37.47 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001749/0.1843, allocations: 194.5 kB / 439 MB, free: 37.4 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.964e-05/0.1844, allocations: 16.31 kB / 439 MB, free: 37.4 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.235e-05/0.1844, allocations: 14.47 kB / 439.1 MB, free: 37.4 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.52e-05/0.1845, allocations: 95.91 kB / 439.2 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.794e-05/0.1846, allocations: 128.8 kB / 439.3 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001464/0.1847, allocations: 272.5 kB / 439.5 MB, free: 37.16 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1847, allocations: 0 / 439.5 MB, free: 37.16 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.12e-07/0.1847, allocations: 3.938 kB / 439.6 MB, free: 37.16 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.787e-06/0.1848, allocations: 0 / 439.6 MB, free: 37.16 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.001421/0.1862, allocations: 0.7621 MB / 440.3 MB, free: 36.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.824e-05/0.1862, allocations: 15.44 kB / 440.3 MB, free: 36.65 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.48e-05/0.1863, allocations: 51.56 kB / 440.4 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.77e-05/0.1863, allocations: 38.78 kB / 440.4 MB, free: 36.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006855/0.187, allocations: 420.4 kB / 440.8 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.08e-05/0.187, allocations: 14.45 kB / 440.8 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.085e-05/0.1871, allocations: 18.92 kB / 440.9 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002485/0.1873, allocations: 209.3 kB / 441.1 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.1873, allocations: 0 / 441.1 MB, free: 36.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.708e-05/0.1873, allocations: 12 kB / 441.1 MB, free: 36.19 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5e-06/0.1874, allocations: 9.781 kB / 441.1 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002751/0.1876, allocations: 197.9 kB / 441.3 MB, free: 36.13 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008322/0.1885, allocations: 0.699 MB / 442 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005427/0.189, allocations: 312.8 kB / 442.3 MB, free: 35.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001457/0.1892, allocations: 127.5 kB / 442.4 MB, free: 35.56 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.483e-05/0.1892, allocations: 6.625 kB / 442.4 MB, free: 35.56 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.046e-05/0.1892, allocations: 38 kB / 442.5 MB, free: 35.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.072e-06/0.1892, allocations: 0 / 442.5 MB, free: 35.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004934/0.1897, allocations: 366.1 kB / 442.8 MB, free: 35.37 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.566e-05/0.1898, allocations: 58.22 kB / 442.9 MB, free: 35.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006609/0.1904, allocations: 421.1 kB / 443.3 MB, free: 35.13 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.465e-05/0.1904, allocations: 29.7 kB / 443.3 MB, free: 35.1 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.168e-05/0.1905, allocations: 164.4 kB / 443.5 MB, free: 34.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.686e-05/0.1906, allocations: 98.02 kB / 443.6 MB, free: 34.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.636e-05/0.1906, allocations: 43.62 kB / 443.6 MB, free: 34.85 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.203e-05/0.1907, allocations: 341.7 kB / 443.9 MB, free: 34.53 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000126/0.1908, allocations: 95.36 kB / 444 MB, free: 34.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001165/0.1909, allocations: 96.39 kB / 444.1 MB, free: 34.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001897/0.1928, allocations: 0.6645 MB / 444.8 MB, free: 34.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1928, allocations: 4 kB / 444.8 MB, free: 34.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0003684/0.1932, allocations: 334.1 kB / 445.1 MB, free: 34.15 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.167e-06/0.1932, allocations: 5.25 kB / 445.1 MB, free: 34.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.317e-06/0.1932, allocations: 0 / 445.1 MB, free: 34.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.676e-06/0.1932, allocations: 0 / 445.1 MB, free: 34.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002198/0.1935, allocations: 47.62 kB / 445.2 MB, free: 34.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.1935, allocations: 2.656 kB / 445.2 MB, free: 34.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003097/0.1938, allocations: 65.08 kB / 445.2 MB, free: 34.13 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.604e-05/0.1938, allocations: 13.44 kB / 445.3 MB, free: 34.12 MB / 350.1 MB Warning: Assuming fixed start value for the following 7 variables: Act1.y:VARIABLE(flow=false start = Act1.y_start fixed = true ) "Connector of Real output signal" type: Real Act2.y:VARIABLE(flow=false start = Act2.y_start fixed = true ) "Connector of Real output signal" type: Real CA1.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] CA2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Cfb.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Process.x_scaled[2]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [2] Process.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 (31): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001325/0.194, allocations: 163 kB / 445.4 MB, free: 33.99 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.732e-05/0.194, allocations: 38.12 kB / 445.4 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004242/0.1944, allocations: 331.4 kB / 445.8 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.1944, allocations: 2.625 kB / 445.8 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.1945, allocations: 3.75 kB / 445.8 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.1945, allocations: 0 / 445.8 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002546/0.1947, allocations: 366.2 kB / 446.1 MB, free: 33.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1947, allocations: 7.938 kB / 446.1 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002651/0.195, allocations: 48.92 kB / 446.2 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.195, allocations: 0 / 446.2 MB, free: 33.55 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.112e-05/0.195, allocations: 9.859 kB / 446.2 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.195, allocations: 2.625 kB / 446.2 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.195, allocations: 0 / 446.2 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005015/0.1956, allocations: 0.5101 MB / 446.7 MB, free: 33.27 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.97e-05/0.1956, allocations: 117.1 kB / 446.8 MB, free: 33.16 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.095e-05/0.1957, allocations: 18.16 kB / 446.8 MB, free: 33.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003498/0.196, allocations: 48.06 kB / 446.9 MB, free: 33.14 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.339e-05/0.1961, allocations: 18.22 kB / 446.9 MB, free: 33.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.424e-05/0.1961, allocations: 9.125 kB / 446.9 MB, free: 33.14 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005574/0.1966, allocations: 327.7 kB / 447.2 MB, free: 33.01 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1966, allocations: 7.875 kB / 447.2 MB, free: 33 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002415/0.1969, allocations: 58.12 kB / 447.3 MB, free: 32.99 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (Process.x_scaled[1],Process.x_scaled[2],Cfb.x_scaled[1],Act1.y,Act2.y,CA2.x_scaled[1],CA1.x_scaled[1]) * 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 (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006216/0.1975, allocations: 1.071 MB / 448.4 MB, free: 32.17 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003263/0.1979, allocations: 256.7 kB / 448.6 MB, free: 32.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.343e-06/0.1979, allocations: 0 / 448.6 MB, free: 32.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001492/0.198, allocations: 129.6 kB / 448.8 MB, free: 32.05 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003584/0.1984, allocations: 59.23 kB / 448.8 MB, free: 32.04 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003756/0.2021, allocations: 3.46 MB / 452.3 MB, free: 30.05 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001439/0.2023, allocations: 0.7915 MB / 453.1 MB, free: 29.35 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001379/0.2024, allocations: 65.61 kB / 453.1 MB, free: 29.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001283/0.2026, allocations: 105.4 kB / 453.2 MB, free: 29.27 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.2026, allocations: 0 / 453.2 MB, free: 29.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01749/0.2201, allocations: 5.752 MB / 459 MB, free: 28.8 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001299/0.2202, allocations: 217.1 kB / 459.2 MB, free: 28.54 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.411/1.631, allocations: 0 / 459.2 MB, free: 28.54 MB / 350.1 MB (rm -f AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.pipe ; mkfifo AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.pipe ; head -c 1048576 < AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.pipe >> ../files/AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_Typical_actuation_schemes_SplitRange_cascadeLoops_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_Typical_actuation_schemes_SplitRange_cascadeLoops.fmu > AES_AES.Coursework.Typical_actuation_schemes.SplitRange_cascadeLoops.pipe 2>&1)