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.0009798/0.0009799, allocations: 99.86 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.00102/0.00102, 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.408/1.408, allocations: 223.2 MB / 239.9 MB, free: 5.457 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2124/0.2124, allocations: 22.34 MB / 313.3 MB, free: 13.18 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002929/0.000293, allocations: 4 kB / 381.9 MB, free: 10.59 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3372/0.3375, allocations: 55.97 MB / 437.9 MB, free: 39.23 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.00156/0.3391, allocations: 0.7053 MB / 438.6 MB, free: 38.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001548/0.3407, allocations: 1.186 MB / 439.8 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001137/0.3409, allocations: 0 / 439.8 MB, free: 37.88 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003757/0.3413, allocations: 37.98 kB / 439.8 MB, free: 37.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001999/0.3415, allocations: 43.69 kB / 439.9 MB, free: 37.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002535/0.3417, allocations: 59.3 kB / 439.9 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002152/0.342, allocations: 120.9 kB / 440 MB, free: 37.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001172/0.3421, allocations: 26.78 kB / 440.1 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001629/0.3423, allocations: 92.98 kB / 440.2 MB, free: 37.72 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001474/0.3424, allocations: 77.95 kB / 440.2 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.523e-05/0.3425, allocations: 3 kB / 440.2 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.131e-05/0.3425, allocations: 5.938 kB / 440.2 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.995e-05/0.3425, allocations: 29.75 kB / 440.3 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.784e-05/0.3426, allocations: 51.27 kB / 440.3 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001076/0.3427, allocations: 84.78 kB / 440.4 MB, free: 37.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.345e-06/0.3427, allocations: 0 / 440.4 MB, free: 37.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.3427, allocations: 4 kB / 440.4 MB, free: 37.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.768e-06/0.3427, allocations: 0 / 440.4 MB, free: 37.62 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.001154/0.3439, allocations: 0.4971 MB / 440.9 MB, free: 37.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.3439, allocations: 10.44 kB / 440.9 MB, free: 37.2 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.787e-05/0.344, allocations: 41.53 kB / 441 MB, free: 37.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.927e-05/0.3441, allocations: 14.12 kB / 441 MB, free: 37.15 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005374/0.3446, allocations: 285.3 kB / 441.2 MB, free: 36.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.005e-05/0.3446, allocations: 15.59 kB / 441.3 MB, free: 36.91 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.567e-05/0.3447, allocations: 6.125 kB / 441.3 MB, free: 36.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000224/0.3449, allocations: 118.3 kB / 441.4 MB, free: 36.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.3449, allocations: 3.953 kB / 441.4 MB, free: 36.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.969e-05/0.3449, allocations: 10.34 kB / 441.4 MB, free: 36.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.345, allocations: 3.938 kB / 441.4 MB, free: 36.81 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002025/0.3452, allocations: 84.16 kB / 441.5 MB, free: 36.79 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007984/0.346, allocations: 0.5878 MB / 442.1 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003688/0.3464, allocations: 139.1 kB / 442.2 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.794e-05/0.3464, allocations: 3.219 kB / 442.2 MB, free: 36.23 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.536e-05/0.3464, allocations: 38.5 kB / 442.2 MB, free: 36.18 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.633e-06/0.3464, allocations: 0 / 442.2 MB, free: 36.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0005068/0.3469, allocations: 159.2 kB / 442.4 MB, free: 36.11 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.737e-05/0.347, allocations: 55.41 kB / 442.5 MB, free: 36.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000486/0.3475, allocations: 254 kB / 442.7 MB, free: 35.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.56e-05/0.3475, allocations: 25.7 kB / 442.7 MB, free: 35.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.959e-05/0.3476, allocations: 123 kB / 442.8 MB, free: 35.77 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.415e-05/0.3476, allocations: 40.25 kB / 442.9 MB, free: 35.74 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.432e-06/0.3477, allocations: 0 / 442.9 MB, free: 35.74 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.3478, allocations: 331.3 kB / 443.2 MB, free: 35.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.762e-05/0.3479, allocations: 40.2 kB / 443.3 MB, free: 35.4 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.528e-05/0.348, allocations: 59.7 kB / 443.3 MB, free: 35.37 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001051/0.3481, allocations: 45.06 kB / 443.4 MB, free: 35.35 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.3481, allocations: 4 kB / 443.4 MB, free: 35.35 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000253/0.3483, allocations: 166.7 kB / 443.5 MB, free: 35.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.3484, allocations: 5.656 kB / 443.5 MB, free: 35.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/0.3484, allocations: 0 / 443.5 MB, free: 35.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.401e-05/0.3484, allocations: 6.719 kB / 443.5 MB, free: 35.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001147/0.3485, allocations: 25.39 kB / 443.6 MB, free: 35.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.602e-06/0.3485, allocations: 0 / 443.6 MB, free: 35.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001916/0.3487, allocations: 37.64 kB / 443.6 MB, free: 35.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.128e-05/0.3488, allocations: 3.906 kB / 443.6 MB, free: 35.25 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001438/0.3489, allocations: 144.7 kB / 443.7 MB, free: 35.11 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.541e-05/0.3489, allocations: 13.62 kB / 443.8 MB, free: 35.11 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.153e-05/0.349, allocations: 25.92 kB / 443.8 MB, free: 35.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.349, allocations: 0 / 443.8 MB, free: 35.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.349, allocations: 3.938 kB / 443.8 MB, free: 35.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.349, allocations: 2.625 kB / 443.8 MB, free: 35.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002226/0.3493, allocations: 238.5 kB / 444 MB, free: 34.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.3493, allocations: 0 / 444 MB, free: 34.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001259/0.3494, allocations: 16.95 kB / 444 MB, free: 34.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.606e-06/0.3494, allocations: 0 / 444 MB, free: 34.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.697e-05/0.3494, allocations: 6.781 kB / 444 MB, free: 34.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.3494, allocations: 0 / 444 MB, free: 34.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.3495, allocations: 3.328 kB / 444 MB, free: 34.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003699/0.3498, allocations: 288 kB / 444.3 MB, free: 34.67 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.1e-05/0.3499, allocations: 94.97 kB / 444.4 MB, free: 34.56 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.954e-05/0.3499, allocations: 3.375 kB / 444.4 MB, free: 34.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002086/0.3501, allocations: 26.05 kB / 444.4 MB, free: 34.56 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.499e-05/0.3502, allocations: 6.219 kB / 444.5 MB, free: 34.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.664e-06/0.3502, allocations: 6.969 kB / 444.5 MB, free: 34.55 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004248/0.3506, allocations: 201.9 kB / 444.7 MB, free: 34.45 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.61e-07/0.3507, allocations: 0 / 444.7 MB, free: 34.45 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002762/0.3509, allocations: 27.88 kB / 444.7 MB, free: 34.45 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 (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.0005939/0.3515, allocations: 0.8214 MB / 445.5 MB, free: 33.72 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002329/0.3518, allocations: 103.3 kB / 445.6 MB, free: 33.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3518, allocations: 0 / 445.6 MB, free: 33.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.162e-05/0.3519, allocations: 55 kB / 445.7 MB, free: 33.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002711/0.3522, allocations: 22.28 kB / 445.7 MB, free: 33.67 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002315/0.3545, allocations: 1.466 MB / 447.1 MB, free: 32.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001901/0.3547, allocations: 0.7305 MB / 447.9 MB, free: 32.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.064e-05/0.3548, allocations: 22.22 kB / 447.9 MB, free: 32.05 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.008e-05/0.3549, allocations: 43.47 kB / 447.9 MB, free: 32.02 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3549, allocations: 0 / 447.9 MB, free: 32.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01411/0.369, allocations: 2.865 MB / 450.8 MB, free: 31.81 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002209/0.3693, allocations: 195.2 kB / 451 MB, free: 31.58 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.741/2.11, allocations: 0 / 451 MB, free: 31.58 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/linux/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) Environment - environmentSimulation: