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.009276/0.009276, allocations: 102.1 kB / 15.73 MB, free: 5.508 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.001979/0.001979, allocations: 195.7 kB / 16.67 MB, free: 5.438 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.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.1986/0.1986, allocations: 22.36 MB / 312.9 MB, free: 12.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 64 kB / 436.6 MB, free: 34.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1194, allocations: 54.96 MB / 491.5 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.001999/0.1215, allocations: 1.014 MB / 492.5 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001267/0.1227, allocations: 1.213 MB / 493.8 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.394e-05/0.1228, allocations: 4 kB / 493.8 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003246/0.1232, allocations: 39.78 kB / 493.8 MB, free: 15.46 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001508/0.1233, allocations: 47.7 kB / 493.8 MB, free: 15.41 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001978/0.1236, allocations: 79.88 kB / 493.9 MB, free: 15.33 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002724/0.1238, allocations: 219.6 kB / 494.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001345/0.124, allocations: 37.64 kB / 494.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001219/0.1241, allocations: 83.8 kB / 494.3 MB, free: 14.99 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001613/0.1243, allocations: 91.59 kB / 494.3 MB, free: 14.9 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.686e-05/0.1243, allocations: 8 kB / 494.4 MB, free: 14.89 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.179e-05/0.1243, allocations: 12 kB / 494.4 MB, free: 14.88 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.551e-05/0.1244, allocations: 47.81 kB / 494.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.453e-05/0.1245, allocations: 55.66 kB / 494.5 MB, free: 14.78 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001863/0.1247, allocations: 127.4 kB / 494.6 MB, free: 14.66 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.1247, allocations: 4 kB / 494.6 MB, free: 14.65 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.847e-06/0.1247, allocations: 3.938 kB / 494.6 MB, free: 14.65 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.662e-06/0.1247, allocations: 3.938 kB / 494.6 MB, free: 14.64 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.001082/0.1258, allocations: 0.5065 MB / 495.1 MB, free: 14.09 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.1258, allocations: 8.031 kB / 495.1 MB, free: 14.08 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.5e-05/0.1259, allocations: 42.73 kB / 495.2 MB, free: 14.03 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.073e-05/0.1259, allocations: 16.84 kB / 495.2 MB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005505/0.1265, allocations: 304.7 kB / 495.5 MB, free: 13.68 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.41e-05/0.1265, allocations: 4.375 kB / 495.5 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.861e-05/0.1266, allocations: 12.33 kB / 495.5 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002324/0.1268, allocations: 127.1 kB / 495.6 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.308e-06/0.1268, allocations: 0 / 495.6 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.361e-05/0.1268, allocations: 4 kB / 495.6 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.169e-06/0.1268, allocations: 3.938 kB / 495.6 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001917/0.127, allocations: 99.88 kB / 495.7 MB, free: 13.42 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007636/0.1278, allocations: 0.5751 MB / 496.3 MB, free: 12.79 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000379/0.1282, allocations: 146.5 kB / 496.4 MB, free: 12.63 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001043/0.1283, allocations: 48.83 kB / 496.5 MB, free: 12.58 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.413e-05/0.1283, allocations: 4 kB / 496.5 MB, free: 12.58 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.33e-05/0.1284, allocations: 38.69 kB / 496.5 MB, free: 12.53 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.373e-06/0.1284, allocations: 0 / 496.5 MB, free: 12.53 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003686/0.1288, allocations: 161.5 kB / 496.7 MB, free: 12.37 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.581e-05/0.1288, allocations: 59.41 kB / 496.7 MB, free: 12.3 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004576/0.1293, allocations: 254.6 kB / 497 MB, free: 12.04 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.765e-05/0.1293, allocations: 29.7 kB / 497 MB, free: 12 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.913e-05/0.1294, allocations: 124.1 kB / 497.1 MB, free: 11.88 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.074e-05/0.1294, allocations: 35.69 kB / 497.2 MB, free: 11.84 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.499e-05/0.1295, allocations: 33.7 kB / 497.2 MB, free: 11.8 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000117/0.1296, allocations: 322.8 kB / 497.5 MB, free: 11.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.542e-05/0.1297, allocations: 43.97 kB / 497.6 MB, free: 11.44 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.18e-05/0.1298, allocations: 62.55 kB / 497.6 MB, free: 11.37 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007545/0.1306, allocations: 242.3 kB / 497.9 MB, free: 11.12 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.1306, allocations: 4 kB / 497.9 MB, free: 11.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002798/0.1309, allocations: 167.1 kB / 498 MB, free: 10.95 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.1309, allocations: 4.375 kB / 498 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.1309, allocations: 0 / 498 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.626e-05/0.1309, allocations: 4 kB / 498 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001176/0.131, allocations: 19.98 kB / 498.1 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.057e-06/0.1311, allocations: 15.81 kB / 498.1 MB, free: 10.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001927/0.1313, allocations: 31.86 kB / 498.1 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.231e-05/0.1313, allocations: 4 kB / 498.1 MB, free: 10.87 MB / 366.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.0001631/0.1314, allocations: 142.5 kB / 498.2 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.178e-05/0.1315, allocations: 15.91 kB / 498.3 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.858e-05/0.1315, allocations: 25.39 kB / 498.3 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.1316, allocations: 0 / 498.3 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.1316, allocations: 3.938 kB / 498.3 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.1316, allocations: 0 / 498.3 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002585/0.1318, allocations: 233.6 kB / 498.5 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.1318, allocations: 0 / 498.5 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001369/0.132, allocations: 19.94 kB / 498.5 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.132, allocations: 4 kB / 498.5 MB, free: 10.38 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.686e-05/0.132, allocations: 7.984 kB / 498.6 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.132, allocations: 0 / 498.6 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.132, allocations: 3.938 kB / 498.6 MB, free: 10.36 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003785/0.1324, allocations: 287.3 kB / 498.8 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.609e-05/0.1325, allocations: 93.05 kB / 498.9 MB, free: 9.957 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.761e-05/0.1325, allocations: 4.094 kB / 498.9 MB, free: 9.953 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002157/0.1328, allocations: 31.97 kB / 499 MB, free: 9.922 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.656e-05/0.1328, allocations: 15.91 kB / 499 MB, free: 9.906 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.394e-06/0.1328, allocations: 4 kB / 499 MB, free: 9.902 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003837/0.1332, allocations: 191.2 kB / 499.2 MB, free: 9.715 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1332, allocations: 4 kB / 499.2 MB, free: 9.711 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002494/0.1335, allocations: 27.94 kB / 499.2 MB, free: 9.684 MB / 366.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.0006721/0.1342, allocations: 0.81 MB / 0.4883 GB, free: 8.848 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002445/0.1344, allocations: 112 kB / 0.4884 GB, free: 8.738 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1344, allocations: 0 / 0.4884 GB, free: 8.738 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 9.173e-05/0.1345, allocations: 51.91 kB / 0.4884 GB, free: 8.688 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003295/0.1349, allocations: 27.92 kB / 0.4885 GB, free: 8.66 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00295/0.1378, allocations: 2.103 MB / 0.4905 GB, free: 6.473 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003067/0.1381, allocations: 0.7279 MB / 0.4912 GB, free: 5.719 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.683e-05/0.1382, allocations: 25.06 kB / 0.4913 GB, free: 5.695 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.332e-05/0.1383, allocations: 47.42 kB / 0.4913 GB, free: 5.648 MB / 366.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1383, allocations: 0 / 0.4913 GB, free: 5.648 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02076/0.1591, allocations: 3.144 MB / 0.4944 GB, free: 2.629 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.551/7.71, allocations: 13.69 kB / 0.4944 GB, free: 2.617 MB / 366.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 & python3 -m fmpy simulate --output-file AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator_res.csv --start-time 0 --stop-time 300 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.6 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)