Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.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.ElecSys_power_frequency_control.BO_rigid_Islanded_generator,fileNamePrefix="AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_Islanded_generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator,fileNamePrefix="AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_Islanded_generator",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.001305/0.001305, 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.001372/0.001372, allocations: 195.8 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.092/1.092, allocations: 222.9 MB / 239.8 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.155/0.155, allocations: 22.36 MB / 312.3 MB, free: 12.69 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001023/0.001023, allocations: 63.89 kB / 380.2 MB, free: 11.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1837/0.1847, allocations: 54.95 MB / 435.2 MB, free: 39.44 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.001576/0.1864, allocations: 1.055 MB / 436.2 MB, free: 38.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009285/0.1873, allocations: 1.215 MB / 437.4 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.394e-05/0.1874, allocations: 3.938 kB / 437.4 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00023/0.1876, allocations: 33.33 kB / 437.5 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001081/0.1878, allocations: 37.61 kB / 437.5 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001336/0.1879, allocations: 80.17 kB / 437.6 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001596/0.1881, allocations: 203.4 kB / 437.8 MB, free: 37.72 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.577e-05/0.1881, allocations: 31.31 kB / 437.8 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.725e-05/0.1882, allocations: 79.84 kB / 437.9 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001064/0.1883, allocations: 86.86 kB / 438 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.149e-05/0.1884, allocations: 5.75 kB / 438 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.791e-05/0.1884, allocations: 9.156 kB / 438 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.929e-05/0.1884, allocations: 42.84 kB / 438 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.217e-05/0.1885, allocations: 54.19 kB / 438.1 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 8.616e-05/0.1886, allocations: 114.8 kB / 438.2 MB, free: 37.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.404e-06/0.1886, allocations: 0 / 438.2 MB, free: 37.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.21e-07/0.1886, allocations: 0 / 438.2 MB, free: 37.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.006e-06/0.1886, allocations: 0 / 438.2 MB, free: 37.54 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0007869/0.1894, allocations: 0.5168 MB / 438.7 MB, free: 37.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.764e-05/0.1894, allocations: 12.69 kB / 438.7 MB, free: 37.11 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.363e-05/0.1895, allocations: 37.84 kB / 438.8 MB, free: 37.06 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.952e-05/0.1895, allocations: 17.56 kB / 438.8 MB, free: 37.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003774/0.1899, allocations: 289.4 kB / 439.1 MB, free: 36.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.776e-06/0.1899, allocations: 15.38 kB / 439.1 MB, free: 36.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.984e-05/0.1899, allocations: 13.77 kB / 439.1 MB, free: 36.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001509/0.1901, allocations: 120.9 kB / 439.2 MB, free: 36.72 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.482e-06/0.1901, allocations: 0 / 439.2 MB, free: 36.72 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/0.1901, allocations: 10.78 kB / 439.2 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.1901, allocations: 2.875 kB / 439.2 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001436/0.1903, allocations: 84.88 kB / 439.3 MB, free: 36.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004899/0.1907, allocations: 0.583 MB / 439.9 MB, free: 36.19 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000274/0.191, allocations: 140.9 kB / 440 MB, free: 36.13 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.302e-05/0.1911, allocations: 52.19 kB / 440.1 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.22e-05/0.1911, allocations: 2.781 kB / 440.1 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.578e-06/0.1911, allocations: 34.56 kB / 440.1 MB, free: 36.06 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 9.82e-07/0.1912, allocations: 0 / 440.1 MB, free: 36.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002696/0.1914, allocations: 165.9 kB / 440.3 MB, free: 35.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.434e-05/0.1914, allocations: 51.41 kB / 440.3 MB, free: 35.92 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003371/0.1918, allocations: 248 kB / 440.6 MB, free: 35.79 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.416e-06/0.1918, allocations: 36.64 kB / 440.6 MB, free: 35.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.074e-05/0.1919, allocations: 120.8 kB / 440.7 MB, free: 35.64 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.137e-05/0.1919, allocations: 40.75 kB / 440.8 MB, free: 35.61 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.772e-05/0.1919, allocations: 26.25 kB / 440.8 MB, free: 35.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.471e-05/0.192, allocations: 327.4 kB / 441.1 MB, free: 35.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.799e-05/0.192, allocations: 37.53 kB / 441.2 MB, free: 35.26 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.626e-05/0.1921, allocations: 69.03 kB / 441.2 MB, free: 35.22 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000611/0.1927, allocations: 249.2 kB / 441.5 MB, free: 35.13 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.1927, allocations: 0 / 441.5 MB, free: 35.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001964/0.1929, allocations: 162.8 kB / 441.6 MB, free: 35.05 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.959e-06/0.193, allocations: 6.969 kB / 441.6 MB, free: 35.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.346e-06/0.193, allocations: 0 / 441.6 MB, free: 35.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.477e-06/0.193, allocations: 3.984 kB / 441.6 MB, free: 35.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.635e-05/0.1931, allocations: 26.73 kB / 441.7 MB, free: 35.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.1931, allocations: 3.938 kB / 441.7 MB, free: 35.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001574/0.1932, allocations: 43.39 kB / 441.7 MB, free: 35.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.775e-06/0.1933, allocations: 2.969 kB / 441.7 MB, free: 35.03 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: g.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Cps.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 (N.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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 8.585e-05/0.1933, allocations: 133.6 kB / 441.8 MB, free: 34.9 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.182e-05/0.1934, allocations: 16.19 kB / 441.9 MB, free: 34.89 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.447e-05/0.1934, allocations: 27.55 kB / 441.9 MB, free: 34.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.1934, allocations: 7.531 kB / 441.9 MB, free: 34.87 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.1934, allocations: 3.938 kB / 441.9 MB, free: 34.87 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.1934, allocations: 0 / 441.9 MB, free: 34.87 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001531/0.1936, allocations: 227.6 kB / 442.1 MB, free: 34.66 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.1936, allocations: 0 / 442.1 MB, free: 34.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001064/0.1937, allocations: 18.94 kB / 442.1 MB, free: 34.65 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.174e-06/0.1937, allocations: 3.125 kB / 442.1 MB, free: 34.65 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.17e-05/0.1937, allocations: 4 kB / 442.1 MB, free: 34.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.1937, allocations: 0 / 442.1 MB, free: 34.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.1938, allocations: 11.22 kB / 442.2 MB, free: 34.64 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002475/0.194, allocations: 282.8 kB / 442.4 MB, free: 34.45 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.979e-05/0.194, allocations: 97.64 kB / 442.5 MB, free: 34.35 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.222e-05/0.1941, allocations: 4 kB / 442.5 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001798/0.1943, allocations: 25.89 kB / 442.6 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.852e-05/0.1943, allocations: 7.172 kB / 442.6 MB, free: 34.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.511e-06/0.1943, allocations: 2.875 kB / 442.6 MB, free: 34.34 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002786/0.1946, allocations: 202.5 kB / 442.8 MB, free: 34.24 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1946, allocations: 0 / 442.8 MB, free: 34.24 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002077/0.1948, allocations: 23.62 kB / 442.8 MB, free: 34.23 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (N.y,Cps.x_scaled[1],g.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 (10): * Single equations (assignments): 10 * 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.0003566/0.1952, allocations: 0.8216 MB / 443.6 MB, free: 33.51 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001636/0.1953, allocations: 107.5 kB / 443.7 MB, free: 33.48 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.142e-06/0.1953, allocations: 0 / 443.7 MB, free: 33.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.496e-05/0.1954, allocations: 47.94 kB / 443.8 MB, free: 33.46 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002646/0.1957, allocations: 32.14 kB / 443.8 MB, free: 33.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001967/0.1977, allocations: 2.144 MB / 445.9 MB, free: 31.92 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001008/0.1978, allocations: 0.7272 MB / 446.7 MB, free: 31.22 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.704e-05/0.1978, allocations: 25.97 kB / 446.7 MB, free: 31.21 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.751e-05/0.1979, allocations: 43.47 kB / 446.7 MB, free: 31.18 MB / 350.1 MB Notification: Performance of SimCode: time 1.8e-07/0.1979, allocations: 0 / 446.7 MB, free: 31.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01176/0.2097, allocations: 2.905 MB / 449.6 MB, free: 30.88 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001049/0.2098, allocations: 222.5 kB / 449.8 MB, free: 30.63 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.281/1.491, allocations: 0 / 449.8 MB, free: 30.63 MB / 350.1 MB (rm -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe ; mkfifo AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe >> ../files/AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_Islanded_generator_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_Islanded_generator.fmu > AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe 2>&1)