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


Performing analysis on: 4FGL_J1225.0+0330_daily_bin797
RA = 186.252, Dec = 3.5098
tmin = 445910401, tmax = 446169601
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='608415', job_status='RUN', time_executed='2021-09-05 13:51:07.314583', time_epoch_executed='1630875067.31' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='797'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/608415

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/608415/ft1_4FGL_J1225.0+0330_daily_bin797.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/608415/ft2_4FGL_J1225.0+0330_daily_bin797.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/608415/ft1_4FGL_J1225.0+0330_daily_bin797.fits outfile=/scratch/kocevski/608415/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin797.fits ra=186.252 dec=3.5098 rad=12.0 tmin=445910401.0 tmax=446169601.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 3.96
user 3.71
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/608415/ft2_4FGL_J1225.0+0330_daily_bin797.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/608415/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin797.fits evtable="EVENTS" outfile="/scratch/kocevski/608415/ft1_filtered_4FGL_J1225.0+0330_daily_bin797.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/608415/ft1_filtered_4FGL_J1225.0+0330_daily_bin797.fits" evtable="EVENTS" scfile=/scratch/kocevski/608415/ft2_4FGL_J1225.0+0330_daily_bin797.fits sctable="SC_DATA" outfile=/scratch/kocevski/608415/ltcube_445910401_446169601_4FGL_J1225.0+0330_daily_bin797.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/608415/ft2_4FGL_J1225.0+0330_daily_bin797.fits
.....................!
real 11.89
user 11.50
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/608415/ft1_filtered_4FGL_J1225.0+0330_daily_bin797.fits evtable="EVENTS" scfile=/scratch/kocevski/608415/ft2_4FGL_J1225.0+0330_daily_bin797.fits sctable="SC_DATA" expcube=/scratch/kocevski/608415/ltcube_445910401_446169601_4FGL_J1225.0+0330_daily_bin797.fits outfile=/scratch/kocevski/608415/expmap_445910401_446169601_4FGL_J1225.0+0330_daily_bin797.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/608415/ltcube_445910401_446169601_4FGL_J1225.0+0330_daily_bin797.fits
.....................!
real 190.55
user 186.07
sys 4.12

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/608415/ft1_filtered_4FGL_J1225.0+0330_daily_bin797.fits scfile=/scratch/kocevski/608415/ft2_4FGL_J1225.0+0330_daily_bin797.fits outfile=/scratch/kocevski/608415/cmap_445910401_446169601_4FGL_J1225.0+0330_daily_bin797.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.55
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/608415/ft1_filtered_4FGL_J1225.0+0330_daily_bin797.fits scfile=/scratch/kocevski/608415/ft2_4FGL_J1225.0+0330_daily_bin797.fits outfile=/scratch/kocevski/608415/cmap_HighResolution_445910401_446169601_4FGL_J1225.0+0330_daily_bin797.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.53
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.451       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3718       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .65775E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .32612E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11108E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    28.186       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    4.0487       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .40983E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    209.94       1.0000         .10000E-03   10000.    
    18 'norm      '    1.3035       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .90696E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    27.211       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.796       1.0000         .10000E-03   10000.    
    26 'Prefactor '    24.213       1.0000         .10000E-03   10000.    
    27 'norm      '    .10516E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0945       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0405       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=   6790.742     FROM MIGRAD    STATUS=CONVERGED   1391 CALLS     4567 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.454        18.125        .84536E-04   -.29990E-04
   2  Prefactor     .10000E-03    108.23        .18142E-02** at limit **
   3  Prefactor     3.3731        9.4438        .11018E-02   -.18438E-04
   4  Prefactor     .10000E-03    4.6598        .17318E-02** at limit **
   5  Prefactor     .10000E-03    66.474        .54772E-02** at limit **
   6  Prefactor     .10046E-03    15.813        .77905E-01** at limit **
   7  Prefactor     .10000E-03    65.424        .18142E-02** at limit **
   8  Prefactor     .10000E-03    17.853        .18142E-02** at limit **
   9  Prefactor     .10000E-03    47.475        .18142E-02** at limit **
  10  Prefactor     28.171        21.381        .75461E-04   -.84397E-04
  11  Prefactor     .10000E-03    8.9851        .18142E-02** at limit **
  12  Prefactor     .10000E-03    8.7272        .18142E-02** at limit **
  13  norm          .10000E-03    1.8092        .21153E-02** at limit **
  14  norm          4.0488        4.3477        .14371E-03    .40544E-03
  15  Prefactor     .10000E-03    21.906        .18142E-02** at limit **
  16  norm          .10001E-03    50.705        .14878    ** at limit **
  17  Prefactor     209.87        162.90        .13951E-03   -.48895E-06
  18  norm          1.3033        .61551        .39544E-04    .16904E-03
  19  Prefactor     .10002E-03    30.210        .38294E-02** at limit **
  20  Prefactor     27.243        30.709        .76799E-04   -.10004E-03
  21  Prefactor     .10000E-03    3.6994        .15458E-02** at limit **
  22  norm          .10000E-03    1.4091        .14480E-02** at limit **
  23  Prefactor     .10000E-03    2.5490        .12837E-02** at limit **
  24  Prefactor     .10000E-03    50.058        .18142E-02** at limit **
  25  Prefactor     15.800        21.290        .10077E-03   -.21435E-05
  26  Prefactor     24.220        38.825        .81405E-04   -.15921E-04
  27  norm          .10000E-03    14.462        .18142E-02** at limit **
  28  Prefactor     .10000E-03    10.189        .18142E-02** at limit **
  29  Normalizat    1.0946        .24473        .29300E-03   -.43221E-03
  30  Prefactor     1.0404        .19115        .24477E-03   -.37300E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.4537
  Prefactor  = 0.0001
  Prefactor  = 3.37306
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100456
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.171
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.04882
  Prefactor  = 0.0001
  norm       = 0.000100014
  Prefactor  = 209.868
  norm       = 1.30329
  Prefactor  = 0.000100016
  Prefactor  = 27.2426
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.8002
  Prefactor  = 24.2204
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.09456
  Prefactor  = 1.0404
 **********
 **   18 **HESSE 
 **********

 FCN=   6790.742     FROM HESSE     STATUS=OK           578 CALLS     5145 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.454        18.124        .33814E-05   -1.4760    
   2  Prefactor     .10000E-03    108.24        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.3731        9.4385        .44074E-04   -1.5341    
   4  Prefactor     .10000E-03    4.6609        .34635E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    67.680        .10954E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10046E-03    14.131        .83868E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    65.426        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    17.853        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    47.486        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     28.171        21.380        .15092E-04   -1.4646    
  11  Prefactor     .10000E-03    8.9852        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.7294        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.8137        .42306E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.0488        4.3471        .57483E-05   -1.5306    
  15  Prefactor     .10000E-03    21.907        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10001E-03    50.792        .14860       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     209.87        162.90        .27901E-04   -1.2800    
  18  norm          1.3033        .61543        .15818E-05   -1.5480    
  19  Prefactor     .10002E-03    30.493        .76587E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     27.243        30.687        .15360E-04   -1.4664    
  21  Prefactor     .10000E-03    3.6996        .30916E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    1.4120        .28960E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.5491        .25673E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    50.070        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     15.800        21.290        .40309E-05   -1.4913    
  26  Prefactor     24.220        38.833        .32562E-05   -1.4723    
  27  norm          .10000E-03    14.463        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    10.192        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0946        .24476        .58600E-04   -.89927    
  30  Prefactor     1.0404        .19129        .48955E-04   -.91395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10819e-09
