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.0009945/0.0009945, allocations: 86.25 kB / 15.06 MB, free: 1.09 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.001006/0.001006, allocations: 168.7 kB / 15.95 MB, free: 204 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.393/1.393, allocations: 223.3 MB / 240 MB, free: 5.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2217/0.2217, allocations: 22.36 MB / 313.4 MB, free: 13.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003589/0.0003591, allocations: 8 kB / 382 MB, free: 10.42 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3046/0.305, allocations: 55.97 MB / 438 MB, free: 39.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_two_generators_PriSec): time 0.001142/0.3061, allocations: 1.037 MB / 439.1 MB, free: 38.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0012/0.3073, allocations: 1.332 MB / 440.4 MB, free: 37.6 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001049/0.3075, allocations: 2.875 kB / 440.4 MB, free: 37.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002842/0.3078, allocations: 72.34 kB / 440.5 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001811/0.3079, allocations: 75.95 kB / 440.5 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002222/0.3082, allocations: 142.3 kB / 440.7 MB, free: 37.47 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002737/0.3085, allocations: 307 kB / 441 MB, free: 37.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001322/0.3086, allocations: 81.64 kB / 441.1 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000124/0.3087, allocations: 134.4 kB / 441.2 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001506/0.3089, allocations: 137.9 kB / 441.3 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.867e-05/0.3089, allocations: 7.406 kB / 441.3 MB, free: 37.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.361e-05/0.309, allocations: 12.12 kB / 441.3 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.254e-05/0.309, allocations: 56.28 kB / 441.4 MB, free: 37.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.695e-05/0.3091, allocations: 66.77 kB / 441.5 MB, free: 37.12 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001282/0.3092, allocations: 170.3 kB / 441.6 MB, free: 37.08 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.3092, allocations: 6.844 kB / 441.6 MB, free: 37.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.3092, allocations: 0 / 441.6 MB, free: 37.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.93e-06/0.3092, allocations: 0 / 441.6 MB, free: 37.07 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.001127/0.3104, allocations: 0.6521 MB / 442.3 MB, free: 36.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/0.3104, allocations: 7.781 kB / 442.3 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.307e-05/0.3105, allocations: 54.16 kB / 442.3 MB, free: 36.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.737e-05/0.3105, allocations: 30.16 kB / 442.4 MB, free: 36.53 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006152/0.3112, allocations: 372.6 kB / 442.7 MB, free: 36.27 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.681e-05/0.3112, allocations: 13.52 kB / 442.8 MB, free: 36.26 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.138e-05/0.3112, allocations: 28.02 kB / 442.8 MB, free: 36.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002763/0.3115, allocations: 214.7 kB / 443 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.3115, allocations: 2.812 kB / 443 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.544e-05/0.3116, allocations: 4 kB / 443 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.3116, allocations: 7.656 kB / 443 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002632/0.3118, allocations: 155.4 kB / 443.2 MB, free: 36.06 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008683/0.3127, allocations: 0.9534 MB / 444.1 MB, free: 35.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004717/0.3132, allocations: 251.3 kB / 444.4 MB, free: 35.22 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001126/0.3133, allocations: 81.19 kB / 444.4 MB, free: 35.19 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.642e-05/0.3133, allocations: 0 / 444.4 MB, free: 35.19 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.404e-05/0.3134, allocations: 37.22 kB / 444.5 MB, free: 35.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.112e-06/0.3134, allocations: 0 / 444.5 MB, free: 35.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.000409/0.3138, allocations: 261.8 kB / 444.7 MB, free: 35.03 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.474e-05/0.3138, allocations: 54.44 kB / 444.8 MB, free: 34.96 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005364/0.3144, allocations: 373.7 kB / 445.1 MB, free: 34.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.357e-05/0.3144, allocations: 29.7 kB / 445.2 MB, free: 34.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.305e-05/0.3145, allocations: 175.1 kB / 445.3 MB, free: 34.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.373e-05/0.3145, allocations: 72.81 kB / 445.4 MB, free: 34.56 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.587e-06/0.3145, allocations: 0 / 445.4 MB, free: 34.56 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.975e-05/0.3146, allocations: 346.7 kB / 445.8 MB, free: 34.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000102/0.3147, allocations: 66.05 kB / 445.8 MB, free: 34.2 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001278/0.3149, allocations: 99.66 kB / 445.9 MB, free: 34.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001226/0.315, allocations: 73.62 kB / 446 MB, free: 34.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.315, allocations: 0 / 446 MB, free: 34.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000311/0.3153, allocations: 261.4 kB / 446.2 MB, free: 33.99 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.423e-05/0.3153, allocations: 5.844 kB / 446.2 MB, free: 33.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.3153, allocations: 0 / 446.2 MB, free: 33.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.3154, allocations: 3 kB / 446.3 MB, free: 33.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000163/0.3155, allocations: 39.31 kB / 446.3 MB, free: 33.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.533e-06/0.3155, allocations: 10.91 kB / 446.3 MB, free: 33.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002336/0.3158, allocations: 53.44 kB / 446.4 MB, free: 33.96 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.367e-05/0.3158, allocations: 5.906 kB / 446.4 MB, free: 33.96 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.0001469/0.316, allocations: 164.8 kB / 446.5 MB, free: 33.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.257e-05/0.316, allocations: 27.88 kB / 446.5 MB, free: 33.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.402e-05/0.3161, allocations: 38.03 kB / 446.6 MB, free: 33.78 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.3161, allocations: 4 kB / 446.6 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.3161, allocations: 2.969 kB / 446.6 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.3161, allocations: 3.422 kB / 446.6 MB, free: 33.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002627/0.3164, allocations: 325.5 kB / 446.9 MB, free: 33.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.3164, allocations: 0 / 446.9 MB, free: 33.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001696/0.3165, allocations: 33.11 kB / 446.9 MB, free: 33.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.3166, allocations: 0 / 446.9 MB, free: 33.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.635e-05/0.3166, allocations: 7.719 kB / 447 MB, free: 33.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.3166, allocations: 0 / 447 MB, free: 33.51 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.3166, allocations: 0 / 447 MB, free: 33.51 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004094/0.317, allocations: 395.1 kB / 447.3 MB, free: 33.28 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.267e-05/0.3171, allocations: 108.7 kB / 447.4 MB, free: 33.16 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.216e-05/0.3171, allocations: 3.062 kB / 447.4 MB, free: 33.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002439/0.3174, allocations: 36.73 kB / 447.5 MB, free: 33.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.039e-05/0.3174, allocations: 14.38 kB / 447.5 MB, free: 33.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.799e-06/0.3174, allocations: 11.19 kB / 447.5 MB, free: 33.15 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004446/0.3179, allocations: 280.8 kB / 447.8 MB, free: 33.03 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3179, allocations: 2.719 kB / 447.8 MB, free: 33.03 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002665/0.3182, allocations: 45.69 kB / 447.8 MB, free: 33.02 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.000631/0.3188, allocations: 0.9223 MB / 448.8 MB, free: 32.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000297/0.3191, allocations: 172.5 kB / 448.9 MB, free: 32.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3191, allocations: 0 / 448.9 MB, free: 32.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001295/0.3192, allocations: 82.58 kB / 449 MB, free: 32.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004189/0.3197, allocations: 53.2 kB / 449.1 MB, free: 32.16 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003509/0.3232, allocations: 1.869 MB / 450.9 MB, free: 31.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002664/0.3235, allocations: 0.778 MB / 451.7 MB, free: 30.53 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001463/0.3236, allocations: 42.28 kB / 451.7 MB, free: 30.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001564/0.3238, allocations: 90.7 kB / 451.8 MB, free: 30.45 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3238, allocations: 0 / 451.8 MB, free: 30.45 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01805/0.3419, allocations: 4.687 MB / 456.5 MB, free: 30.15 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002231/0.3422, allocations: 209.3 kB / 456.7 MB, free: 29.91 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.843/2.185, allocations: 0 / 456.7 MB, free: 29.91 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: