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.001067/0.001067, allocations: 108 kB / 15.6 MB, free: 128 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 195.8 kB / 16.53 MB, free: 6.672 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.312/1.312, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1934/0.1934, allocations: 22.35 MB / 312.7 MB, free: 12.51 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001963/0.001963, allocations: 59.91 kB / 380.9 MB, free: 10.51 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2744/0.2764, allocations: 54.95 MB / 435.9 MB, free: 39.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.002167/0.2786, allocations: 1.006 MB / 436.9 MB, free: 38.99 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001331/0.2799, allocations: 1.218 MB / 438.1 MB, free: 38.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.025e-05/0.28, allocations: 6.594 kB / 438.1 MB, free: 38.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002919/0.2803, allocations: 32.91 kB / 438.1 MB, free: 38.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001358/0.2805, allocations: 48.69 kB / 438.2 MB, free: 38.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001618/0.2807, allocations: 87.66 kB / 438.3 MB, free: 38.01 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001947/0.2809, allocations: 213.8 kB / 438.5 MB, free: 37.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.417e-05/0.281, allocations: 26.81 kB / 438.5 MB, free: 37.92 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.235e-05/0.2811, allocations: 88.94 kB / 438.6 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001309/0.2812, allocations: 92.14 kB / 438.7 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.04e-05/0.2812, allocations: 10.91 kB / 438.7 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.116e-05/0.2813, allocations: 9.875 kB / 438.7 MB, free: 37.85 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.161e-05/0.2813, allocations: 51.17 kB / 438.7 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.84e-05/0.2814, allocations: 51.16 kB / 438.8 MB, free: 37.78 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001296/0.2815, allocations: 123 kB / 438.9 MB, free: 37.73 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2815, allocations: 0 / 438.9 MB, free: 37.73 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2815, allocations: 0 / 438.9 MB, free: 37.73 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.58e-06/0.2816, allocations: 0 / 438.9 MB, free: 37.73 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.00109/0.2827, allocations: 0.5192 MB / 439.4 MB, free: 37.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.2827, allocations: 8.531 kB / 439.4 MB, free: 37.3 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.076e-05/0.2827, allocations: 43.75 kB / 439.5 MB, free: 37.26 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.921e-05/0.2828, allocations: 14.03 kB / 439.5 MB, free: 37.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004671/0.2833, allocations: 286.6 kB / 439.8 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.537e-05/0.2833, allocations: 9.969 kB / 439.8 MB, free: 37.01 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.281e-05/0.2833, allocations: 5.844 kB / 439.8 MB, free: 37.01 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001874/0.2835, allocations: 143.7 kB / 439.9 MB, free: 36.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.2835, allocations: 0 / 439.9 MB, free: 36.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.257e-05/0.2835, allocations: 4 kB / 439.9 MB, free: 36.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.441e-06/0.2836, allocations: 3.594 kB / 439.9 MB, free: 36.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001742/0.2837, allocations: 79.56 kB / 440 MB, free: 36.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005743/0.2843, allocations: 0.5839 MB / 440.6 MB, free: 36.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003116/0.2846, allocations: 140.4 kB / 440.7 MB, free: 36.33 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.098e-05/0.2847, allocations: 55.23 kB / 440.8 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.999e-06/0.2848, allocations: 0 / 440.8 MB, free: 36.3 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.552e-05/0.2848, allocations: 37 kB / 440.8 MB, free: 36.26 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 9.72e-07/0.2848, allocations: 0 / 440.8 MB, free: 36.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.000312/0.2851, allocations: 160 kB / 441 MB, free: 36.19 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.115e-05/0.2851, allocations: 55.41 kB / 441 MB, free: 36.12 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003992/0.2855, allocations: 256 kB / 441.3 MB, free: 35.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.051e-05/0.2856, allocations: 32.45 kB / 441.3 MB, free: 35.95 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.452e-05/0.2856, allocations: 117.2 kB / 441.4 MB, free: 35.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.482e-05/0.2856, allocations: 36.38 kB / 441.5 MB, free: 35.81 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.165e-05/0.2857, allocations: 29.94 kB / 441.5 MB, free: 35.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.764e-05/0.2857, allocations: 328.3 kB / 441.8 MB, free: 35.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.363e-05/0.2858, allocations: 43.42 kB / 441.9 MB, free: 35.45 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.107e-05/0.2859, allocations: 59.44 kB / 441.9 MB, free: 35.42 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006716/0.2866, allocations: 251.1 kB / 442.2 MB, free: 35.33 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.2866, allocations: 0 / 442.2 MB, free: 35.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002189/0.2868, allocations: 163.7 kB / 442.3 MB, free: 35.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.14e-05/0.2868, allocations: 6.125 kB / 442.3 MB, free: 35.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.2868, allocations: 3.75 kB / 442.3 MB, free: 35.25 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.2869, allocations: 4.062 kB / 442.3 MB, free: 35.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001068/0.287, allocations: 25.84 kB / 442.4 MB, free: 35.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.287, allocations: 3.938 kB / 442.4 MB, free: 35.24 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001827/0.2872, allocations: 38.66 kB / 442.4 MB, free: 35.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.788e-06/0.2872, allocations: 6.719 kB / 442.4 MB, free: 35.22 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 0.0001013/0.2873, allocations: 137.9 kB / 442.6 MB, free: 35.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.64e-05/0.2873, allocations: 17.59 kB / 442.6 MB, free: 35.08 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.9e-05/0.2874, allocations: 24.27 kB / 442.6 MB, free: 35.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.2874, allocations: 2.812 kB / 442.6 MB, free: 35.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.2874, allocations: 3.938 kB / 442.6 MB, free: 35.07 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.2874, allocations: 0 / 442.6 MB, free: 35.07 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001724/0.2876, allocations: 233.7 kB / 442.8 MB, free: 34.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.2876, allocations: 0 / 442.8 MB, free: 34.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000128/0.2877, allocations: 18.72 kB / 442.8 MB, free: 34.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.2877, allocations: 0 / 442.8 MB, free: 34.85 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.345e-05/0.2877, allocations: 6.781 kB / 442.9 MB, free: 34.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.2878, allocations: 4 kB / 442.9 MB, free: 34.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.2878, allocations: 3.938 kB / 442.9 MB, free: 34.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000282/0.288, allocations: 279.8 kB / 443.1 MB, free: 34.65 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.467e-05/0.2881, allocations: 103.5 kB / 443.2 MB, free: 34.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.452e-05/0.2881, allocations: 0 / 443.2 MB, free: 34.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000208/0.2883, allocations: 36.5 kB / 443.3 MB, free: 34.53 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.026e-05/0.2884, allocations: 6.844 kB / 443.3 MB, free: 34.53 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.483e-06/0.2884, allocations: 3.875 kB / 443.3 MB, free: 34.53 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003254/0.2887, allocations: 193.8 kB / 443.5 MB, free: 34.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2887, allocations: 0 / 443.5 MB, free: 34.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002416/0.289, allocations: 23.22 kB / 443.5 MB, free: 34.43 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.0004089/0.2894, allocations: 0.8171 MB / 444.3 MB, free: 33.71 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002009/0.2896, allocations: 111.7 kB / 444.4 MB, free: 33.68 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.2896, allocations: 0 / 444.4 MB, free: 33.68 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.464e-05/0.2897, allocations: 54.56 kB / 444.5 MB, free: 33.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003133/0.29, allocations: 33.52 kB / 444.5 MB, free: 33.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002255/0.2923, allocations: 2.103 MB / 446.6 MB, free: 32.15 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001167/0.2924, allocations: 0.7332 MB / 447.3 MB, free: 31.45 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.798e-05/0.2925, allocations: 28.62 kB / 447.4 MB, free: 31.45 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.715e-05/0.2926, allocations: 40.52 kB / 447.4 MB, free: 31.41 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2926, allocations: 0 / 447.4 MB, free: 31.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04041/0.333, allocations: 3.083 MB / 450.5 MB, free: 31 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.194/9.527, allocations: 18.23 kB / 450.5 MB, free: 30.98 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)