Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.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_two_generators_PriSec,fileNamePrefix="AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_two_generators_PriSec",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec,fileNamePrefix="AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_two_generators_PriSec",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.001145/0.001145, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001099/0.001099, allocations: 191 kB / 16.25 MB, free: 6.637 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.162/1.162, allocations: 222.9 MB / 239.9 MB, free: 4.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1644/0.1644, allocations: 22.35 MB / 312.4 MB, free: 12.62 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001156/0.001156, allocations: 64.09 kB / 380.4 MB, free: 10.85 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1994/0.2005, allocations: 54.94 MB / 435.4 MB, free: 39.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec): time 0.002008/0.2026, allocations: 1.445 MB / 436.8 MB, free: 38.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001136/0.2037, allocations: 1.366 MB / 438.2 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.995e-05/0.2039, allocations: 7.031 kB / 438.2 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002842/0.2041, allocations: 67.05 kB / 438.2 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000189/0.2044, allocations: 84.05 kB / 438.3 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002149/0.2046, allocations: 158.2 kB / 438.5 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002599/0.2049, allocations: 369.4 kB / 438.8 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001331/0.205, allocations: 93.27 kB / 438.9 MB, free: 37.17 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001109/0.2051, allocations: 145.4 kB / 439.1 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001432/0.2053, allocations: 171.1 kB / 439.2 MB, free: 37.03 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.254e-05/0.2053, allocations: 18.94 kB / 439.2 MB, free: 37.03 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.795e-05/0.2053, allocations: 21.12 kB / 439.3 MB, free: 37.03 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.527e-05/0.2054, allocations: 75.25 kB / 439.3 MB, free: 36.99 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.591e-05/0.2055, allocations: 122.8 kB / 439.5 MB, free: 36.9 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001583/0.2056, allocations: 244.2 kB / 439.7 MB, free: 36.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.2057, allocations: 2.375 kB / 439.7 MB, free: 36.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.2057, allocations: 0 / 439.7 MB, free: 36.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.025e-05/0.2057, allocations: 0 / 439.7 MB, free: 36.79 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001154/0.2068, allocations: 0.6911 MB / 440.4 MB, free: 36.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.851e-05/0.2069, allocations: 8.562 kB / 440.4 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.382e-05/0.2069, allocations: 51.61 kB / 440.5 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.441e-05/0.207, allocations: 32.31 kB / 440.5 MB, free: 36.22 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005719/0.2075, allocations: 381.2 kB / 440.9 MB, free: 35.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.429e-05/0.2076, allocations: 17.83 kB / 440.9 MB, free: 35.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.536e-05/0.2076, allocations: 20.36 kB / 440.9 MB, free: 35.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002545/0.2078, allocations: 223.5 kB / 441.1 MB, free: 35.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.2079, allocations: 0 / 441.1 MB, free: 35.8 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.411e-05/0.2079, allocations: 7.938 kB / 441.1 MB, free: 35.79 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.2079, allocations: 2.531 kB / 441.1 MB, free: 35.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002198/0.2081, allocations: 153 kB / 441.3 MB, free: 35.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007766/0.2089, allocations: 0.9543 MB / 442.2 MB, free: 35 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000439/0.2093, allocations: 241.8 kB / 442.5 MB, free: 34.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001037/0.2095, allocations: 76.92 kB / 442.5 MB, free: 34.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.453e-05/0.2095, allocations: 3.438 kB / 442.5 MB, free: 34.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.13e-05/0.2095, allocations: 36.89 kB / 442.6 MB, free: 34.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.203e-06/0.2095, allocations: 4 kB / 442.6 MB, free: 34.83 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0003773/0.2099, allocations: 251.9 kB / 442.8 MB, free: 34.72 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.611e-05/0.2099, allocations: 57.41 kB / 442.9 MB, free: 34.66 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005355/0.2105, allocations: 374.2 kB / 443.2 MB, free: 34.49 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.216e-05/0.2105, allocations: 28.42 kB / 443.3 MB, free: 34.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.11e-05/0.2105, allocations: 176.7 kB / 443.4 MB, free: 34.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.374e-05/0.2106, allocations: 74.14 kB / 443.5 MB, free: 34.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.118e-05/0.2106, allocations: 48.67 kB / 443.6 MB, free: 34.22 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.384e-05/0.2107, allocations: 346.2 kB / 443.9 MB, free: 33.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.928e-05/0.2108, allocations: 64.36 kB / 444 MB, free: 33.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.994e-05/0.2109, allocations: 104.4 kB / 444.1 MB, free: 33.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008482/0.2117, allocations: 372.8 kB / 444.4 MB, free: 33.65 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2118, allocations: 4 kB / 444.4 MB, free: 33.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000291/0.2121, allocations: 253 kB / 444.7 MB, free: 33.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.008e-05/0.2121, allocations: 2.875 kB / 444.7 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.2121, allocations: 3 kB / 444.7 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.038e-05/0.2121, allocations: 3.094 kB / 444.7 MB, free: 33.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001648/0.2123, allocations: 44.2 kB / 444.7 MB, free: 33.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.612e-06/0.2123, allocations: 13.95 kB / 444.8 MB, free: 33.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002483/0.2125, allocations: 46.95 kB / 444.8 MB, free: 33.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.241e-05/0.2126, allocations: 9.516 kB / 444.8 MB, free: 33.5 MB / 350.1 MB Warning: Assuming fixed start value for the following 2 variables: g2.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] g1.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: 5 * Number of states: 0 () * Number of discrete variables: 2 (Cs.local_reset,N.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001127/0.2127, allocations: 153.4 kB / 445 MB, free: 33.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.328e-05/0.2127, allocations: 33.09 kB / 445 MB, free: 33.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.3e-05/0.2128, allocations: 45.61 kB / 445 MB, free: 33.31 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.2128, allocations: 3.938 kB / 445 MB, free: 33.31 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.995e-06/0.2128, allocations: 2.625 kB / 445 MB, free: 33.31 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.745e-06/0.2128, allocations: 0 / 445 MB, free: 33.31 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002197/0.213, allocations: 320.1 kB / 445.4 MB, free: 33.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.213, allocations: 0 / 445.4 MB, free: 33.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001695/0.2132, allocations: 33.28 kB / 445.4 MB, free: 33.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.2132, allocations: 0 / 445.4 MB, free: 33.06 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.613e-05/0.2132, allocations: 6.938 kB / 445.4 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.2132, allocations: 3.938 kB / 445.4 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.2132, allocations: 0 / 445.4 MB, free: 33.05 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003647/0.2136, allocations: 397 kB / 445.8 MB, free: 32.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.338e-05/0.2137, allocations: 112.5 kB / 445.9 MB, free: 32.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.243e-05/0.2137, allocations: 4 kB / 445.9 MB, free: 32.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002712/0.214, allocations: 36.16 kB / 445.9 MB, free: 32.69 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.498e-05/0.214, allocations: 16.48 kB / 445.9 MB, free: 32.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.756e-06/0.214, allocations: 2.906 kB / 446 MB, free: 32.69 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004596/0.2145, allocations: 283.2 kB / 446.2 MB, free: 32.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2145, allocations: 0 / 446.2 MB, free: 32.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002462/0.2148, allocations: 47.88 kB / 446.3 MB, free: 32.55 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (N.y,g1.x_scaled[1],g2.x_scaled[1],Cs.y) * 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 (20): * Single equations (assignments): 20 * 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.0004758/0.2152, allocations: 0.9225 MB / 447.2 MB, free: 31.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002678/0.2155, allocations: 192.1 kB / 447.4 MB, free: 31.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.2155, allocations: 0 / 447.4 MB, free: 31.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001021/0.2156, allocations: 89.05 kB / 447.5 MB, free: 31.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003445/0.216, allocations: 59.97 kB / 447.5 MB, free: 31.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003015/0.219, allocations: 2.962 MB / 450.5 MB, free: 29.76 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001344/0.2192, allocations: 0.7824 MB / 451.3 MB, free: 29.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.787e-05/0.2193, allocations: 39.12 kB / 451.3 MB, free: 29.05 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.706e-05/0.2194, allocations: 87.55 kB / 451.4 MB, free: 28.99 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.2194, allocations: 4 kB / 451.4 MB, free: 28.98 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0136/0.233, allocations: 4.819 MB / 456.2 MB, free: 28.57 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001377/0.2331, allocations: 224.4 kB / 456.4 MB, free: 28.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.541/1.774, allocations: 1.531 kB / 456.4 MB, free: 28.32 MB / 350.1 MB (rm -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe ; mkfifo AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe >> ../files/AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_two_generators_PriSec_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 AES_AES_Coursework_ElecSys_power_frequency_control_BO_rigid_two_generators_PriSec.fmu > AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec.pipe 2>&1)