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.0009824/0.0009823, allocations: 90.67 kB / 15.36 MB, free: 0.7383 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.007377/0.007377, allocations: 172.8 kB / 16.26 MB, free: 6.613 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.291/1.291, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1855/0.1855, allocations: 22.34 MB / 313.8 MB, free: 13.12 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004612/0.0004612, allocations: 8 kB / 382.7 MB, free: 10.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2815/0.282, allocations: 55.97 MB / 438.7 MB, free: 39.31 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec): time 0.001217/0.2832, allocations: 1.089 MB / 439.8 MB, free: 38.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001243/0.2845, allocations: 1.355 MB / 441.1 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001157/0.2846, allocations: 6.438 kB / 441.1 MB, free: 37.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002883/0.2849, allocations: 69.33 kB / 441.2 MB, free: 37.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002021/0.2851, allocations: 79.06 kB / 441.3 MB, free: 37.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002389/0.2854, allocations: 163.5 kB / 441.4 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000284/0.2857, allocations: 350.3 kB / 441.8 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001377/0.2858, allocations: 87.61 kB / 441.9 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001184/0.286, allocations: 122.2 kB / 442 MB, free: 37.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000167/0.2861, allocations: 148.3 kB / 442.1 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.002e-05/0.2862, allocations: 7.281 kB / 442.1 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.516e-05/0.2862, allocations: 7.844 kB / 442.1 MB, free: 37.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.821e-05/0.2863, allocations: 53.59 kB / 442.2 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.741e-05/0.2864, allocations: 135.8 kB / 442.3 MB, free: 36.98 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001621/0.2865, allocations: 227.5 kB / 442.5 MB, free: 36.89 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.2865, allocations: 0 / 442.5 MB, free: 36.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.2865, allocations: 3.234 kB / 442.5 MB, free: 36.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.2866, allocations: 4 kB / 442.6 MB, free: 36.89 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.001301/0.2879, allocations: 0.6424 MB / 443.2 MB, free: 36.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.425e-05/0.2879, allocations: 15.28 kB / 443.2 MB, free: 36.41 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.947e-05/0.288, allocations: 55.55 kB / 443.3 MB, free: 36.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.873e-05/0.288, allocations: 35.88 kB / 443.3 MB, free: 36.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006591/0.2887, allocations: 382.4 kB / 443.7 MB, free: 36.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.79e-05/0.2887, allocations: 16.42 kB / 443.7 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.267e-05/0.2887, allocations: 19.16 kB / 443.7 MB, free: 36.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002987/0.289, allocations: 224 kB / 443.9 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.2891, allocations: 0 / 443.9 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.886e-05/0.2891, allocations: 6.812 kB / 443.9 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.2891, allocations: 9.688 kB / 443.9 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002525/0.2894, allocations: 156.4 kB / 444.1 MB, free: 35.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008706/0.2902, allocations: 0.9533 MB / 445 MB, free: 35.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000495/0.2907, allocations: 242.5 kB / 445.3 MB, free: 35.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001181/0.2909, allocations: 78.66 kB / 445.4 MB, free: 34.99 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.523e-05/0.2909, allocations: 2.812 kB / 445.4 MB, free: 34.99 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.215e-05/0.2909, allocations: 30.56 kB / 445.4 MB, free: 34.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.323e-06/0.2909, allocations: 0 / 445.4 MB, free: 34.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004339/0.2914, allocations: 266.7 kB / 445.7 MB, free: 34.83 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.857e-05/0.2914, allocations: 51.41 kB / 445.7 MB, free: 34.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006202/0.292, allocations: 376.3 kB / 446.1 MB, free: 34.6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.724e-05/0.292, allocations: 36.45 kB / 446.1 MB, free: 34.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.678e-05/0.2921, allocations: 166.6 kB / 446.3 MB, free: 34.42 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.101e-05/0.2922, allocations: 81.91 kB / 446.4 MB, free: 34.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.455e-05/0.2922, allocations: 29.53 kB / 446.4 MB, free: 34.33 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.885e-05/0.2923, allocations: 345.8 kB / 446.7 MB, free: 34 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001106/0.2924, allocations: 62.95 kB / 446.8 MB, free: 33.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001191/0.2925, allocations: 101.8 kB / 446.9 MB, free: 33.92 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009819/0.2935, allocations: 377.8 kB / 447.2 MB, free: 33.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.2935, allocations: 6.969 kB / 447.3 MB, free: 33.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003326/0.2939, allocations: 245.3 kB / 447.5 MB, free: 33.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.227e-05/0.2939, allocations: 9.812 kB / 447.5 MB, free: 33.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.2939, allocations: 2.875 kB / 447.5 MB, free: 33.65 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.033e-05/0.2939, allocations: 2.812 kB / 447.5 MB, free: 33.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001796/0.2941, allocations: 54.66 kB / 447.6 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/0.2941, allocations: 2.844 kB / 447.6 MB, free: 33.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002874/0.2944, allocations: 46.19 kB / 447.6 MB, free: 33.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.356e-05/0.2944, allocations: 10.84 kB / 447.6 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.0001298/0.2946, allocations: 149.9 kB / 447.8 MB, free: 33.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.839e-05/0.2946, allocations: 30.06 kB / 447.8 MB, free: 33.47 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.536e-05/0.2947, allocations: 39.42 kB / 447.8 MB, free: 33.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.2947, allocations: 7.844 kB / 447.8 MB, free: 33.44 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.2947, allocations: 0 / 447.8 MB, free: 33.44 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.2947, allocations: 3.938 kB / 447.8 MB, free: 33.44 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002592/0.295, allocations: 323 kB / 448.2 MB, free: 33.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.295, allocations: 0 / 448.2 MB, free: 33.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001962/0.2952, allocations: 33.3 kB / 448.2 MB, free: 33.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.2952, allocations: 2.906 kB / 448.2 MB, free: 33.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.469e-05/0.2952, allocations: 0 / 448.2 MB, free: 33.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.945e-06/0.2952, allocations: 6.625 kB / 448.2 MB, free: 33.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.2952, allocations: 0 / 448.2 MB, free: 33.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004164/0.2956, allocations: 395.7 kB / 448.6 MB, free: 32.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.319e-05/0.2957, allocations: 108.9 kB / 448.7 MB, free: 32.83 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.338e-05/0.2957, allocations: 7.375 kB / 448.7 MB, free: 32.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000304/0.2961, allocations: 37.98 kB / 448.7 MB, free: 32.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.719e-05/0.2961, allocations: 16.47 kB / 448.8 MB, free: 32.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.028e-05/0.2961, allocations: 9.938 kB / 448.8 MB, free: 32.81 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005293/0.2967, allocations: 286.1 kB / 449 MB, free: 32.69 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.2967, allocations: 0 / 449 MB, free: 32.69 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002752/0.2969, allocations: 43.31 kB / 449.1 MB, free: 32.68 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.0005633/0.2975, allocations: 0.9278 MB / 450 MB, free: 31.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002784/0.2978, allocations: 177.1 kB / 450.2 MB, free: 31.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.2978, allocations: 0 / 450.2 MB, free: 31.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000115/0.2979, allocations: 80.95 kB / 450.3 MB, free: 31.84 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004072/0.2983, allocations: 51.89 kB / 450.3 MB, free: 31.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003621/0.302, allocations: 2.987 MB / 453.3 MB, free: 29.9 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001578/0.3022, allocations: 0.7786 MB / 454.1 MB, free: 29.2 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001085/0.3023, allocations: 41.67 kB / 454.1 MB, free: 29.19 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001106/0.3024, allocations: 83.72 kB / 454.2 MB, free: 29.12 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3024, allocations: 0 / 454.2 MB, free: 29.12 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1534/0.4558, allocations: 4.589 MB / 458.8 MB, free: 28.82 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002018/0.456, allocations: 236.6 kB / 459 MB, free: 28.56 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.943/2.399, allocations: 0 / 459 MB, free: 28.56 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)