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.0009818/0.0009817, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001029/0.001029, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.372/1.372, allocations: 223.2 MB / 239.9 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2192/0.2192, allocations: 22.34 MB / 313.3 MB, free: 13.16 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000403/0.0004032, allocations: 8 kB / 381.9 MB, free: 10.46 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2965/0.2969, allocations: 55.97 MB / 437.9 MB, free: 39.2 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec): time 0.001342/0.2983, allocations: 1.041 MB / 438.9 MB, free: 38.47 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001388/0.2997, allocations: 1.34 MB / 440.3 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001165/0.2998, allocations: 9.281 kB / 440.3 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003269/0.3001, allocations: 57.38 kB / 440.3 MB, free: 37.47 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002032/0.3004, allocations: 90.2 kB / 440.4 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002481/0.3006, allocations: 139.2 kB / 440.6 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000255/0.3009, allocations: 221.9 kB / 440.8 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001542/0.3011, allocations: 65.84 kB / 440.8 MB, free: 37.24 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001777/0.3012, allocations: 145.7 kB / 441 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001596/0.3014, allocations: 126 kB / 441.1 MB, free: 37.13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.711e-05/0.3014, allocations: 10.34 kB / 441.1 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.876e-05/0.3015, allocations: 9 kB / 441.1 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.956e-05/0.3016, allocations: 57.92 kB / 441.2 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.168e-05/0.3016, allocations: 58.33 kB / 441.2 MB, free: 37.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001479/0.3018, allocations: 173.4 kB / 441.4 MB, free: 37 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.846e-06/0.3018, allocations: 0 / 441.4 MB, free: 37 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.3018, allocations: 0 / 441.4 MB, free: 37 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.3018, allocations: 0 / 441.4 MB, free: 37 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.001267/0.3031, allocations: 0.6553 MB / 442.1 MB, free: 36.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.3031, allocations: 8.719 kB / 442.1 MB, free: 36.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.422e-05/0.3032, allocations: 63.09 kB / 442.1 MB, free: 36.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.867e-05/0.3032, allocations: 32.56 kB / 442.2 MB, free: 36.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006474/0.3039, allocations: 370.4 kB / 442.5 MB, free: 36.19 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.873e-05/0.3039, allocations: 22.05 kB / 442.6 MB, free: 36.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.292e-05/0.3039, allocations: 23.78 kB / 442.6 MB, free: 36.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002756/0.3042, allocations: 214.1 kB / 442.8 MB, free: 36.03 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.258e-06/0.3042, allocations: 0 / 442.8 MB, free: 36.03 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.745e-05/0.3043, allocations: 6.531 kB / 442.8 MB, free: 36.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.3043, allocations: 9.156 kB / 442.8 MB, free: 36.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002425/0.3045, allocations: 149.5 kB / 442.9 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009/0.3054, allocations: 0.9493 MB / 443.9 MB, free: 35.24 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004924/0.3059, allocations: 254.7 kB / 444.1 MB, free: 35.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.366e-05/0.3059, allocations: 2.906 kB / 444.1 MB, free: 35.14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.012e-05/0.306, allocations: 34.56 kB / 444.2 MB, free: 35.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.312e-06/0.306, allocations: 0 / 444.2 MB, free: 35.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004273/0.3064, allocations: 258.8 kB / 444.4 MB, free: 34.98 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.559e-05/0.3064, allocations: 54.44 kB / 444.5 MB, free: 34.92 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006062/0.3071, allocations: 377.2 kB / 444.9 MB, free: 34.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.645e-05/0.3071, allocations: 29.7 kB / 444.9 MB, free: 34.72 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.667e-05/0.3072, allocations: 174 kB / 445.1 MB, free: 34.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.261e-05/0.3072, allocations: 78.14 kB / 445.1 MB, free: 34.51 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.826e-06/0.3072, allocations: 4 kB / 445.1 MB, free: 34.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.275e-05/0.3073, allocations: 341.7 kB / 445.5 MB, free: 34.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001037/0.3074, allocations: 62.62 kB / 445.5 MB, free: 34.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00011/0.3075, allocations: 98.05 kB / 445.6 MB, free: 34.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001279/0.3077, allocations: 80.55 kB / 445.7 MB, free: 34.06 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-06/0.3077, allocations: 7.766 kB / 445.7 MB, free: 34.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003118/0.308, allocations: 248.8 kB / 446 MB, free: 33.94 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.308, allocations: 9.125 kB / 446 MB, free: 33.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.381e-06/0.308, allocations: 0 / 446 MB, free: 33.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.3081, allocations: 3.031 kB / 446 MB, free: 33.94 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001729/0.3082, allocations: 45.19 kB / 446 MB, free: 33.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.3082, allocations: 4.125 kB / 446 MB, free: 33.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002605/0.3085, allocations: 47.98 kB / 446.1 MB, free: 33.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.397e-05/0.3085, allocations: 5.5 kB / 446.1 MB, free: 33.92 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001442/0.3087, allocations: 162.8 kB / 446.2 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.506e-05/0.3087, allocations: 33.11 kB / 446.3 MB, free: 33.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.991e-05/0.3088, allocations: 33.92 kB / 446.3 MB, free: 33.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.3088, allocations: 2.562 kB / 446.3 MB, free: 33.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.101e-06/0.3088, allocations: 0 / 446.3 MB, free: 33.73 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.3088, allocations: 3.938 kB / 446.3 MB, free: 33.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002782/0.3091, allocations: 324.7 kB / 446.6 MB, free: 33.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.3091, allocations: 3.953 kB / 446.6 MB, free: 33.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001785/0.3093, allocations: 38.23 kB / 446.7 MB, free: 33.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.083e-06/0.3093, allocations: 0 / 446.7 MB, free: 33.46 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.559e-05/0.3093, allocations: 6.906 kB / 446.7 MB, free: 33.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.3093, allocations: 3.234 kB / 446.7 MB, free: 33.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.3094, allocations: 0 / 446.7 MB, free: 33.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004061/0.3098, allocations: 385.5 kB / 447 MB, free: 33.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.671e-05/0.3098, allocations: 111 kB / 447.1 MB, free: 33.12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.511e-05/0.3099, allocations: 6.781 kB / 447.2 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002774/0.3102, allocations: 39.59 kB / 447.2 MB, free: 33.11 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.823e-05/0.3102, allocations: 13.94 kB / 447.2 MB, free: 33.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.887e-06/0.3102, allocations: 6.906 kB / 447.2 MB, free: 33.1 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004887/0.3107, allocations: 286.1 kB / 447.5 MB, free: 32.98 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3107, allocations: 2.875 kB / 447.5 MB, free: 32.98 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002604/0.311, allocations: 40.22 kB / 447.5 MB, free: 32.97 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005637/0.3116, allocations: 0.9298 MB / 448.5 MB, free: 32.2 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002609/0.3118, allocations: 167.5 kB / 448.6 MB, free: 32.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.3118, allocations: 0 / 448.6 MB, free: 32.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001097/0.312, allocations: 81.31 kB / 448.7 MB, free: 32.13 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003081/0.3123, allocations: 55.72 kB / 448.8 MB, free: 32.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002979/0.3153, allocations: 2.468 MB / 451.2 MB, free: 30.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001887/0.3155, allocations: 0.7867 MB / 452 MB, free: 29.87 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001081/0.3156, allocations: 38.84 kB / 452.1 MB, free: 29.86 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001087/0.3157, allocations: 91.28 kB / 452.1 MB, free: 29.8 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3157, allocations: 0 / 452.1 MB, free: 29.8 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01483/0.3305, allocations: 4.673 MB / 456.8 MB, free: 29.49 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001575/0.3307, allocations: 202.7 kB / 457 MB, free: 29.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.68/2.01, allocations: 0 / 457 MB, free: 29.25 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/linux/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) Environment - environmentSimulation: