/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 128 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 = 7471
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1225.0+0330_daily_bin965
RA = 186.252, Dec = 3.5098
tmin = 489456001, tmax = 489715201
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='609721', job_status='RUN', time_executed='2021-09-05 13:57:55.431404', time_epoch_executed='1630875475.43' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='965'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/609721

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/609721/ft1_4FGL_J1225.0+0330_daily_bin965.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/609721/ft2_4FGL_J1225.0+0330_daily_bin965.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/609721/ft1_4FGL_J1225.0+0330_daily_bin965.fits outfile=/scratch/kocevski/609721/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin965.fits ra=186.252 dec=3.5098 rad=12.0 tmin=489456001.0 tmax=489715201.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 5.11
user 4.85
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/609721/ft2_4FGL_J1225.0+0330_daily_bin965.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/609721/ft2_4FGL_J1225.0+0330_daily_bin965.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/609721/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin965.fits evtable="EVENTS" outfile="/scratch/kocevski/609721/ft1_filtered_4FGL_J1225.0+0330_daily_bin965.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.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/609721/ft1_filtered_4FGL_J1225.0+0330_daily_bin965.fits" evtable="EVENTS" scfile=/scratch/kocevski/609721/ft2_4FGL_J1225.0+0330_daily_bin965.fits sctable="SC_DATA" outfile=/scratch/kocevski/609721/ltcube_489456001_489715201_4FGL_J1225.0+0330_daily_bin965.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/609721/ft2_4FGL_J1225.0+0330_daily_bin965.fits
.....................!
real 12.20
user 11.85
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/609721/ft1_filtered_4FGL_J1225.0+0330_daily_bin965.fits evtable="EVENTS" scfile=/scratch/kocevski/609721/ft2_4FGL_J1225.0+0330_daily_bin965.fits sctable="SC_DATA" expcube=/scratch/kocevski/609721/ltcube_489456001_489715201_4FGL_J1225.0+0330_daily_bin965.fits outfile=/scratch/kocevski/609721/expmap_489456001_489715201_4FGL_J1225.0+0330_daily_bin965.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/609721/ltcube_489456001_489715201_4FGL_J1225.0+0330_daily_bin965.fits
.....................!
real 191.22
user 186.22
sys 4.57

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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J1225.0+0330 @ 186.252 3.5098

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/609721/ft1_filtered_4FGL_J1225.0+0330_daily_bin965.fits scfile=/scratch/kocevski/609721/ft2_4FGL_J1225.0+0330_daily_bin965.fits outfile=/scratch/kocevski/609721/cmap_489456001_489715201_4FGL_J1225.0+0330_daily_bin965.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=186.252 yref=3.5098 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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/609721/ft1_filtered_4FGL_J1225.0+0330_daily_bin965.fits scfile=/scratch/kocevski/609721/ft2_4FGL_J1225.0+0330_daily_bin965.fits outfile=/scratch/kocevski/609721/cmap_HighResolution_489456001_489715201_4FGL_J1225.0+0330_daily_bin965.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=186.252 yref=3.5098 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.54
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/609721/ft1_filtered_4FGL_J1225.0+0330_daily_bin965.fits evtable="EVENTS" scfile=/scratch/kocevski/609721/ft2_4FGL_J1225.0+0330_daily_bin965.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/609721/Model_4FGL_J1225.0+0330_daily_bin965.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/609721/ft1_filtered_4FGL_J1225.0+0330_daily_bin965.fits.....................!
real 48.25
user 46.73
sys 1.36

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/609721/ft1_filtered_4FGL_J1225.0+0330_daily_bin965.fits', '/scratch/kocevski/609721/ft2_4FGL_J1225.0+0330_daily_bin965.fits', expMap='/scratch/kocevski/609721/expmap_489456001_489715201_4FGL_J1225.0+0330_daily_bin965.fits', expCube='/scratch/kocevski/609721/ltcube_489456001_489715201_4FGL_J1225.0+0330_daily_bin965.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/609721/Model_4FGL_J1225.0+0330_daily_bin965.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1225.0+0330'

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  8.374e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.397e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
334         beta:  3.465e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  9.640e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/609721/ft1_filtered_4FGL_J1225.0+0330_daily_bin965.fits
Spacecraft file(s): /scratch/kocevski/609721/ft2_4FGL_J1225.0+0330_daily_bin965.fits
Exposure map: /scratch/kocevski/609721/expmap_489456001_489715201_4FGL_J1225.0+0330_daily_bin965.fits
Exposure cube: /scratch/kocevski/609721/ltcube_489456001_489715201_4FGL_J1225.0+0330_daily_bin965.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/609721/Model_4FGL_J1225.0+0330_daily_bin965.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) = 5134.32934314

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10564E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.6258       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12484E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10189E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    89.511       1.0000         .10000E-03   10000.    
     9 'Prefactor '    44.940       1.0000         .10000E-03   10000.    
    10 'Prefactor '    57.670       1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.977       1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.901       1.0000         .10000E-03   10000.    
    13 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.3458       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    173.63       1.0000         .10000E-03   10000.    
    18 'norm      '    .78831E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10332E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.5148       1.0000         .10000E-03   10000.    
    22 'norm      '    2.5586       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.6598       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.401       1.0000         .10000E-03   10000.    
    27 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    27.261       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.6789       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .57673       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5134.301     FROM MIGRAD    STATUS=CONVERGED    757 CALLS     3919 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.191        .98046E-06** at limit **
   2  Prefactor     .10000E-03    64.861        .34143E-05** at limit **
   3  Prefactor     5.6110        17.843        .66764E-06    .33930E-04
   4  Prefactor     .10012E-03    5.0436        .45030E-08** at limit **
   5  Prefactor     .10000E-03    8.1804       -.13220E-06** at limit **
   6  Prefactor     .10000E-03    7.2494        .21985E-06** at limit **
   7  Prefactor     .10000E-03    81.649       -.33243E-05** at limit **
   8  Prefactor     89.519        78.237        .16193E-05    .47140E-04
   9  Prefactor     44.847        59.098       -.12170E-04   -.43709E-03
  10  Prefactor     57.678        37.567        .13655E-05    .99154E-04
  11  Prefactor     22.977        33.520        .69236E-06    .38397E-05
  12  Prefactor     30.897        21.010       -.42138E-06    .68567E-04
  13  norm          .10000E-03    3.1170        .97975E-07** at limit **
  14  norm          2.3394        6.2648        .52264E-06    .19020E-03
  15  Prefactor     .10000E-03    33.148       -.20307E-05** at limit **
  16  norm          .10000E-03    19.444        .69370E-06** at limit **
  17  Prefactor     173.64        168.36        .14097E-05    .34089E-04
  18  norm          .78235E-01    .80819       -.26331E-06   -.36201E-05
  19  Prefactor     .10000E-03    3.9292        .74681E-07** at limit **
  20  Prefactor     .10000E-03    80.643       -.21524E-05** at limit **
  21  Prefactor     3.5146        6.0274        .30853E-05   -.16768E-03
  22  norm          2.5581        2.1434        .29347E-07    .14350E-03
  23  Prefactor     3.6589        10.739        .10621E-04   -.16734E-03
  24  Prefactor     .10000E-03    12.949       -.14522E-05** at limit **
  25  Prefactor     .10000E-03    17.906        .58958E-06** at limit **
  26  Prefactor     14.388        42.142       -.18844E-05   -.44673E-04
  27  norm          .10000E-03    63.686        .22140E-05** at limit **
  28  Prefactor     27.249        19.412       -.64925E-07    .34126E-04
  29  Normalizat    1.6798        .27182        .41117E-05   -.14264E-03
  30  Prefactor     .57623        .20184       -.61014E-05    .13598E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 5.61103
  Prefactor  = 0.000100119
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 89.5187
  Prefactor  = 44.8473
  Prefactor  = 57.6777
  Prefactor  = 22.9765
  Prefactor  = 30.8966
  norm       = 0.0001
  norm       = 2.33939
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 173.644
  norm       = 0.0782349
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 3.5146
  norm       = 2.55807
  Prefactor  = 3.65889
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 14.3878
  norm       = 0.0001
  Prefactor  = 27.2489
  Normalizat = 1.67976
  Prefactor  = 0.576233
 **********
 **   18 **HESSE 
 **********

 FCN=   5134.301     FROM HESSE     STATUS=OK           582 CALLS     4501 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    65.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.6110        17.936        .16937E-03   -1.5234    
   4  Prefactor     .10012E-03    37.910        .31002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.1872        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    7.2558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    81.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     89.519        78.261        .42470E-04   -1.3813    
   9  Prefactor     44.847        62.446        .59807E-04   -1.4368    
  10  Prefactor     57.678        37.536        .52827E-04   -1.4188    
  11  Prefactor     22.977        33.281        .83564E-04   -1.4749    
  12  Prefactor     30.897        20.405        .72078E-04   -1.4596    
  13  norm          .10000E-03    3.1778        .24377E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.3394        5.8553        .21820E-03   -1.5402    
  15  Prefactor     .10000E-03    33.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    19.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     173.64        168.03        .15312E-03   -1.3065    
  18  norm          .78235E-01    1.4755        .95615E-03   -1.5652    
  19  Prefactor     .10000E-03    3.9311        .13871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    81.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.5146        6.0353        .10782E-02   -1.5333    
  22  norm          2.5581        2.1171        .88911E-04   -1.5388    
  23  Prefactor     3.6589        10.964        .10557E-02   -1.5325    
  24  Prefactor     .10000E-03    12.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    17.916        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     14.388        42.180        .10555E-03   -1.4949    
  27  norm          .10000E-03    64.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     27.249        19.465        .76728E-04   -1.4663    
  29  Normalizat    1.6798        .31763        .26431E-03   -.72845    
  30  Prefactor     .57623        .23089        .32774E-03   -1.0860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54153e-08
