/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 13 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 27232
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0227.8+2246_monthly_bin118
RA = 36.9544, Dec = 22.7775
tmin = 542851201, tmax = 545443201
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='957078', job_status='RUN', time_executed='2021-10-10 13:20:41.006104', time_epoch_executed='1633897241.01' WHERE source_name='4FGL J0227.8+2246' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/957078

Creating custom pfile directory:
/scratch/kocevski/957078/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=542851201.0 && nMetStart<545443201.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=542851201.0 && nMetStart<545443201.0' /Data/Flight/Level1/LPA

Retrieving 176 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/957078/ft1_4FGL_J0227.8+2246_monthly_bin118.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=542851201.0 && nMetStart<545443201.0' /Data/Flight/Level1/LPA

Retrieving 178 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/957078/ft2_4FGL_J0227.8+2246_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/957078/ft1_4FGL_J0227.8+2246_monthly_bin118.fits outfile=/scratch/kocevski/957078/ft1_filteredMKT_4FGL_J0227.8+2246_monthly_bin118.fits ra=36.9544 dec=22.7775 rad=12.0 tmin=542851201.0 tmax=545443201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 18.44
user 17.81
sys 0.58

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/957078/ft2_4FGL_J0227.8+2246_monthly_bin118.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/957078/ft2_4FGL_J0227.8+2246_monthly_bin118.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/957078/ft1_filteredMKT_4FGL_J0227.8+2246_monthly_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/957078/ft1_filtered_4FGL_J0227.8+2246_monthly_bin118.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.61
user 0.42
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/957078/ft1_filtered_4FGL_J0227.8+2246_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/957078/ft2_4FGL_J0227.8+2246_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/957078/ltcube_542851201_545443201_4FGL_J0227.8+2246_monthly_bin118.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/957078/ft2_4FGL_J0227.8+2246_monthly_bin118.fits
.....................!
real 40.06
user 39.67
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/957078/ft1_filtered_4FGL_J0227.8+2246_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/957078/ft2_4FGL_J0227.8+2246_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/957078/ltcube_542851201_545443201_4FGL_J0227.8+2246_monthly_bin118.fits outfile=/scratch/kocevski/957078/expmap_542851201_545443201_4FGL_J0227.8+2246_monthly_bin118.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/957078/ltcube_542851201_545443201_4FGL_J0227.8+2246_monthly_bin118.fits
.....................!
real 191.46
user 185.92
sys 5.16

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 162 point sources and 0 extended sources

