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.006843/0.006843, allocations: 100.9 kB / 15.73 MB, free: 6.055 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.001776/0.001776, allocations: 192.4 kB / 16.67 MB, free: 5.969 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.382/1.382, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09484/0.09484, allocations: 22.33 MB / 312.9 MB, free: 8.887 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001865/0.001865, allocations: 63.91 kB / 436.5 MB, free: 12.29 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1048/0.1067, allocations: 54.96 MB / 491.5 MB, free: 5.285 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.00208/0.1088, allocations: 0.9946 MB / 492.5 MB, free: 4.289 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001497/0.1103, allocations: 1.229 MB / 493.7 MB, free: 3.043 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.677e-05/0.1104, allocations: 4 kB / 493.7 MB, free: 3.039 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000285/0.1107, allocations: 31.78 kB / 493.8 MB, free: 3.008 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001517/0.1109, allocations: 55.7 kB / 493.8 MB, free: 2.953 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001939/0.1111, allocations: 87.81 kB / 493.9 MB, free: 2.867 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000277/0.1114, allocations: 215.6 kB / 494.1 MB, free: 2.656 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001123/0.1115, allocations: 33.48 kB / 494.1 MB, free: 2.617 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001214/0.1116, allocations: 83.72 kB / 494.2 MB, free: 2.535 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001634/0.1118, allocations: 91.59 kB / 494.3 MB, free: 2.445 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.639e-05/0.1118, allocations: 12 kB / 494.3 MB, free: 2.434 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.258e-05/0.1119, allocations: 8 kB / 494.3 MB, free: 2.426 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.4e-05/0.1119, allocations: 43.89 kB / 494.4 MB, free: 2.383 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.813e-05/0.112, allocations: 59.59 kB / 494.4 MB, free: 2.324 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001783/0.1122, allocations: 123.4 kB / 494.5 MB, free: 2.203 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/0.1122, allocations: 4 kB / 494.6 MB, free: 2.199 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1122, allocations: 0 / 494.6 MB, free: 2.199 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.198e-06/0.1122, allocations: 4 kB / 494.6 MB, free: 2.195 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.001039/0.1133, allocations: 0.5142 MB / 495.1 MB, free: 1.633 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.1133, allocations: 12.03 kB / 495.1 MB, free: 1.621 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.165e-05/0.1134, allocations: 42.73 kB / 495.1 MB, free: 1.57 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.745e-05/0.1134, allocations: 12.84 kB / 495.1 MB, free: 1.559 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005493/0.114, allocations: 300.6 kB / 495.4 MB, free: 1.223 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.457e-05/0.114, allocations: 12.38 kB / 495.4 MB, free: 1.211 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.585e-05/0.114, allocations: 8.375 kB / 495.5 MB, free: 1.203 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002275/0.1143, allocations: 126.3 kB / 495.6 MB, free: 1.066 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.1143, allocations: 3.984 kB / 495.6 MB, free: 1.062 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.45e-05/0.1143, allocations: 7.984 kB / 495.6 MB, free: 1.055 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.1143, allocations: 4 kB / 495.6 MB, free: 1.051 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001874/0.1145, allocations: 83.89 kB / 495.7 MB, free: 0.9688 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007445/0.1153, allocations: 0.5829 MB / 496.3 MB, free: 336 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003586/0.1156, allocations: 142.5 kB / 496.4 MB, free: 184 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001016/0.1157, allocations: 52.83 kB / 496.4 MB, free: 128 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.459e-05/0.1158, allocations: 0 / 496.4 MB, free: 128 kB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.114e-05/0.1158, allocations: 30.75 kB / 496.5 MB, free: 88 kB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 2.625e-06/0.1158, allocations: 0 / 496.5 MB, free: 88 kB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003801/0.1162, allocations: 165.9 kB / 496.6 MB, free: 15.91 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.983e-05/0.1162, allocations: 59.34 kB / 496.7 MB, free: 15.84 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004539/0.1167, allocations: 258.5 kB / 496.9 MB, free: 15.59 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.815e-05/0.1167, allocations: 29.64 kB / 497 MB, free: 15.55 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.405e-05/0.1168, allocations: 120 kB / 497.1 MB, free: 15.43 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.768e-05/0.1169, allocations: 39.77 kB / 497.1 MB, free: 15.39 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.437e-05/0.1169, allocations: 33.7 kB / 497.2 MB, free: 15.35 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.1171, allocations: 330.8 kB / 497.5 MB, free: 15.02 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.189e-05/0.1172, allocations: 39.97 kB / 497.5 MB, free: 14.98 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.505e-05/0.1173, allocations: 65.72 kB / 497.6 MB, free: 14.91 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007696/0.118, allocations: 246.3 kB / 497.8 MB, free: 14.66 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.118, allocations: 0 / 497.8 MB, free: 14.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002714/0.1183, allocations: 165.5 kB / 498 MB, free: 14.49 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.1183, allocations: 8 kB / 498 MB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.1184, allocations: 8.047 kB / 498 MB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.1184, allocations: 0 / 498 MB, free: 14.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001166/0.1185, allocations: 27.92 kB / 498 MB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.273e-06/0.1185, allocations: 3.938 kB / 498 MB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000184/0.1187, allocations: 27.92 kB / 498.1 MB, free: 14.42 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.546e-05/0.1187, allocations: 8 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.0001605/0.1189, allocations: 138.5 kB / 498.2 MB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.873e-05/0.1189, allocations: 15.91 kB / 498.2 MB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.8e-05/0.119, allocations: 21.39 kB / 498.2 MB, free: 14.23 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.119, allocations: 3.938 kB / 498.3 MB, free: 14.22 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.119, allocations: 4 kB / 498.3 MB, free: 14.22 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.119, allocations: 0 / 498.3 MB, free: 14.22 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002592/0.1193, allocations: 237.5 kB / 498.5 MB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.1193, allocations: 0 / 498.5 MB, free: 13.94 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000122/0.1194, allocations: 16 kB / 498.5 MB, free: 13.92 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.1194, allocations: 7.922 kB / 498.5 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.247e-05/0.1194, allocations: 4 kB / 498.5 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/0.1195, allocations: 7.938 kB / 498.5 MB, free: 13.9 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.1195, allocations: 0 / 498.5 MB, free: 13.9 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003824/0.1198, allocations: 283 kB / 498.8 MB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.305e-05/0.1199, allocations: 93.05 kB / 498.9 MB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.36e-05/0.12, allocations: 4.094 kB / 498.9 MB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002185/0.1202, allocations: 39.94 kB / 498.9 MB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.138e-05/0.1202, allocations: 15.91 kB / 498.9 MB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.192e-06/0.1202, allocations: 0 / 498.9 MB, free: 13.45 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003776/0.1206, allocations: 191.2 kB / 499.1 MB, free: 13.26 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1206, allocations: 0 / 499.1 MB, free: 13.26 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002349/0.1209, allocations: 24 kB / 499.2 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.0006621/0.1215, allocations: 0.8139 MB / 500 MB, free: 12.39 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002467/0.1218, allocations: 103.9 kB / 0.4884 GB, free: 12.29 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1218, allocations: 0 / 0.4884 GB, free: 12.29 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 9.25e-05/0.1219, allocations: 56.03 kB / 0.4884 GB, free: 12.24 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003187/0.1222, allocations: 31.86 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.003271/0.1255, allocations: 2.102 MB / 0.4905 GB, free: 10.02 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003782/0.1259, allocations: 0.724 MB / 0.4912 GB, free: 9.27 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 8.229e-05/0.126, allocations: 25.34 kB / 0.4912 GB, free: 9.246 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.444e-05/0.1261, allocations: 43.42 kB / 0.4913 GB, free: 9.203 MB / 382.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1261, allocations: 0 / 0.4913 GB, free: 9.203 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02474/0.1508, allocations: 3.138 MB / 0.4943 GB, free: 6.188 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.529/7.68, allocations: 10.53 kB / 0.4943 GB, free: 6.18 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)