/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 182 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 = 7485
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1225.0+0330_daily_bin271
RA = 186.252, Dec = 3.5098
tmin = 309571201, tmax = 309830401
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='606372', job_status='RUN', time_executed='2021-09-05 13:48:40.615884', time_epoch_executed='1630874920.62' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='271'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/606372

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/606372/ft1_4FGL_J1225.0+0330_daily_bin271.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/606372/ft2_4FGL_J1225.0+0330_daily_bin271.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/606372/ft1_4FGL_J1225.0+0330_daily_bin271.fits outfile=/scratch/kocevski/606372/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin271.fits ra=186.252 dec=3.5098 rad=12.0 tmin=309571201.0 tmax=309830401.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 6.23
user 5.97
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/606372/ft2_4FGL_J1225.0+0330_daily_bin271.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/606372/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin271.fits evtable="EVENTS" outfile="/scratch/kocevski/606372/ft1_filtered_4FGL_J1225.0+0330_daily_bin271.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.49
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/606372/ft1_filtered_4FGL_J1225.0+0330_daily_bin271.fits" evtable="EVENTS" scfile=/scratch/kocevski/606372/ft2_4FGL_J1225.0+0330_daily_bin271.fits sctable="SC_DATA" outfile=/scratch/kocevski/606372/ltcube_309571201_309830401_4FGL_J1225.0+0330_daily_bin271.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/606372/ft2_4FGL_J1225.0+0330_daily_bin271.fits
.....................!
real 11.77
user 11.39
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/606372/ft1_filtered_4FGL_J1225.0+0330_daily_bin271.fits evtable="EVENTS" scfile=/scratch/kocevski/606372/ft2_4FGL_J1225.0+0330_daily_bin271.fits sctable="SC_DATA" expcube=/scratch/kocevski/606372/ltcube_309571201_309830401_4FGL_J1225.0+0330_daily_bin271.fits outfile=/scratch/kocevski/606372/expmap_309571201_309830401_4FGL_J1225.0+0330_daily_bin271.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/606372/ltcube_309571201_309830401_4FGL_J1225.0+0330_daily_bin271.fits
.....................!
real 189.98
user 185.21
sys 4.00

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/606372/ft1_filtered_4FGL_J1225.0+0330_daily_bin271.fits scfile=/scratch/kocevski/606372/ft2_4FGL_J1225.0+0330_daily_bin271.fits outfile=/scratch/kocevski/606372/cmap_309571201_309830401_4FGL_J1225.0+0330_daily_bin271.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.52
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/606372/ft1_filtered_4FGL_J1225.0+0330_daily_bin271.fits scfile=/scratch/kocevski/606372/ft2_4FGL_J1225.0+0330_daily_bin271.fits outfile=/scratch/kocevski/606372/cmap_HighResolution_309571201_309830401_4FGL_J1225.0+0330_daily_bin271.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.56
user 0.37
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/606372/ft1_filtered_4FGL_J1225.0+0330_daily_bin271.fits', '/scratch/kocevski/606372/ft2_4FGL_J1225.0+0330_daily_bin271.fits', expMap='/scratch/kocevski/606372/expmap_309571201_309830401_4FGL_J1225.0+0330_daily_bin271.fits', expCube='/scratch/kocevski/606372/ltcube_309571201_309830401_4FGL_J1225.0+0330_daily_bin271.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/606372/Model_4FGL_J1225.0+0330_daily_bin271.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/606372/ft1_filtered_4FGL_J1225.0+0330_daily_bin271.fits
Spacecraft file(s): /scratch/kocevski/606372/ft2_4FGL_J1225.0+0330_daily_bin271.fits
Exposure map: /scratch/kocevski/606372/expmap_309571201_309830401_4FGL_J1225.0+0330_daily_bin271.fits
Exposure cube: /scratch/kocevski/606372/ltcube_309571201_309830401_4FGL_J1225.0+0330_daily_bin271.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/606372/Model_4FGL_J1225.0+0330_daily_bin271.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) = 5101.83949581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    29.818       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.699       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.659       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10227E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    43.914       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .98156       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.6242       1.0000         .10000E-03   10000.    
    13 'norm      '    .10115E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.9186       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2872       1.0000         .10000E-03   10000.    
    16 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.9464       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.4794       1.0000         .10000E-03   10000.    
    22 'norm      '    3.0475       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.485       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .15141E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    10.379       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.5832       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .50502       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5970E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5101.834     FROM MIGRAD    STATUS=CONVERGED     93 CALLS     3210 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10059E-03    11.897       -.20638E-04** at limit **
   2  Prefactor     29.791        9.2337       -.98572E-05    .12584E-01
   3  Prefactor     19.704        1.0361        .17814E-06   -.25635E-03
   4  Prefactor     .10000E-03    4.3320       -.29189E-06** at limit **
   5  Prefactor     24.664        1.0621        .25656E-06   -.87653E-04
   6  Prefactor     .10009E-03    6.2605        .10293E-04** at limit **
   7  Prefactor     .10000E-03    31.623       -.25573E-04** at limit **
   8  Prefactor     .10000E-03    18.793        .34511E-04** at limit **
   9  Prefactor     43.923        2.7299        .22018E-05   -.36338E-02
  10  Prefactor     .96040        1.5141        .22434E-05   -.69540E-05
  11  Prefactor     .10015E-03    13.000       -.14789E-04** at limit **
  12  Prefactor     8.6213        1.0589        .63266E-06    .45012E-03
  13  norm          .10000E-03    1.8569       -.53939E-06** at limit **
  14  norm          5.9191        4.0576       -.20435E-05   -.58907E-03
  15  Prefactor     1.2835        1.5395       -.54475E-05    .19761E-03
  16  norm          .10008E-03    16.520        .21738E-04** at limit **
  17  Prefactor     .10010E-03    27.279       -.17381E-04** at limit **
  18  norm          3.9467        .91334        .10261E-06   -.11651E-03
  19  Prefactor     .10000E-03    2.6841       -.24934E-06** at limit **
  20  Prefactor     .10000E-03    7.0631        .40630E-06** at limit **
  21  Prefactor     1.4782        1.0809       -.53216E-06   -.27895E-04
  22  norm          3.0483        2.4283        .68812E-06    .38174E-03
  23  Prefactor     .10000E-03    5.0271        .18088E-06** at limit **
  24  Prefactor     16.485        1.0014       -.55921E-07    .47156E-04
  25  Prefactor     .10072E-03    19.355        .67673E-05** at limit **
  26  Prefactor     .10062E-03    7.6212        .22315E-04** at limit **
  27  norm          .10008E-03    27.420       -.28731E-04** at limit **
  28  Prefactor     10.383        1.0841        .62484E-06    .59612E-04
  29  Normalizat    1.5825        .28118        .51766E-07    .11225E-04
  30  Prefactor     .50552        .21650        .18062E-06    .17786E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100587
  Prefactor  = 29.7914
  Prefactor  = 19.7036
  Prefactor  = 0.0001
  Prefactor  = 24.6644
  Prefactor  = 0.000100088
  Prefactor  = 0.000100001
  Prefactor  = 0.000100002
  Prefactor  = 43.9234
  Prefactor  = 0.960395
  Prefactor  = 0.00010015
  Prefactor  = 8.62131
  norm       = 0.0001
  norm       = 5.91906
  Prefactor  = 1.28347
  norm       = 0.000100085
  Prefactor  = 0.000100101
  norm       = 3.94668
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.47824
  norm       = 3.04829
  Prefactor  = 0.0001
  Prefactor  = 16.4853
  Prefactor  = 0.00010072
  Prefactor  = 0.00010062
  norm       = 0.000100084
  Prefactor  = 10.3825
  Normalizat = 1.58246
  Prefactor  = 0.505516
 **********
 **   18 **HESSE 
 **********

 FCN=   5101.834     FROM HESSE     STATUS=OK           650 CALLS     3860 TOTAL
                     EDM=   .54E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10059E-03    16.617        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     29.791        92.300        .18343E-02   -1.4616    
   3  Prefactor     19.704        14.318        .22560E-02   -1.4820    
   4  Prefactor     .10000E-03    4.3059        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.664        21.007        .20167E-02   -1.4714    
   6  Prefactor     .10009E-03    15.640        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    80.313        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    50.131        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     43.923        39.098        .15125E-02   -1.4381    
  10  Prefactor     .96040        18.056        .13100       -1.5512    
  11  Prefactor     .10015E-03    13.810        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.6213        9.9716        .34124E-02   -1.5121    
  13  norm          .10000E-03    1.1992        .41873E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.9191        4.0779        .41266E-02   -1.5221    
  15  Prefactor     1.2835        299.94        .97653E-02   -1.5481    
  16  norm          .10008E-03    45.880        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10010E-03    77.700        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.9467        .92403        .50765E-02   -1.5311    
  19  Prefactor     .10000E-03    2.6832        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.0605        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.4782        21.472        .88231E-02   -1.5465    
  22  norm          3.0483        2.4629        .58102E-02   -1.5359    
  23  Prefactor     .10000E-03    5.0038        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     16.485        57.031        .24661E-02   -1.4896    
  25  Prefactor     .10072E-03    68.759        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10062E-03    14.967        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10008E-03    38.894        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     10.383        12.904        .31093E-02   -1.5063    
  29  Normalizat    1.5825        .25219        .57017E-01   -.75487    
  30  Prefactor     .50552        .19010        .74919E-01   -1.1172    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.36344e-06