Setting source of interest to:
4FGL J0227.8+2246 @ 36.9544 22.7775

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/957078/ft1_filtered_4FGL_J0227.8+2246_monthly_bin118.fits scfile=/scratch/kocevski/957078/ft2_4FGL_J0227.8+2246_monthly_bin118.fits outfile=/scratch/kocevski/957078/cmap_542851201_545443201_4FGL_J0227.8+2246_monthly_bin118.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=36.9544 yref=22.7775 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.61
user 0.44
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/957078/ft1_filtered_4FGL_J0227.8+2246_monthly_bin118.fits scfile=/scratch/kocevski/957078/ft2_4FGL_J0227.8+2246_monthly_bin118.fits outfile=/scratch/kocevski/957078/cmap_HighResolution_542851201_545443201_4FGL_J0227.8+2246_monthly_bin118.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=36.9544 yref=22.7775 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.64
user 0.46
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/957078/ft1_filtered_4FGL_J0227.8+2246_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/957078/ft2_4FGL_J0227.8+2246_monthly_bin118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/957078/Model_4FGL_J0227.8+2246_monthly_bin118.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/957078/ft1_filtered_4FGL_J0227.8+2246_monthly_bin118.fits....................!
real 30.26
user 28.89
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/957078/ft1_filtered_4FGL_J0227.8+2246_monthly_bin118.fits', '/scratch/kocevski/957078/ft2_4FGL_J0227.8+2246_monthly_bin118.fits', expMap='/scratch/kocevski/957078/expmap_542851201_545443201_4FGL_J0227.8+2246_monthly_bin118.fits', expCube='/scratch/kocevski/957078/ltcube_542851201_545443201_4FGL_J0227.8+2246_monthly_bin118.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/957078/Model_4FGL_J0227.8+2246_monthly_bin118.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0227.8+2246'

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  5.054e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
243        Index:  2.144e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/957078/ft1_filtered_4FGL_J0227.8+2246_monthly_bin118.fits
Spacecraft file(s): /scratch/kocevski/957078/ft2_4FGL_J0227.8+2246_monthly_bin118.fits
Exposure map: /scratch/kocevski/957078/expmap_542851201_545443201_4FGL_J0227.8+2246_monthly_bin118.fits
Exposure cube: /scratch/kocevski/957078/ltcube_542851201_545443201_4FGL_J0227.8+2246_monthly_bin118.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/957078/Model_4FGL_J0227.8+2246_monthly_bin118.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 1237.2537896

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 1237.02884825

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10358E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.8032       1.0000         .10000E-03   10000.    
     4 'Prefactor '    86.104       1.0000         .10000E-03   10000.    
     5 'norm      '    .31767E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1008.3       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.2223       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    101.35       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    19.759       1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.102       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.2868       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    288.64       1.0000         .10000E-03   10000.    
    27 'Prefactor '    67.089       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .33171       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0189       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1237.029     FROM MIGRAD    STATUS=CONVERGED    701 CALLS     4250 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    95.192        .10649E-05** at limit **
   2  Prefactor     .10000E-03    190.67       -.13738E-05** at limit **
   3  norm          2.8030        2.3502       -.94988E-07   -.43053E-04
   4  Prefactor     86.103        51.693       -.21026E-05   -.29796E-04
   5  norm          .10000E-03    16.652       -.27930E-05** at limit **
   6  Prefactor     1008.8        899.53       -.43298E-05    .26218E-04
   7  Prefactor     4.2221        7.1365       -.52867E-06   -.66056E-04
   8  Prefactor     .10000E-03    21.009       -.45957E-06** at limit **
   9  Prefactor     .10000E-03    20.450        .41983E-06** at limit **
  10  Prefactor     .10000E-03    20.824       -.35447E-06** at limit **
  11  norm          101.38        360.28       -.28040E-05    .91294E-06
  12  Prefactor     .10000E-03    24.606       -.44658E-06** at limit **
  13  Prefactor     .10000E-03    7.7350       -.56612E-07** at limit **
  14  Prefactor     .10000E-03    65.074       -.30664E-06** at limit **
  15  Prefactor     .10000E-03    7.6615       -.53528E-07** at limit **
  16  norm          19.758        8.8367       -.53113E-06   -.67286E-04
  17  Prefactor     28.101        24.691       -.77433E-06   -.22986E-04
  18  norm          .10000E-03    .74971       -.29769E-07** at limit **
  19  Prefactor     .10000E-03    51.726       -.49884E-06** at limit **
  20  Prefactor     .10000E-03    14.659       -.68454E-07** at limit **
  21  Prefactor     .10000E-03    76.270       -.10654E-06** at limit **
  22  Prefactor     9.2854        30.087       -.41530E-05   -.32882E-04
  23  Prefactor     .10000E-03    30.514        .40099E-06** at limit **
  24  Prefactor     .10000E-03    68.127       -.18938E-06** at limit **
  25  norm          .10000E-03    11.955       -.32881E-08** at limit **
  26  Prefactor     288.47        880.96       -.10307E-04   -.82863E-05
  27  Prefactor     67.109        58.013       -.10325E-05   -.80010E-05
  28  Normalizat    .33120        .66077        .43414E-04   -.48886E-05
  29  Prefactor     1.0190        .27706       -.81312E-05    .14545E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.000100005
  norm       = 2.80304
  Prefactor  = 86.1029
  norm       = 0.0001
  Prefactor  = 1008.77
  Prefactor  = 4.22211
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 101.378
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.7582
  Prefactor  = 28.1009
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.28537
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 288.47
  Prefactor  = 67.1095
  Normalizat = 0.3312
  Prefactor  = 1.01901
 **********
 **   18 **HESSE 
 **********

 FCN=   1237.029     FROM HESSE     STATUS=OK           537 CALLS     4787 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    95.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    190.53        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.8030        2.3492        .47995E-04   -1.5373    
   4  Prefactor     86.103        51.816        .43295E-04   -1.3849    
   5  norm          .10000E-03    38.345        .27489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1008.8        897.43        .66424E-04   -.92438    
   7  Prefactor     4.2221        7.1437        .11794E-03   -1.5297    
   8  Prefactor     .10000E-03    21.118        .15734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.604        .15508E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.892        .15685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          101.38        360.81        .39936E-04   -1.3691    
  12  Prefactor     .10000E-03    24.593        .17043E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.7379        .95557E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    65.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.6638        .95100E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          19.758        8.8581        .65233E-04   -1.4819    
  17  Prefactor     28.101        24.678        .75574E-04   -1.4647    
  18  norm          .10000E-03    .77603        .59314E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    51.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.661        .13156E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    76.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     9.2854        30.282        .13151E-03   -1.5098    
  23  Prefactor     .10000E-03    30.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    68.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    11.955        .11880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     288.47        882.67        .11946E-03   -1.2295    
  27  Prefactor     67.109        58.149        .49001E-04   -1.4068    
  28  Normalizat    .33120        .67087        .62640E-03   -1.2102    
  29  Prefactor     1.0190        .28092        .16292E-03   -.92099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40987e-10
