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.001204/0.001204, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001184/0.001184, allocations: 194.6 kB / 16.25 MB, free: 6.629 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.168/1.168, allocations: 222.9 MB / 239.9 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.1666/0.1666, allocations: 22.36 MB / 312.4 MB, free: 12.68 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001113/0.001113, allocations: 67.89 kB / 380.4 MB, free: 10.9 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2041/0.2052, allocations: 54.93 MB / 435.3 MB, free: 39.58 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.001881/0.2071, allocations: 1.072 MB / 436.4 MB, free: 38.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001013/0.2082, allocations: 1.215 MB / 437.6 MB, free: 38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.551e-05/0.2083, allocations: 0 / 437.6 MB, free: 38 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000252/0.2085, allocations: 36.33 kB / 437.7 MB, free: 37.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001131/0.2087, allocations: 38.14 kB / 437.7 MB, free: 37.97 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001397/0.2088, allocations: 71.84 kB / 437.8 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001752/0.209, allocations: 222.8 kB / 438 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.143e-05/0.2091, allocations: 31.56 kB / 438 MB, free: 37.83 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.651e-05/0.2092, allocations: 93.23 kB / 438.1 MB, free: 37.79 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001107/0.2093, allocations: 87.41 kB / 438.2 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.272e-05/0.2093, allocations: 10.97 kB / 438.2 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.753e-05/0.2094, allocations: 10.06 kB / 438.2 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.075e-05/0.2094, allocations: 48.44 kB / 438.3 MB, free: 37.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.111e-05/0.2095, allocations: 51.64 kB / 438.3 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001044/0.2096, allocations: 124.2 kB / 438.4 MB, free: 37.65 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.2096, allocations: 0 / 438.4 MB, free: 37.65 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.2096, allocations: 4 kB / 438.4 MB, free: 37.64 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.217e-06/0.2096, allocations: 0 / 438.4 MB, free: 37.64 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.0008317/0.2104, allocations: 0.5186 MB / 439 MB, free: 37.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.909e-05/0.2105, allocations: 10.69 kB / 439 MB, free: 37.21 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.713e-05/0.2105, allocations: 40.62 kB / 439 MB, free: 37.17 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.078e-05/0.2105, allocations: 14.38 kB / 439 MB, free: 37.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003989/0.2109, allocations: 285.4 kB / 439.3 MB, free: 36.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.194e-05/0.211, allocations: 7.781 kB / 439.3 MB, free: 36.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.997e-05/0.211, allocations: 18.05 kB / 439.3 MB, free: 36.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001671/0.2112, allocations: 129 kB / 439.5 MB, free: 36.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.131e-06/0.2112, allocations: 0 / 439.5 MB, free: 36.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.014e-05/0.2112, allocations: 4 kB / 439.5 MB, free: 36.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.2112, allocations: 2.625 kB / 439.5 MB, free: 36.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001513/0.2113, allocations: 90.67 kB / 439.6 MB, free: 36.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005079/0.2119, allocations: 0.5778 MB / 440.1 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002756/0.2122, allocations: 143.2 kB / 440.3 MB, free: 36.24 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.274e-05/0.2122, allocations: 50.66 kB / 440.3 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.034e-05/0.2123, allocations: 2.688 kB / 440.3 MB, free: 36.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.558e-06/0.2123, allocations: 34.03 kB / 440.4 MB, free: 36.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.082e-06/0.2123, allocations: 0 / 440.4 MB, free: 36.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0002773/0.2126, allocations: 168.8 kB / 440.5 MB, free: 36.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.594e-05/0.2126, allocations: 57.91 kB / 440.6 MB, free: 36.03 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003553/0.2129, allocations: 259.6 kB / 440.8 MB, free: 35.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.447e-06/0.213, allocations: 29.7 kB / 440.9 MB, free: 35.85 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.925e-05/0.213, allocations: 119.3 kB / 441 MB, free: 35.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.089e-05/0.213, allocations: 37.34 kB / 441 MB, free: 35.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.255e-05/0.2131, allocations: 32.22 kB / 441 MB, free: 35.69 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.77e-05/0.2131, allocations: 327 kB / 441.4 MB, free: 35.37 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.77e-05/0.2132, allocations: 37.2 kB / 441.4 MB, free: 35.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.976e-05/0.2133, allocations: 65.34 kB / 441.5 MB, free: 35.32 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006275/0.2139, allocations: 244.2 kB / 441.7 MB, free: 35.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.2139, allocations: 2.625 kB / 441.7 MB, free: 35.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002003/0.2141, allocations: 167 kB / 441.9 MB, free: 35.15 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.457e-06/0.2141, allocations: 5.25 kB / 441.9 MB, free: 35.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.526e-06/0.2141, allocations: 2.562 kB / 441.9 MB, free: 35.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.997e-06/0.2142, allocations: 0 / 441.9 MB, free: 35.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001007/0.2143, allocations: 23.2 kB / 441.9 MB, free: 35.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.2143, allocations: 3.938 kB / 441.9 MB, free: 35.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001757/0.2144, allocations: 37.84 kB / 441.9 MB, free: 35.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.185e-06/0.2145, allocations: 3.688 kB / 441.9 MB, free: 35.14 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 9.092e-05/0.2146, allocations: 139.6 kB / 442.1 MB, free: 35 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.215e-05/0.2146, allocations: 13.16 kB / 442.1 MB, free: 35 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.854e-05/0.2146, allocations: 30.38 kB / 442.1 MB, free: 34.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.2146, allocations: 0 / 442.1 MB, free: 34.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.2147, allocations: 3.938 kB / 442.1 MB, free: 34.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.2147, allocations: 2.688 kB / 442.1 MB, free: 34.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001553/0.2148, allocations: 228.9 kB / 442.4 MB, free: 34.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.2148, allocations: 0 / 442.4 MB, free: 34.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001135/0.2149, allocations: 21 kB / 442.4 MB, free: 34.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.215, allocations: 6.875 kB / 442.4 MB, free: 34.76 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.243e-05/0.215, allocations: 7.938 kB / 442.4 MB, free: 34.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.215, allocations: 0 / 442.4 MB, free: 34.75 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.215, allocations: 7.875 kB / 442.4 MB, free: 34.74 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002588/0.2152, allocations: 289.7 kB / 442.7 MB, free: 34.55 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.003e-05/0.2153, allocations: 94.67 kB / 442.8 MB, free: 34.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.314e-05/0.2153, allocations: 8 kB / 442.8 MB, free: 34.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001987/0.2155, allocations: 25.16 kB / 442.8 MB, free: 34.44 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.883e-05/0.2156, allocations: 10.84 kB / 442.8 MB, free: 34.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.911e-06/0.2156, allocations: 0 / 442.8 MB, free: 34.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003028/0.2159, allocations: 204 kB / 443 MB, free: 34.33 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2159, allocations: 0 / 443 MB, free: 34.33 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002212/0.2161, allocations: 17 kB / 443 MB, free: 34.33 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.0003595/0.2165, allocations: 0.8129 MB / 443.8 MB, free: 33.62 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001821/0.2167, allocations: 117.3 kB / 444 MB, free: 33.58 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.2167, allocations: 0 / 444 MB, free: 33.58 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.911e-05/0.2167, allocations: 50.45 kB / 444 MB, free: 33.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002796/0.217, allocations: 31.28 kB / 444 MB, free: 33.55 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002082/0.2191, allocations: 2.139 MB / 446.2 MB, free: 32.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001049/0.2192, allocations: 0.7278 MB / 446.9 MB, free: 31.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.862e-05/0.2193, allocations: 24.58 kB / 446.9 MB, free: 31.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.04e-05/0.2194, allocations: 43.95 kB / 447 MB, free: 31.29 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2194, allocations: 0 / 447 MB, free: 31.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01152/0.2309, allocations: 2.993 MB / 450 MB, free: 30.99 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001388/0.2311, allocations: 231.3 kB / 450.2 MB, free: 30.72 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.697/1.928, allocations: 3.375 kB / 450.2 MB, free: 30.72 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)