Minuit parameter uncertainties:
  1  0.00624921
  2  92.7473
  3  14.3204
  4  1.04447e-06
  5  21.0131
  6  0.00234506
  7  0.00060902
  8  0.000596166
  9  39.1213
  10  8.33094
  11  0.00288128
  12  9.97351
  13  6.75948e-06
  14  4.07806
  15  39.4406
  16  0.00394559
  17  0.00560643
  18  0.924029
  19  1.16742e-05
  20  2.24694e-06
  21  11.2721
  22  2.46299
  23  1.17401e-05
  24  57.2207
  25  0.0140848
  26  0.00609318
  27  0.00362414
  28  12.9076
  29  0.252394
  30  0.190343
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.001e-04  3.946e-03  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.055e-01  1.903e-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.582e+00  2.524e-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: 8.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.57e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/606372/likelihoodResults_309571201_309830401_4FGL_J1225.0+0330_daily_bin271.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) = 5101.83420928
delta logL = -0.000103568027953

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5101.83410718
delta logL = -1.46429283632e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10261E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2445       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5825       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50552       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5101.834     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      282 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    986.32        .18142E-01** at limit **
   2  alpha         2.2248        3.3473        .17494        .43736E-07
   3  Normalizat    1.5825        .27980E-01    .25211E-03    .26699E-03
   4  Prefactor     .50552        .22126E-01    .33176E-03    .20050E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100032
  alpha      = 2.22479
  Normalizat = 1.58246
  Prefactor  = 0.505516
 **********
 **   18 **HESSE 
 **********

 FCN=   5101.834     FROM HESSE     STATUS=OK            23 CALLS      305 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10003E-03    52.422        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2248        3.8385        .69975E-02   -.11031    
   3  Normalizat    1.5825        .27288        .50422E-04   -.75487    
   4  Prefactor     .50552        .21563        .13271E-04   -1.1172    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.03115e-10
Minuit parameter uncertainties:
  1  0.00260476
  2  777.146
  3  0.273139
  4  0.215984
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/606372': 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) = 5101.83410568
delta logL = 3.20078470395e-08

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  2.605e-03  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.225e+00  7.771e+02  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.055e-01  2.160e-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.582e+00  2.731e-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/606372/cmap_HighResolution_309571201_309830401_4FGL_J1225.0+0330_daily_bin271.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.57e-05', job_status='DONE', photon_flux_upper_limit='8.55e-08', time_completed='2021-09-05 14:00:57.375507', job_id='606372', GAL2='0.51', fit_tolerance='1e-08', EG2='1.58', EG='1.58', time_epoch_completed='1630875657.38', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.51', dlogl='3.20e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='271' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:00:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 606372: <4FGL_J1225.0+0330_daily_bin271> in cluster <slac> Done

Job <4FGL_J1225.0+0330_daily_bin271> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 13:45:24 2021
Job was executed on host(s) <bullet0050>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:45:26 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:45:26 2021
Terminated at Sun Sep  5 14:00:58 2021
Results reported at Sun Sep  5 14:00:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin271 186.252 3.5098 309571201 309830401 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 :                                   733.03 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   931 sec.
    Turnaround time :                            934 sec.

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

