Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Running command: translateModel(AES.Coursework.ElecSys_generator_models.TurbineFollows,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_generator_models.TurbineFollows") translateModel(AES.Coursework.ElecSys_generator_models.TurbineFollows,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_generator_models.TurbineFollows") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.07817/0.07817, allocations: 17.69 MB / 33.64 MB, free: 1.742 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0011/0.0011, allocations: 179.4 kB / 38.92 MB, free: 16 kB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.556/1.556, allocations: 205.4 MB / 249.5 MB, free: 2.352 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000855/0.0008551, allocations: 95.48 kB / 302.2 MB, free: 4.418 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004392/0.0004394, allocations: 12 kB / 366.9 MB, free: 3.617 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2318/0.2323, allocations: 51.98 MB / 418.9 MB, free: 24.39 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1111/0.3434, allocations: 81.09 MB / 0.4883 GB, free: 7.184 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002857/0.3437, allocations: 79.94 kB / 0.4884 GB, free: 7.105 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2096/0.5533, allocations: 8.418 MB / 0.4966 GB, free: 80.31 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.5534, allocations: 2.734 kB / 0.4966 GB, free: 80.31 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.292e-05/0.5534, allocations: 19.88 kB / 0.4966 GB, free: 80.31 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001038/0.5544, allocations: 0.7523 MB / 0.4974 GB, free: 79.78 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.5545, allocations: 10.02 kB / 0.4974 GB, free: 79.78 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001039/0.5546, allocations: 62.81 kB / 0.4974 GB, free: 79.75 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006135/0.5552, allocations: 448.6 kB / 0.4978 GB, free: 79.48 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.323e-05/0.5553, allocations: 27 kB / 0.4979 GB, free: 79.48 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.221e-05/0.5553, allocations: 40.53 kB / 0.4979 GB, free: 79.47 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008897/0.5562, allocations: 432.1 kB / 0.4983 GB, free: 79.36 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.5563, allocations: 1.562 kB / 0.4983 GB, free: 79.36 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.001e-05/0.5563, allocations: 20.75 kB / 0.4983 GB, free: 79.36 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.291e-05/0.5563, allocations: 8.25 kB / 0.4984 GB, free: 79.36 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006183/0.557, allocations: 298.2 kB / 0.4986 GB, free: 79.35 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00186/0.5588, allocations: 1.556 MB / 0.5002 GB, free: 78.51 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007622/0.5596, allocations: 370.5 kB / 0.5005 GB, free: 78.47 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002643/0.5599, allocations: 145.7 kB / 0.5006 GB, free: 78.46 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.819e-05/0.5599, allocations: 7.422 kB / 0.5007 GB, free: 78.46 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.327e-05/0.56, allocations: 39.8 kB / 0.5007 GB, free: 78.41 MB / 362.7 MB Notification: Performance of pre-optimization done (n=28): time 1.634e-06/0.56, allocations: 0 / 0.5007 GB, free: 78.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=28): time 0.0009233/0.5609, allocations: 430.1 kB / 0.5011 GB, free: 78.35 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.307e-05/0.561, allocations: 113.5 kB / 0.5012 GB, free: 78.22 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004619/0.5614, allocations: 418.1 kB / 0.5016 GB, free: 78.1 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.602e-05/0.5615, allocations: 31.89 kB / 0.5016 GB, free: 78.07 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001592/0.5616, allocations: 258.5 kB / 0.5019 GB, free: 77.94 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.898e-05/0.5617, allocations: 106.3 kB / 0.502 GB, free: 77.86 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.311e-05/0.5617, allocations: 5.156 kB / 0.502 GB, free: 77.86 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001037/0.5618, allocations: 357.3 kB / 0.5023 GB, free: 77.52 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002527/0.5621, allocations: 116.8 kB / 0.5024 GB, free: 77.48 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000294/0.5624, allocations: 206.9 kB / 0.5026 GB, free: 77.34 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001448/0.5639, allocations: 0.5763 MB / 0.5032 GB, free: 77.09 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.5639, allocations: 7.938 kB / 0.5032 GB, free: 77.08 MB / 362.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0006873/0.5646, allocations: 404.9 kB / 0.5036 GB, free: 76.91 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.699e-05/0.5646, allocations: 139.8 kB / 0.5037 GB, free: 76.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/0.5647, allocations: 2.031 kB / 0.5037 GB, free: 76.75 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.821e-05/0.5647, allocations: 3.906 kB / 0.5037 GB, free: 76.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003214/0.565, allocations: 79.78 kB / 0.5038 GB, free: 76.74 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.828e-06/0.565, allocations: 2.688 kB / 0.5038 GB, free: 76.74 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000215/0.5652, allocations: 42.75 kB / 0.5039 GB, free: 76.72 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.399e-05/0.5653, allocations: 12.38 kB / 0.5039 GB, free: 76.71 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.623e-06/0.5653, allocations: 3.719 kB / 0.5039 GB, free: 76.71 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003985/0.5657, allocations: 259.7 kB / 0.5041 GB, free: 76.61 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.835e-06/0.5657, allocations: 2.312 kB / 0.5041 GB, free: 76.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.5e-06/0.5657, allocations: 7.438 kB / 0.5041 GB, free: 76.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002465/0.566, allocations: 68.27 kB / 0.5042 GB, free: 76.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.566, allocations: 3.344 kB / 0.5042 GB, free: 76.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001578/0.5661, allocations: 29.97 kB / 0.5042 GB, free: 76.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.99e-05/0.5662, allocations: 12.81 kB / 0.5042 GB, free: 76.57 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: T.y:VARIABLE(start = T.y_start fixed = true ) "Connector of Real output signal" type: Real F.y:VARIABLE(start = F.y_start fixed = true ) "Connector of Real output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (PIe.I.local_reset,PIp.I.local_reset,S.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0002833/0.5665, allocations: 247.3 kB / 0.5045 GB, free: 76.35 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.029e-05/0.5665, allocations: 46.44 kB / 0.5045 GB, free: 76.32 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.418e-05/0.5666, allocations: 64.69 kB / 0.5046 GB, free: 76.28 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.221e-06/0.5667, allocations: 6.938 kB / 0.5046 GB, free: 76.28 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/0.5667, allocations: 3.938 kB / 0.5046 GB, free: 76.27 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.5667, allocations: 2.219 kB / 0.5046 GB, free: 76.27 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005224/0.5672, allocations: 466.8 kB / 0.505 GB, free: 75.97 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.5672, allocations: 0 / 0.505 GB, free: 75.97 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003081/0.5675, allocations: 53.2 kB / 0.5051 GB, free: 75.97 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.5675, allocations: 0.6562 kB / 0.5051 GB, free: 75.97 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.393e-05/0.5676, allocations: 9.906 kB / 0.5051 GB, free: 75.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.5676, allocations: 5.469 kB / 0.5051 GB, free: 75.96 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.5676, allocations: 1.062 kB / 0.5051 GB, free: 75.96 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001103/0.5687, allocations: 0.5787 MB / 0.5057 GB, free: 75.65 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001443/0.5689, allocations: 146 kB / 0.5058 GB, free: 75.51 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.2e-05/0.5689, allocations: 12.66 kB / 0.5058 GB, free: 75.5 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002235/0.5691, allocations: 25.45 kB / 0.5058 GB, free: 75.5 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.903e-05/0.5692, allocations: 14.64 kB / 0.5059 GB, free: 75.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.657e-05/0.5692, allocations: 10.09 kB / 0.5059 GB, free: 75.49 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002887/0.5695, allocations: 291.8 kB / 0.5062 GB, free: 75.35 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5695, allocations: 0 / 0.5062 GB, free: 75.35 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005447/0.5701, allocations: 142.5 kB / 0.5063 GB, free: 75.31 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (F.y,S.y,T.y,PIp.I.y,PIe.I.y) * 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 (28): * Single equations (assignments): 28 * 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.0001399/0.5702, allocations: 118 kB / 0.5064 GB, free: 75.21 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007254/0.571, allocations: 438.2 kB / 0.5068 GB, free: 75.07 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.571, allocations: 0 / 0.5068 GB, free: 75.07 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002629/0.5712, allocations: 137.9 kB / 0.5069 GB, free: 75.03 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007291/0.572, allocations: 108.5 kB / 0.5071 GB, free: 74.99 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001496/0.5735, allocations: 0.9782 MB / 0.508 GB, free: 74.38 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002867/0.5738, allocations: 0.8388 MB / 0.5088 GB, free: 73.67 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002199/0.574, allocations: 47.64 kB / 0.5089 GB, free: 73.66 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.808e-05/0.5741, allocations: 30.12 kB / 0.5089 GB, free: 73.66 MB / 362.7 MB Notification: Performance of SimCode: time 2.2e-07/0.5741, allocations: 0 / 0.5089 GB, free: 73.66 MB / 362.7 MB Notification: Performance of Templates: time 0.007158/0.5813, allocations: 4.157 MB / 0.513 GB, free: 72.8 MB / 362.7 MB make -j1 -f AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.makefile (rm -f AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe ; mkfifo AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe >> ../files/AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.sim & ./AES_AES.Coursework.ElecSys_generator_models.TurbineFollows -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ElecSys_generator_models.TurbineFollows.pipe 2>&1)