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.0007729/0.0007726, allocations: 91.92 kB / 15.06 MB, free: 1.098 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.0008959/0.0008959, allocations: 172.7 kB / 15.95 MB, free: 208 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.434/1.434, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.2164/0.2164, allocations: 22.36 MB / 313.4 MB, free: 13.08 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003252/0.0003254, allocations: 8 kB / 382 MB, free: 10.43 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3337/0.3341, allocations: 55.98 MB / 438 MB, free: 39.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.001163/0.3353, allocations: 0.6901 MB / 438.7 MB, free: 38.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001152/0.3365, allocations: 1.194 MB / 439.9 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.85e-05/0.3365, allocations: 2.5 kB / 439.9 MB, free: 37.76 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000292/0.3369, allocations: 29.47 kB / 439.9 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001287/0.337, allocations: 39.58 kB / 440 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001528/0.3372, allocations: 70.25 kB / 440.1 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002222/0.3374, allocations: 184 kB / 440.2 MB, free: 37.63 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001009/0.3375, allocations: 25.42 kB / 440.3 MB, free: 37.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000106/0.3376, allocations: 88.3 kB / 440.3 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001388/0.3378, allocations: 78.12 kB / 440.4 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.631e-05/0.3378, allocations: 6.688 kB / 440.4 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.764e-05/0.3378, allocations: 3.75 kB / 440.4 MB, free: 37.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.31e-05/0.3379, allocations: 43.5 kB / 440.5 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.219e-05/0.3379, allocations: 43.11 kB / 440.5 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.808e-05/0.338, allocations: 86.3 kB / 440.6 MB, free: 37.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.338, allocations: 3.281 kB / 440.6 MB, free: 37.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.338, allocations: 0 / 440.6 MB, free: 37.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.878e-06/0.338, allocations: 0 / 440.6 MB, free: 37.48 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.0008512/0.3389, allocations: 0.489 MB / 441.1 MB, free: 37.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.661e-05/0.3389, allocations: 9.656 kB / 441.1 MB, free: 37.07 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.811e-05/0.339, allocations: 44.91 kB / 441.1 MB, free: 37.03 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.339e-05/0.339, allocations: 16.12 kB / 441.2 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004263/0.3395, allocations: 285 kB / 441.4 MB, free: 36.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.447e-05/0.3395, allocations: 6.594 kB / 441.4 MB, free: 36.78 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.095e-05/0.3395, allocations: 9.219 kB / 441.5 MB, free: 36.78 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001899/0.3397, allocations: 121.8 kB / 441.6 MB, free: 36.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/0.3397, allocations: 7.953 kB / 441.6 MB, free: 36.69 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.219e-05/0.3398, allocations: 2.812 kB / 441.6 MB, free: 36.69 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.3398, allocations: 2.656 kB / 441.6 MB, free: 36.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001644/0.3399, allocations: 84.5 kB / 441.7 MB, free: 36.66 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005854/0.3405, allocations: 0.5811 MB / 442.2 MB, free: 36.17 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003136/0.3409, allocations: 140.9 kB / 442.4 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.315e-05/0.3409, allocations: 51.2 kB / 442.4 MB, free: 36.09 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.721e-05/0.341, allocations: 6.938 kB / 442.4 MB, free: 36.08 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.715e-05/0.341, allocations: 34.5 kB / 442.5 MB, free: 36.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.232e-06/0.341, allocations: 0 / 442.5 MB, free: 36.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003384/0.3413, allocations: 162.5 kB / 442.6 MB, free: 35.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.705e-05/0.3414, allocations: 54.09 kB / 442.7 MB, free: 35.9 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003588/0.3417, allocations: 250.6 kB / 442.9 MB, free: 35.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.039e-05/0.3418, allocations: 25.7 kB / 443 MB, free: 35.74 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.483e-05/0.3418, allocations: 127.6 kB / 443.1 MB, free: 35.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.53e-05/0.3419, allocations: 37.5 kB / 443.1 MB, free: 35.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.734e-06/0.3419, allocations: 6.938 kB / 443.1 MB, free: 35.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.055e-05/0.3419, allocations: 329.2 kB / 443.4 MB, free: 35.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.139e-05/0.342, allocations: 39.53 kB / 443.5 MB, free: 35.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.568e-05/0.3421, allocations: 68.05 kB / 443.6 MB, free: 35.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.923e-05/0.3422, allocations: 54.75 kB / 443.6 MB, free: 35.19 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.3422, allocations: 0 / 443.6 MB, free: 35.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002168/0.3424, allocations: 158.7 kB / 443.8 MB, free: 35.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.3424, allocations: 5.656 kB / 443.8 MB, free: 35.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.3425, allocations: 7.359 kB / 443.8 MB, free: 35.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.3425, allocations: 2.656 kB / 443.8 MB, free: 35.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001083/0.3426, allocations: 23.09 kB / 443.8 MB, free: 35.11 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.3426, allocations: 0 / 443.8 MB, free: 35.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001599/0.3428, allocations: 35.89 kB / 443.8 MB, free: 35.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.598e-06/0.3428, allocations: 3.781 kB / 443.8 MB, free: 35.1 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.0001211/0.3429, allocations: 141.9 kB / 444 MB, free: 34.96 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.353e-05/0.3429, allocations: 16.94 kB / 444 MB, free: 34.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.438e-05/0.343, allocations: 23.66 kB / 444 MB, free: 34.94 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.343, allocations: 3.188 kB / 444 MB, free: 34.94 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.343, allocations: 0 / 444 MB, free: 34.94 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.347e-06/0.343, allocations: 0 / 444 MB, free: 34.94 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001912/0.3432, allocations: 235.4 kB / 444.2 MB, free: 34.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.3432, allocations: 0 / 444.2 MB, free: 34.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001152/0.3433, allocations: 19.22 kB / 444.3 MB, free: 34.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.3434, allocations: 384 / 444.3 MB, free: 34.72 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.36e-05/0.3434, allocations: 4 kB / 444.3 MB, free: 34.72 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.3434, allocations: 6.562 kB / 444.3 MB, free: 34.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.3434, allocations: 0 / 444.3 MB, free: 34.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002897/0.3437, allocations: 284.5 kB / 444.6 MB, free: 34.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.817e-05/0.3437, allocations: 98.14 kB / 444.7 MB, free: 34.42 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.457e-05/0.3438, allocations: 7.938 kB / 444.7 MB, free: 34.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001833/0.344, allocations: 28.14 kB / 444.7 MB, free: 34.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.239e-05/0.344, allocations: 9.219 kB / 444.7 MB, free: 34.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.871e-06/0.344, allocations: 3.938 kB / 444.7 MB, free: 34.4 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002873/0.3443, allocations: 205.4 kB / 444.9 MB, free: 34.3 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3443, allocations: 0 / 444.9 MB, free: 34.3 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002367/0.3445, allocations: 20.22 kB / 444.9 MB, free: 34.3 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.0004486/0.345, allocations: 0.8171 MB / 445.7 MB, free: 33.58 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000211/0.3452, allocations: 103.1 kB / 445.8 MB, free: 33.55 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3452, allocations: 0 / 445.8 MB, free: 33.55 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.625e-05/0.3453, allocations: 52.06 kB / 445.9 MB, free: 33.53 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003134/0.3456, allocations: 31.91 kB / 445.9 MB, free: 33.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001906/0.3476, allocations: 1.161 MB / 447.1 MB, free: 32.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001379/0.3477, allocations: 0.7257 MB / 447.8 MB, free: 32.21 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.946e-05/0.3478, allocations: 28.56 kB / 447.8 MB, free: 32.21 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.108e-05/0.3479, allocations: 44.41 kB / 447.9 MB, free: 32.18 MB / 350.1 MB Notification: Performance of SimCode: time 1.112e-06/0.3479, allocations: 0 / 447.9 MB, free: 32.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01365/0.3615, allocations: 2.887 MB / 450.8 MB, free: 31.96 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001404/0.3617, allocations: 212.8 kB / 451 MB, free: 31.71 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.788/2.149, allocations: 0 / 451 MB, free: 31.71 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: