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: translateModel(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator") translateModel(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001682/0.001682, allocations: 110.6 kB / 15.79 MB, free: 5.527 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.00184/0.00184, allocations: 196.5 kB / 16.72 MB, free: 5.426 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.532/1.532, allocations: 225.6 MB / 243.1 MB, free: 3.715 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09844/0.09844, allocations: 22.67 MB / 318.7 MB, free: 9.828 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00188/0.00188, allocations: 64.27 kB / 448.9 MB, free: 39.96 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1243/0.1262, allocations: 58.03 MB / 0.4951 GB, free: 8.789 MB / 366.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator): time 0.002026/0.1283, allocations: 1.021 MB / 0.4961 GB, free: 7.773 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001138/0.1294, allocations: 1.213 MB / 0.4973 GB, free: 6.543 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.07e-05/0.1295, allocations: 3.938 kB / 0.4973 GB, free: 6.539 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003056/0.1298, allocations: 43.77 kB / 0.4973 GB, free: 6.496 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001342/0.1299, allocations: 39.77 kB / 0.4973 GB, free: 6.457 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001905/0.1301, allocations: 83.81 kB / 0.4974 GB, free: 6.375 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002187/0.1303, allocations: 223.6 kB / 0.4976 GB, free: 6.156 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.627e-05/0.1304, allocations: 29.36 kB / 0.4977 GB, free: 6.121 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.599e-05/0.1305, allocations: 87.73 kB / 0.4978 GB, free: 6.035 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001538/0.1307, allocations: 99.56 kB / 0.4978 GB, free: 5.938 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.724e-05/0.1307, allocations: 12 kB / 0.4979 GB, free: 5.926 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.968e-05/0.1307, allocations: 8 kB / 0.4979 GB, free: 5.918 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.899e-05/0.1308, allocations: 43.83 kB / 0.4979 GB, free: 5.875 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.016e-05/0.1308, allocations: 63.59 kB / 0.498 GB, free: 5.812 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001516/0.131, allocations: 123.4 kB / 0.4981 GB, free: 5.691 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.131, allocations: 0 / 0.4981 GB, free: 5.691 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.131, allocations: 8 kB / 0.4981 GB, free: 5.684 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.131, allocations: 0 / 0.4981 GB, free: 5.684 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.0009086/0.1319, allocations: 0.5081 MB / 0.4986 GB, free: 5.129 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.1319, allocations: 12.03 kB / 0.4986 GB, free: 5.117 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.166e-05/0.132, allocations: 16.84 kB / 0.4986 GB, free: 5.102 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004429/0.1324, allocations: 292.8 kB / 0.4989 GB, free: 4.773 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.586e-05/0.1324, allocations: 16.31 kB / 0.4989 GB, free: 4.758 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.425e-05/0.1325, allocations: 12.33 kB / 0.4989 GB, free: 4.746 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001867/0.1326, allocations: 118.2 kB / 0.499 GB, free: 4.617 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.1327, allocations: 0 / 0.499 GB, free: 4.617 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.353e-05/0.1327, allocations: 4 kB / 0.499 GB, free: 4.613 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.1327, allocations: 4 kB / 0.499 GB, free: 4.609 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001669/0.1328, allocations: 87.88 kB / 0.4991 GB, free: 4.523 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005795/0.1334, allocations: 0.5829 MB / 0.4997 GB, free: 3.883 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000326/0.1338, allocations: 134.5 kB / 0.4998 GB, free: 3.742 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.079e-05/0.1338, allocations: 52.83 kB / 0.4999 GB, free: 3.688 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.525e-05/0.1338, allocations: 0 / 0.4999 GB, free: 3.688 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.302e-05/0.1339, allocations: 34.56 kB / 0.4999 GB, free: 3.645 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 8.92e-07/0.1339, allocations: 0 / 0.4999 GB, free: 3.645 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003318/0.1342, allocations: 169.6 kB / 0.5001 GB, free: 3.473 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.056e-05/0.1342, allocations: 55.72 kB / 0.5001 GB, free: 3.406 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003694/0.1346, allocations: 262.6 kB / 0.5004 GB, free: 3.141 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.095e-05/0.1346, allocations: 25.7 kB / 0.5004 GB, free: 3.109 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.587e-05/0.1346, allocations: 120.2 kB / 0.5005 GB, free: 2.988 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.402e-05/0.1347, allocations: 43.56 kB / 0.5006 GB, free: 2.945 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.986e-05/0.1347, allocations: 29.72 kB / 0.5006 GB, free: 2.91 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.97e-05/0.1348, allocations: 334.8 kB / 0.5009 GB, free: 2.574 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.213e-05/0.1348, allocations: 31.98 kB / 0.5009 GB, free: 2.543 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.258e-05/0.1349, allocations: 66.53 kB / 0.501 GB, free: 2.469 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007141/0.1356, allocations: 254.3 kB / 0.5012 GB, free: 2.211 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.165e-06/0.1356, allocations: 0 / 0.5012 GB, free: 2.211 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002209/0.1358, allocations: 163.7 kB / 0.5014 GB, free: 2.047 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.1359, allocations: 8 kB / 0.5014 GB, free: 2.039 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.1359, allocations: 4.062 kB / 0.5014 GB, free: 2.035 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.769e-05/0.1359, allocations: 0 / 0.5014 GB, free: 2.035 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001171/0.136, allocations: 24 kB / 0.5014 GB, free: 2.012 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/0.136, allocations: 7.922 kB / 0.5014 GB, free: 2.004 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001753/0.1362, allocations: 27.92 kB / 0.5015 GB, free: 1.977 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.739e-06/0.1362, allocations: 7.938 kB / 0.5015 GB, free: 1.969 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.0001378/0.1363, allocations: 137.7 kB / 0.5016 GB, free: 1.824 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.762e-05/0.1364, allocations: 15.91 kB / 0.5016 GB, free: 1.809 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.428e-05/0.1364, allocations: 21.41 kB / 0.5016 GB, free: 1.785 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.091e-06/0.1364, allocations: 7.984 kB / 0.5016 GB, free: 1.777 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.1364, allocations: 3.938 kB / 0.5017 GB, free: 1.773 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.1364, allocations: 0 / 0.5017 GB, free: 1.773 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002063/0.1367, allocations: 229.6 kB / 0.5019 GB, free: 1.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.1367, allocations: 4 kB / 0.5019 GB, free: 1.496 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001215/0.1368, allocations: 16 kB / 0.5019 GB, free: 1.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.1368, allocations: 0 / 0.5019 GB, free: 1.48 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.1368, allocations: 8 kB / 0.5019 GB, free: 1.473 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.1368, allocations: 3.938 kB / 0.5019 GB, free: 1.469 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.1368, allocations: 7.922 kB / 0.5019 GB, free: 1.461 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003018/0.1371, allocations: 279.3 kB / 0.5022 GB, free: 1.172 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.651e-05/0.1371, allocations: 97.02 kB / 0.5023 GB, free: 1.059 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.366e-05/0.1372, allocations: 4.031 kB / 0.5023 GB, free: 1.055 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001989/0.1374, allocations: 23.97 kB / 0.5023 GB, free: 1.031 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.181e-05/0.1374, allocations: 16.02 kB / 0.5023 GB, free: 1.016 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.542e-06/0.1374, allocations: 7.938 kB / 0.5023 GB, free: 1.008 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002996/0.1377, allocations: 191.2 kB / 0.5025 GB, free: 0.8203 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1377, allocations: 0 / 0.5025 GB, free: 0.8203 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002505/0.138, allocations: 23.94 kB / 0.5025 GB, free: 0.7969 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 9.299e-05/0.138, allocations: 103.8 kB / 0.5026 GB, free: 0.6875 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002145/0.1383, allocations: 103.9 kB / 0.5027 GB, free: 0.5859 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.1383, allocations: 0 / 0.5027 GB, free: 0.5859 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 7.11e-05/0.1383, allocations: 51.91 kB / 0.5028 GB, free: 0.5352 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003087/0.1386, allocations: 29.64 kB / 0.5028 GB, free: 0.5078 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005053/0.1391, allocations: 328.5 kB / 0.5031 GB, free: 168 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003336/0.1395, allocations: 0.7279 MB / 0.5038 GB, free: 15.41 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 7.371e-05/0.1396, allocations: 29.06 kB / 0.5039 GB, free: 15.38 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.516e-05/0.1396, allocations: 11.44 kB / 0.5039 GB, free: 15.37 MB / 382.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1396, allocations: 7.938 kB / 0.5039 GB, free: 15.36 MB / 382.1 MB Notification: Performance of Templates: time 0.004392/0.144, allocations: 1.373 MB / 0.5052 GB, free: 14 MB / 382.1 MB make -j1 -f AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.makefile (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 & ./AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -lv LOG_STATS > AES_AES.Coursework.ElecSys_power_frequency_control.BO_rigid_Islanded_generator.pipe 2>&1)