Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr AES_AES.Coursework.ElecSys_PwrFreq_control.BO_rigid_Islanded_generator.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_PwrFreq_control.BO_rigid_Islanded_generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_PwrFreq_control.BO_rigid_Islanded_generator") translateModel(AES.Coursework.ElecSys_PwrFreq_control.BO_rigid_Islanded_generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ElecSys_PwrFreq_control.BO_rigid_Islanded_generator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09799/0.09799, allocations: 17.69 MB / 33.63 MB, free: 1.621 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.001026/0.001026, allocations: 178.1 kB / 38.92 MB, free: 8.25 MB / 33.03 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.623/1.623, allocations: 205.4 MB / 249.5 MB, free: 2.359 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.000811/0.0008111, allocations: 100.7 kB / 302.2 MB, free: 4.41 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004775/0.0004776, allocations: 16 kB / 366.9 MB, free: 3.613 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.262/0.2625, allocations: 51.98 MB / 418.9 MB, free: 24.37 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.113/0.3756, allocations: 78.47 MB / 497.4 MB, free: 9.785 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003709/0.3761, allocations: 75.95 kB / 497.5 MB, free: 9.711 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01014/0.3862, allocations: 2.818 MB / 0.4886 GB, free: 6.891 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.3863, allocations: 0 / 0.4886 GB, free: 6.891 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.158e-05/0.3863, allocations: 8 kB / 0.4886 GB, free: 6.883 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.001006/0.3873, allocations: 494.6 kB / 0.489 GB, free: 6.348 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.084e-05/0.3874, allocations: 11.97 kB / 0.4891 GB, free: 6.336 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.585e-05/0.3875, allocations: 16.75 kB / 0.4891 GB, free: 6.32 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006933/0.3882, allocations: 288.7 kB / 0.4893 GB, free: 5.996 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.873e-05/0.3882, allocations: 8.375 kB / 0.4894 GB, free: 5.988 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.359e-05/0.3883, allocations: 8.375 kB / 0.4894 GB, free: 5.98 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002557/0.3885, allocations: 120.7 kB / 0.4895 GB, free: 5.848 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.066e-05/0.3885, allocations: 192 / 0.4895 GB, free: 5.848 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.572e-05/0.3886, allocations: 3.938 kB / 0.4895 GB, free: 5.844 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.388e-06/0.3886, allocations: 4 kB / 0.4895 GB, free: 5.84 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002112/0.3888, allocations: 87.88 kB / 0.4896 GB, free: 5.754 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008765/0.3897, allocations: 0.5751 MB / 0.4901 GB, free: 5.121 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003952/0.3901, allocations: 146.4 kB / 0.4903 GB, free: 4.969 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001025/0.3902, allocations: 48.84 kB / 0.4903 GB, free: 4.918 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.738e-05/0.3902, allocations: 3.984 kB / 0.4903 GB, free: 4.914 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.313e-05/0.3903, allocations: 34.55 kB / 0.4904 GB, free: 4.871 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 1.603e-06/0.3903, allocations: 0 / 0.4904 GB, free: 4.871 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003927/0.3907, allocations: 165.6 kB / 0.4905 GB, free: 4.703 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.588e-05/0.3907, allocations: 55.41 kB / 0.4906 GB, free: 4.637 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004699/0.3912, allocations: 251 kB / 0.4908 GB, free: 4.383 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.329e-05/0.3913, allocations: 29.7 kB / 0.4908 GB, free: 4.348 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.91e-05/0.3913, allocations: 120 kB / 0.4909 GB, free: 4.227 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.525e-05/0.3914, allocations: 43.41 kB / 0.491 GB, free: 4.184 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.661e-06/0.3914, allocations: 4 kB / 0.491 GB, free: 4.18 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.3915, allocations: 334.8 kB / 0.4913 GB, free: 3.844 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.786e-05/0.3916, allocations: 35.98 kB / 0.4913 GB, free: 3.809 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.663e-05/0.3917, allocations: 70.47 kB / 0.4914 GB, free: 3.73 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007896/0.3925, allocations: 248.4 kB / 0.4917 GB, free: 3.48 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.3926, allocations: 0 / 0.4917 GB, free: 3.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002922/0.3929, allocations: 171.8 kB / 0.4918 GB, free: 3.309 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/0.3929, allocations: 8 kB / 0.4918 GB, free: 3.301 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.3929, allocations: 384 / 0.4918 GB, free: 3.301 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/0.3929, allocations: 0 / 0.4918 GB, free: 3.301 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001153/0.3931, allocations: 20 kB / 0.4918 GB, free: 3.281 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.284e-05/0.3931, allocations: 11.97 kB / 0.4919 GB, free: 3.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001844/0.3933, allocations: 31.84 kB / 0.4919 GB, free: 3.238 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.723e-05/0.3933, allocations: 7.938 kB / 0.4919 GB, free: 3.23 MB / 362.7 MB Warning: Assuming fixed start value for the following 2 variables: Cps.x_scaled[1]:VARIABLE(fixed = true protected = true ) "Scaled vector x" type: Real [1] g.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000188/0.3935, allocations: 145.8 kB / 0.492 GB, free: 3.078 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.656e-05/0.3935, allocations: 11.81 kB / 0.492 GB, free: 3.066 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.304e-05/0.3936, allocations: 17.41 kB / 0.4921 GB, free: 3.051 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.674e-06/0.3936, allocations: 7.984 kB / 0.4921 GB, free: 3.043 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.623e-06/0.3936, allocations: 0 / 0.4921 GB, free: 3.043 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.3936, allocations: 0 / 0.4921 GB, free: 3.043 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002845/0.3939, allocations: 245.4 kB / 0.4923 GB, free: 2.754 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.394, allocations: 4 kB / 0.4923 GB, free: 2.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001252/0.3941, allocations: 12 kB / 0.4923 GB, free: 2.738 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.3941, allocations: 0 / 0.4923 GB, free: 2.738 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.778e-05/0.3941, allocations: 4 kB / 0.4923 GB, free: 2.734 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.3941, allocations: 0 / 0.4923 GB, free: 2.734 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.999e-06/0.3941, allocations: 7.922 kB / 0.4923 GB, free: 2.727 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004605/0.3946, allocations: 283.2 kB / 0.4926 GB, free: 2.434 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.778e-05/0.3947, allocations: 92.95 kB / 0.4927 GB, free: 2.324 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.12e-05/0.3948, allocations: 8.031 kB / 0.4927 GB, free: 2.316 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002082/0.395, allocations: 27.97 kB / 0.4927 GB, free: 2.289 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.383e-05/0.395, allocations: 3.984 kB / 0.4927 GB, free: 2.285 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.625e-06/0.3951, allocations: 4 kB / 0.4927 GB, free: 2.281 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004089/0.3955, allocations: 203.2 kB / 0.4929 GB, free: 2.082 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.3955, allocations: 3.938 kB / 0.4929 GB, free: 2.078 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002943/0.3958, allocations: 31.91 kB / 0.493 GB, free: 2.047 MB / 362.7 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 (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.0002518/0.396, allocations: 107.2 kB / 0.4931 GB, free: 1.934 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000286/0.3963, allocations: 99.89 kB / 0.4932 GB, free: 1.836 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3963, allocations: 0 / 0.4932 GB, free: 1.836 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001098/0.3965, allocations: 60.06 kB / 0.4932 GB, free: 1.777 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003893/0.3969, allocations: 23.98 kB / 0.4932 GB, free: 1.754 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009266/0.3978, allocations: 360.3 kB / 0.4936 GB, free: 1.375 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004471/0.3983, allocations: 0.7243 MB / 0.4943 GB, free: 0.625 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000118/0.3984, allocations: 33.06 kB / 0.4943 GB, free: 0.5938 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.855e-05/0.3985, allocations: 15.44 kB / 0.4943 GB, free: 0.5781 MB / 362.7 MB Notification: Performance of SimCode: time 5.31e-07/0.3985, allocations: 0 / 0.4943 GB, free: 0.5781 MB / 362.7 MB Notification: Performance of Templates: time 0.2472/0.6457, allocations: 1.168 MB / 0.4955 GB, free: 83.04 MB / 362.7 MB make -j1 -f AES_AES.Coursework.ElecSys_PwrFreq_control.BO_rigid_Islanded_generator.makefile (rm -f AES_AES.Coursework.ElecSys_PwrFreq_control.BO_rigid_Islanded_generator.pipe ; mkfifo AES_AES.Coursework.ElecSys_PwrFreq_control.BO_rigid_Islanded_generator.pipe ; head -c 1048576 < AES_AES.Coursework.ElecSys_PwrFreq_control.BO_rigid_Islanded_generator.pipe >> ../files/AES_AES.Coursework.ElecSys_PwrFreq_control.BO_rigid_Islanded_generator.sim & ./AES_AES.Coursework.ElecSys_PwrFreq_control.BO_rigid_Islanded_generator -abortSlowSimulation -alarm=480 -lv=LOG_STATS -s=dassl -lv LOG_STATS > AES_AES.Coursework.ElecSys_PwrFreq_control.BO_rigid_Islanded_generator.pipe 2>&1)