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.004516/0.004516, allocations: 101.7 kB / 15.73 MB, free: 6.062 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.001149/0.001149, allocations: 195.3 kB / 16.67 MB, free: 5.977 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.253/1.253, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.08755/0.08755, allocations: 22.33 MB / 312.9 MB, free: 8.883 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 63.91 kB / 436.5 MB, free: 12.28 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.106/0.1073, allocations: 54.95 MB / 491.5 MB, free: 5.281 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.002167/0.1095, allocations: 1.018 MB / 492.5 MB, free: 4.262 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001422/0.1109, allocations: 1.206 MB / 493.7 MB, free: 3.039 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.782e-05/0.111, allocations: 4 kB / 493.7 MB, free: 3.035 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002933/0.1113, allocations: 55.56 kB / 493.8 MB, free: 2.98 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001548/0.1115, allocations: 43.77 kB / 493.8 MB, free: 2.938 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001991/0.1117, allocations: 83.88 kB / 493.9 MB, free: 2.855 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000251/0.112, allocations: 215.6 kB / 494.1 MB, free: 2.645 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001247/0.1121, allocations: 41.41 kB / 494.1 MB, free: 2.598 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001329/0.1122, allocations: 83.69 kB / 494.2 MB, free: 2.516 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000176/0.1124, allocations: 91.64 kB / 494.3 MB, free: 2.426 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.177e-05/0.1125, allocations: 8 kB / 494.3 MB, free: 2.418 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.249e-05/0.1125, allocations: 12 kB / 494.3 MB, free: 2.406 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.173e-05/0.1126, allocations: 39.89 kB / 494.4 MB, free: 2.367 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.277e-05/0.1126, allocations: 59.55 kB / 494.4 MB, free: 2.309 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000169/0.1128, allocations: 135.5 kB / 494.6 MB, free: 2.176 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.1128, allocations: 0 / 494.6 MB, free: 2.176 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1128, allocations: 4 kB / 494.6 MB, free: 2.172 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5e-06/0.1128, allocations: 0 / 494.6 MB, free: 2.172 MB / 366.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.001006/0.1139, allocations: 0.5065 MB / 495.1 MB, free: 1.617 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.449e-05/0.1139, allocations: 8.031 kB / 495.1 MB, free: 1.609 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.103e-05/0.1139, allocations: 46.67 kB / 495.1 MB, free: 1.555 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.241e-05/0.114, allocations: 20.75 kB / 495.1 MB, free: 1.535 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005222/0.1145, allocations: 296.6 kB / 495.4 MB, free: 1.203 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.485e-05/0.1145, allocations: 4.375 kB / 495.4 MB, free: 1.199 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.484e-05/0.1146, allocations: 8.375 kB / 495.4 MB, free: 1.191 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002142/0.1148, allocations: 128.2 kB / 495.6 MB, free: 1.051 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.1148, allocations: 0 / 495.6 MB, free: 1.051 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.192e-05/0.1148, allocations: 4 kB / 495.6 MB, free: 1.047 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.378e-06/0.1148, allocations: 0 / 495.6 MB, free: 1.047 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001842/0.115, allocations: 95.88 kB / 495.7 MB, free: 0.9531 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007024/0.1157, allocations: 0.5712 MB / 496.2 MB, free: 332 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003769/0.1161, allocations: 142.4 kB / 496.4 MB, free: 180 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000105/0.1162, allocations: 48.83 kB / 496.4 MB, free: 128 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.376e-05/0.1163, allocations: 4 kB / 496.4 MB, free: 124 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.121e-05/0.1163, allocations: 34.56 kB / 496.5 MB, free: 80 kB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.252e-06/0.1163, allocations: 0 / 496.5 MB, free: 80 kB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003869/0.1167, allocations: 165.9 kB / 496.6 MB, free: 15.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.631e-05/0.1167, allocations: 59.41 kB / 496.7 MB, free: 15.84 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004576/0.1172, allocations: 258.6 kB / 496.9 MB, free: 15.57 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.605e-05/0.1172, allocations: 25.7 kB / 497 MB, free: 15.54 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.564e-05/0.1173, allocations: 116 kB / 497.1 MB, free: 15.43 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.665e-05/0.1174, allocations: 39.5 kB / 497.1 MB, free: 15.39 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.235e-05/0.1174, allocations: 25.72 kB / 497.1 MB, free: 15.36 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.1175, allocations: 334.8 kB / 497.5 MB, free: 15.02 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.718e-05/0.1176, allocations: 35.92 kB / 497.5 MB, free: 14.99 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001016/0.1177, allocations: 70.48 kB / 497.6 MB, free: 14.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000777/0.1185, allocations: 250.2 kB / 497.8 MB, free: 14.66 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.1185, allocations: 0 / 497.8 MB, free: 14.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002787/0.1188, allocations: 165.4 kB / 498 MB, free: 14.49 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.1188, allocations: 8.062 kB / 498 MB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.1189, allocations: 0 / 498 MB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/0.1189, allocations: 7.984 kB / 498 MB, free: 14.47 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001172/0.119, allocations: 20 kB / 498 MB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.118e-06/0.119, allocations: 7.938 kB / 498 MB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001885/0.1192, allocations: 27.86 kB / 498 MB, free: 14.42 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.228e-05/0.1192, allocations: 4 kB / 498.1 MB, free: 14.41 MB / 382.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.0001565/0.1194, allocations: 142.5 kB / 498.2 MB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.897e-05/0.1194, allocations: 15.81 kB / 498.2 MB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.843e-05/0.1195, allocations: 21.41 kB / 498.2 MB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.1195, allocations: 0 / 498.2 MB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.1195, allocations: 3.938 kB / 498.2 MB, free: 14.22 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.1195, allocations: 3.984 kB / 498.2 MB, free: 14.22 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002404/0.1198, allocations: 233.5 kB / 498.5 MB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.1198, allocations: 4 kB / 498.5 MB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001263/0.1199, allocations: 20 kB / 498.5 MB, free: 13.92 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.1199, allocations: 4 kB / 498.5 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.323e-05/0.1199, allocations: 0 / 498.5 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.1199, allocations: 0 / 498.5 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.12, allocations: 3.938 kB / 498.5 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000374/0.1203, allocations: 283.2 kB / 498.8 MB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.04e-05/0.1204, allocations: 92.92 kB / 498.9 MB, free: 13.51 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.517e-05/0.1204, allocations: 8.031 kB / 498.9 MB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002103/0.1207, allocations: 27.97 kB / 498.9 MB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.535e-05/0.1207, allocations: 7.922 kB / 498.9 MB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.457e-06/0.1207, allocations: 8 kB / 498.9 MB, free: 13.46 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003702/0.1211, allocations: 195.1 kB / 499.1 MB, free: 13.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1211, allocations: 7.938 kB / 499.1 MB, free: 13.26 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002492/0.1214, allocations: 24 kB / 499.1 MB, free: 13.23 MB / 382.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.0006323/0.122, allocations: 0.805 MB / 499.9 MB, free: 12.41 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002439/0.1223, allocations: 111.9 kB / 0.4883 GB, free: 12.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.1223, allocations: 4.125 kB / 0.4883 GB, free: 12.29 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 8.869e-05/0.1224, allocations: 47.92 kB / 0.4884 GB, free: 12.25 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003281/0.1227, allocations: 37.72 kB / 0.4884 GB, free: 12.21 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0028/0.1255, allocations: 2.09 MB / 0.4905 GB, free: 10.04 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002839/0.1258, allocations: 0.7318 MB / 0.4912 GB, free: 9.277 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.093e-05/0.1259, allocations: 21.08 kB / 0.4912 GB, free: 9.258 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.016e-05/0.126, allocations: 55.34 kB / 0.4912 GB, free: 9.203 MB / 382.1 MB Notification: Performance of SimCode: time 2.5e-07/0.126, allocations: 0 / 0.4912 GB, free: 9.203 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01788/0.1439, allocations: 3.141 MB / 0.4943 GB, free: 6.191 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.47/7.614, allocations: 3.938 kB / 0.4943 GB, free: 6.188 MB / 382.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)