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.001175/0.001175, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001119/0.001119, allocations: 199.3 kB / 16.14 MB, free: 6.648 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.182/1.182, 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.174/0.174, allocations: 22.36 MB / 312.3 MB, free: 12.7 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001125/0.001125, allocations: 63.91 kB / 380.2 MB, free: 11.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1963/0.1974, allocations: 54.95 MB / 435.2 MB, free: 39.55 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec): time 0.001957/0.1994, allocations: 1.446 MB / 436.6 MB, free: 38.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001047/0.2005, allocations: 1.36 MB / 438 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.977e-05/0.2006, allocations: 6.75 kB / 438 MB, free: 37.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002778/0.2009, allocations: 64.09 kB / 438 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001742/0.2011, allocations: 89 kB / 438.1 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002123/0.2013, allocations: 160.3 kB / 438.3 MB, free: 37.42 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002441/0.2016, allocations: 350.7 kB / 438.6 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001242/0.2017, allocations: 82.42 kB / 438.7 MB, free: 37.25 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001067/0.2018, allocations: 139.8 kB / 438.8 MB, free: 37.19 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001443/0.202, allocations: 154.8 kB / 439 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.547e-05/0.202, allocations: 12.25 kB / 439 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.926e-05/0.202, allocations: 11.28 kB / 439 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.858e-05/0.2021, allocations: 70.56 kB / 439.1 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.83e-05/0.2022, allocations: 115.6 kB / 439.2 MB, free: 37.01 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001424/0.2023, allocations: 241.8 kB / 439.4 MB, free: 36.9 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.524e-06/0.2023, allocations: 0 / 439.4 MB, free: 36.9 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.72e-07/0.2023, allocations: 3.938 kB / 439.4 MB, free: 36.9 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.928e-06/0.2023, allocations: 0 / 439.4 MB, free: 36.9 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.001202/0.2036, allocations: 0.6903 MB / 440.1 MB, free: 36.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.944e-05/0.2036, allocations: 14.16 kB / 440.1 MB, free: 36.39 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.526e-05/0.2036, allocations: 47.44 kB / 440.2 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.359e-05/0.2037, allocations: 31.09 kB / 440.2 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005819/0.2043, allocations: 376.9 kB / 440.6 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.356e-05/0.2043, allocations: 17.11 kB / 440.6 MB, free: 36.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.599e-05/0.2043, allocations: 24.39 kB / 440.6 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002527/0.2046, allocations: 225.4 kB / 440.8 MB, free: 35.9 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.256e-06/0.2046, allocations: 0 / 440.8 MB, free: 35.9 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.45e-05/0.2046, allocations: 10.81 kB / 440.9 MB, free: 35.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.2046, allocations: 2.719 kB / 440.9 MB, free: 35.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002256/0.2048, allocations: 151.7 kB / 441 MB, free: 35.85 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007705/0.2056, allocations: 0.9578 MB / 442 MB, free: 35.1 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004609/0.2061, allocations: 242.9 kB / 442.2 MB, free: 35.01 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001105/0.2062, allocations: 77.66 kB / 442.3 MB, free: 34.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.566e-05/0.2062, allocations: 0 / 442.3 MB, free: 34.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.084e-05/0.2063, allocations: 37.44 kB / 442.3 MB, free: 34.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.022e-06/0.2063, allocations: 0 / 442.3 MB, free: 34.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0003918/0.2067, allocations: 260.2 kB / 442.6 MB, free: 34.82 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.52e-05/0.2067, allocations: 54 kB / 442.6 MB, free: 34.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005575/0.2072, allocations: 372.1 kB / 443 MB, free: 34.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.205e-05/0.2073, allocations: 29.7 kB / 443 MB, free: 34.56 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.408e-05/0.2073, allocations: 181.5 kB / 443.2 MB, free: 34.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.201e-05/0.2074, allocations: 67.2 kB / 443.3 MB, free: 34.35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.118e-05/0.2074, allocations: 46.81 kB / 443.3 MB, free: 34.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.399e-05/0.2075, allocations: 345 kB / 443.6 MB, free: 33.99 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001045/0.2076, allocations: 63.67 kB / 443.7 MB, free: 33.97 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001068/0.2077, allocations: 107.3 kB / 443.8 MB, free: 33.9 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008813/0.2086, allocations: 366.6 kB / 444.2 MB, free: 33.76 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.2086, allocations: 0 / 444.2 MB, free: 33.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003044/0.2089, allocations: 258.7 kB / 444.4 MB, free: 33.64 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.091e-05/0.2089, allocations: 5.531 kB / 444.4 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.2089, allocations: 2.812 kB / 444.4 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.042e-05/0.209, allocations: 2.938 kB / 444.4 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000163/0.2091, allocations: 47.97 kB / 444.5 MB, free: 33.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.2091, allocations: 2.938 kB / 444.5 MB, free: 33.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002517/0.2094, allocations: 49.83 kB / 444.5 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.23e-05/0.2094, allocations: 5.656 kB / 444.5 MB, free: 33.62 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.0001146/0.2095, allocations: 151.1 kB / 444.7 MB, free: 33.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.506e-05/0.2096, allocations: 29.81 kB / 444.7 MB, free: 33.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.263e-05/0.2096, allocations: 33.17 kB / 444.7 MB, free: 33.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.2096, allocations: 3.938 kB / 444.7 MB, free: 33.44 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.2096, allocations: 15.19 kB / 444.8 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.806e-06/0.2097, allocations: 3.375 kB / 444.8 MB, free: 33.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002295/0.2099, allocations: 321.2 kB / 445.1 MB, free: 33.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.2099, allocations: 0 / 445.1 MB, free: 33.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001745/0.2101, allocations: 37.2 kB / 445.1 MB, free: 33.17 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.2101, allocations: 2.812 kB / 445.1 MB, free: 33.17 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.416e-05/0.2101, allocations: 0 / 445.1 MB, free: 33.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/0.2101, allocations: 6.938 kB / 445.1 MB, free: 33.17 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.2101, allocations: 0 / 445.1 MB, free: 33.17 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003841/0.2105, allocations: 391.9 kB / 445.5 MB, free: 32.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.597e-05/0.2106, allocations: 112.5 kB / 445.6 MB, free: 32.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.373e-05/0.2106, allocations: 4 kB / 445.6 MB, free: 32.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002658/0.2109, allocations: 38.48 kB / 445.7 MB, free: 32.81 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.664e-05/0.2109, allocations: 13.16 kB / 445.7 MB, free: 32.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.987e-06/0.2109, allocations: 6.875 kB / 445.7 MB, free: 32.8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004743/0.2114, allocations: 286 kB / 446 MB, free: 32.68 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.2114, allocations: 0 / 446 MB, free: 32.68 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002493/0.2117, allocations: 49.94 kB / 446 MB, free: 32.66 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.0004992/0.2122, allocations: 0.925 MB / 446.9 MB, free: 31.9 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002469/0.2124, allocations: 167.4 kB / 447.1 MB, free: 31.85 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.2124, allocations: 4.25 kB / 447.1 MB, free: 31.85 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001064/0.2126, allocations: 85.91 kB / 447.2 MB, free: 31.82 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003486/0.2129, allocations: 55.67 kB / 447.2 MB, free: 31.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003096/0.216, allocations: 2.947 MB / 450.2 MB, free: 29.9 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001395/0.2162, allocations: 0.7812 MB / 451 MB, free: 29.19 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.986e-05/0.2163, allocations: 42 kB / 451 MB, free: 29.19 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001/0.2164, allocations: 85.27 kB / 451.1 MB, free: 29.12 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.2164, allocations: 0 / 451.1 MB, free: 29.12 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01226/0.2286, allocations: 4.697 MB / 455.8 MB, free: 28.71 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001423/0.2288, allocations: 224.5 kB / 456 MB, free: 28.46 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.578/1.807, allocations: 4 kB / 456 MB, free: 28.45 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)