Minuit parameter uncertainties:
  1  9.42454e-05
  2  0.00105467
  3  17.9534
  4  0.00424194
  5  1.83523e-05
  6  1.21078e-06
  7  0.000909722
  8  78.351
  9  62.5374
  10  37.5513
  11  33.3083
  12  20.4101
  13  6.46113e-06
  14  5.85677
  15  0.000350146
  16  9.3182e-05
  17  168.5
  18  0.6791
  19  6.81237e-07
  20  0.000830516
  21  6.0363
  22  2.11714
  23  10.9705
  24  0.000163827
  25  5.54968e-05
  26  42.2679
  27  9.32121e-05
  28  19.4699
  29  0.318012
  30  0.231274
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  9.318e-05  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.397e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
334         beta:  3.465e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  9.640e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  5.762e-01  2.313e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  1.680e+00  3.180e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 186.252 3.510
Photon Flux Upper Limit: 6.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.74e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/609721/likelihoodResults_489456001_489715201_4FGL_J1225.0+0330_daily_bin965.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): 0
logL (Free Index) = 5134.30113091
delta logL = -0.000243735952608

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5134.30088719
delta logL = -1.54577719513e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3916       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6798       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57623       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5134.301     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      200 TOTAL
                     EDM=   .61E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    19.402        .90712E-02** at limit **
   2  alpha         2.3969        3.5290        .41201       -.13598E-05
   3  Normalizat    1.6798        .24713        .59772E-01   -.52648E-06
   4  Prefactor     .57623        .19144        .74026E-01    .24719E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.39686
  Normalizat = 1.67977
  Prefactor  = 0.576228
 **********
 **   18 **HESSE 
 **********

 FCN=   5134.301     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    19.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3969        3.5274        .50000       -.41267E-01
   3  Normalizat    1.6798        .28483        .26431E-03   -.72845    
   4  Prefactor     .57623        .22020        .32774E-03   -1.0860    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85841e-12