Minuit parameter uncertainties:
  1  18.1289
  2  0.000196869
  3  9.44268
  4  5.39842e-06
  5  8.40517e-05
  6  0.00507892
  7  0.000125211
  8  5.13791e-06
  9  0.000163567
  10  21.3859
  11  6.1824e-06
  12  7.94825e-06
  13  1.02954e-06
  14  4.34739
  15  0.000175136
  16  0.00171267
  17  163.255
  18  0.615434
  19  0.00138777
  20  30.7052
  21  1.26991e-07
  22  1.22811e-05
  23  2.19197e-07
  24  3.65339e-06
  25  21.3
  26  38.8735
  27  4.25516e-06
  28  7.76681e-06
  29  0.245017
  30  0.191414
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  1.713e-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:  1.040e+00  1.914e-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.095e+00  2.450e-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: 7.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.12e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/608415/likelihoodResults_445910401_446169601_4FGL_J1225.0+0330_daily_bin797.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) = 6790.74248466
delta logL = -1.15401699077e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6790.74248466
delta logL = -1.15398433991e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96362E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3972       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0946       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0404       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=   6790.742     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      214 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    6961.8        .14636    ** at limit **
   2  alpha         2.3281        3.8326        .41196        .10640E-05
   3  Normalizat    1.0946        .76507E-01    .66231E-01   -.16520E-03
   4  Prefactor     1.0404        .64616E-01    .40507E-01   -.17235E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100011
  alpha      = 2.32812
  Normalizat = 1.09456
  Prefactor  = 1.04041
 **********
 **   18 **HESSE 
 **********

 FCN=   6790.742     FROM HESSE     STATUS=NOT POSDEF    41 CALLS      255 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    8116.0        .15189       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3281        3.3064        .16478       -.68805E-01
   3  Normalizat    1.0946        .17937        .29300E-03   -.89927    
   4  Prefactor     1.0404        .16673        .24477E-03   -.91395    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.87556e-10
Minuit parameter uncertainties:
  1  0.0187276
  2  37.0225
  3  0.179473
  4  0.166815
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/608415': 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) = 6790.74247309
delta logL = 2.65390553977e-08

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  1.873e-02  1.000e-04  1.000e+04 ( 1.000e-13)
333        alpha:  2.328e+00  3.702e+01  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:  1.040e+00  1.668e-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.095e+00  1.795e-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/608415/cmap_HighResolution_445910401_446169601_4FGL_J1225.0+0330_daily_bin797.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.12e-05', job_status='DONE', photon_flux_upper_limit='7.48e-08', time_completed='2021-09-05 14:07:04.987595', job_id='608415', GAL2='1.04', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630876024.99', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.65e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='797' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 14:07:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 608415: <4FGL_J1225.0+0330_daily_bin797> in cluster <slac> Done

Job <4FGL_J1225.0+0330_daily_bin797> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 13:50:51 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:50:53 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:50:53 2021
Terminated at Sun Sep  5 14:07:07 2021
Results reported at Sun Sep  5 14:07:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1225.0+0330_daily_bin797 186.252 3.5098 445910401 446169601 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 :                                   948.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            976 sec.

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