Minuit parameter uncertainties:
  1  0.00110178
  2  0.00186004
  3  2.34925
  4  51.8427
  5  7.95685e-05
  6  911.271
  7  7.14516
  8  3.25381e-05
  9  0.000186083
  10  8.24191e-07
  11  369.109
  12  0.000203216
  13  1.28415e-06
  14  0.000249019
  15  5.84252e-07
  16  8.85869
  17  24.6873
  18  2.14335e-06
  19  0.000303445
  20  3.78201e-06
  21  0.000247359
  22  30.3318
  23  0.000261675
  24  0.000117086
  25  4.05193e-06
  26  929.747
  27  58.1986
  28  0.688231
  29  0.281321
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 1237.02884478

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.000e-04  2.490e-04  1.000e-04  1.000e+04 ( 1.000e-14)
243        Index:  2.144e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.019e+00  2.813e-01  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  3.312e-01  6.882e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 36.954 22.777
Photon Flux Upper Limit: 2.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.81e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/957078/likelihoodResults_542851201_545443201_4FGL_J0227.8+2246_monthly_bin118.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1237.02891767
delta logL = -7.28836459984e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1237.02884627
delta logL = -1.4900581391e-06

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .21473E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3221       1.0000          .0000       10.000    
     3 'Normalizat'    .33120       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0190       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5300E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1237.029     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      274 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10262E-03    18.260        .18142E-01** at limit **
   2  Index         2.2455        5.5109        .50000        .70374E-05
   3  Normalizat    .33120        .82983E-02    .62646E-03   -.78126E-05
   4  Prefactor     1.0190        .37057E-02    .16292E-03   -.13677E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102617
  Index      = 2.24555
  Normalizat = 0.331201
  Prefactor  = 1.01901
 **********
 **   18 **HESSE 
 **********

 FCN=   1237.029     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      303 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10262E-03    187.03        .25409E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2455        8.3177        .50000       -.58343    
   3  Normalizat    .33120        .26711E-01    .25058E-04   -1.2102    
   4  Prefactor     1.0190        .11928E-01    .65169E-05   -.92099    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.04236e-09
Minuit parameter uncertainties:
  1  0.0443879
  2  256.048
  3  0.0267116
  4  0.0119284
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/957078': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1237.02884496
delta logL = -1.70850398717e-07

Extracting fit parameters...

4FGL J0227.8+2246
   Spectrum: PowerLaw
242    Prefactor:  1.026e-04  4.439e-02  1.000e-04  1.000e+04 ( 1.000e-14)
243        Index:  2.246e+00  2.560e+02  0.000e+00  1.000e+01 (-1.000e+00)
244        Scale:  2.284e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
527    Prefactor:  1.019e+00  1.193e-02  0.000e+00  1.000e+01 ( 1.000e+00)
528        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
529        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
526   Normalization:  3.312e-01  2.671e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 36.954 22.777

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/957078/cmap_HighResolution_542851201_545443201_4FGL_J0227.8+2246_monthly_bin118.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/957078

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.81e-02', job_status='DONE', photon_flux_upper_limit='2.39e-07', time_completed='2021-10-10 13:30:12.905437', job_id='957078', GAL2='1.02', fit_tolerance='1e-08', EG2='0.33', EG='0.33', time_epoch_completed='1633897812.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='-1.71e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='118' AND source_name='4FGL J0227.8+2246' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sun Oct 10 13:30:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 957078: <4FGL_J0227.8+2246_monthly_bin118> in cluster <slac> Done

Job <4FGL_J0227.8+2246_monthly_bin118> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Oct 10 13:20:17 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Oct 10 13:20:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Oct 10 13:20:19 2021
Terminated at Sun Oct 10 13:30:13 2021
Results reported at Sun Oct 10 13:30:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0227.8+2246_monthly_bin118 36.9544 22.7775 542851201 545443201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0227.8+2246 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   558.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             271.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   594 sec.
    Turnaround time :                            596 sec.

The output (if any) is above this job summary.