Minuit parameter uncertainties:
  1  1.39288e-06
  2  2.49842
  3  0.285106
  4  0.22053
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/609721': 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): 0
logL (Free Index) = 5134.30088717
delta logL = 8.18545231596e-11

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  1.393e-06  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.397e+00  2.498e+00  0.000e+00  5.000e+00 ( 1.000e+00)
334         beta:  3.465e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
335           Eb:  9.640e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
594    Prefactor:  5.762e-01  2.205e-01  0.000e+00  1.000e+01 ( 1.000e+00)
595        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
596        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
593   Normalization:  1.680e+00  2.851e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 186.252 3.510

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/609721/cmap_HighResolution_489456001_489715201_4FGL_J1225.0+0330_daily_bin965.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.74e-05', job_status='DONE', photon_flux_upper_limit='6.56e-08', time_completed='2021-09-05 14:10:43.745605', job_id='609721', GAL2='0.58', fit_tolerance='1e-08', EG2='1.68', EG='1.68', time_epoch_completed='1630876243.75', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='8.19e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='965' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:10:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 609721: <4FGL_J1225.0+0330_daily_bin965> in cluster <slac> Done

Job <4FGL_J1225.0+0330_daily_bin965> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:55:37 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:55:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 13:55:39 2021
Terminated at Sun Sep  5 14:10:44 2021
Results reported at Sun Sep  5 14:10:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin965 186.252 3.5098 489456001 489715201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1225.0+0330 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   763.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             331.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            907 sec.

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

