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


Performing analysis on: 4FGL_J1225.0+0330_daily_bin56
RA = 186.252, Dec = 3.5098
tmin = 253843201, tmax = 254102401
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='605116', job_status='RUN', time_executed='2021-09-05 13:42:04.360241', time_epoch_executed='1630874524.36' WHERE source_name='4FGL J1225.0+0330' and cadence='daily' and bin_id='56'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/605116

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/605116/ft1_4FGL_J1225.0+0330_daily_bin56.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/605116/ft2_4FGL_J1225.0+0330_daily_bin56.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/605116/ft1_4FGL_J1225.0+0330_daily_bin56.fits outfile=/scratch/kocevski/605116/ft1_filteredMKT_4FGL_J1225.0+0330_daily_bin56.fits ra=186.252 dec=3.5098 rad=12.0 tmin=253843201.0 tmax=254102401.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 2.02
user 1.29
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/605116/ft1_filtered_4FGL_J1225.0+0330_daily_bin56.fits" evtable="EVENTS" scfile=/scratch/kocevski/605116/ft2_4FGL_J1225.0+0330_daily_bin56.fits sctable="SC_DATA" outfile=/scratch/kocevski/605116/ltcube_253843201_254102401_4FGL_J1225.0+0330_daily_bin56.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/605116/ft2_4FGL_J1225.0+0330_daily_bin56.fits
.....................!
real 13.06
user 12.48
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/605116/ft1_filtered_4FGL_J1225.0+0330_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/605116/ft2_4FGL_J1225.0+0330_daily_bin56.fits sctable="SC_DATA" expcube=/scratch/kocevski/605116/ltcube_253843201_254102401_4FGL_J1225.0+0330_daily_bin56.fits outfile=/scratch/kocevski/605116/expmap_253843201_254102401_4FGL_J1225.0+0330_daily_bin56.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/605116/ltcube_253843201_254102401_4FGL_J1225.0+0330_daily_bin56.fits
.....................!
real 193.04
user 187.21
sys 4.49

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/605116/ft1_filtered_4FGL_J1225.0+0330_daily_bin56.fits scfile=/scratch/kocevski/605116/ft2_4FGL_J1225.0+0330_daily_bin56.fits outfile=/scratch/kocevski/605116/cmap_253843201_254102401_4FGL_J1225.0+0330_daily_bin56.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.65
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/605116/ft1_filtered_4FGL_J1225.0+0330_daily_bin56.fits scfile=/scratch/kocevski/605116/ft2_4FGL_J1225.0+0330_daily_bin56.fits outfile=/scratch/kocevski/605116/cmap_HighResolution_253843201_254102401_4FGL_J1225.0+0330_daily_bin56.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.64
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16335E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10920E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.091       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.6752       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.5554       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10140E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.9018       1.0000         .10000E-03   10000.    
    14 'norm      '    2.9662       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10379E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11625E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    85.579       1.0000         .10000E-03   10000.    
    18 'norm      '    1.7698       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11545E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.091       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    11.575       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10203E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .36322E-01   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11136E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10343E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.5296       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .69375       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=   6832.432     FROM MIGRAD    STATUS=CONVERGED    797 CALLS     3902 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.766       -.43635E-06** at limit **
   2  Prefactor     .10000E-03    35.331        .17315E-05** at limit **
   3  Prefactor     .10000E-03    2.6414        .44243E-07** at limit **
   4  Prefactor     .10000E-03    2.6811        .76161E-07** at limit **
   5  Prefactor     .10000E-03    5.0834        .11706E-07** at limit **
   6  Prefactor     .10000E-03    23.660       -.31039E-05** at limit **
   7  Prefactor     .10000E-03    22.483        .50206E-05** at limit **
   8  Prefactor     12.073        35.796        .32610E-04    .12252E-04
   9  Prefactor     .10000E-03    13.005        .24379E-05** at limit **
  10  Prefactor     3.6623        30.853       -.14786E-04   -.39688E-04
  11  Prefactor     9.5426        20.341       -.16334E-04   -.19803E-04
  12  Prefactor     .10000E-03    14.608       -.11328E-05** at limit **
  13  norm          1.9016        2.6067        .26890E-06   -.36449E-03
  14  norm          2.9660        3.2419        .35139E-06   -.34163E-03
  15  Prefactor     .10000E-03    11.249       -.28418E-05** at limit **
  16  norm          .10000E-03    24.745       -.24738E-05** at limit **
  17  Prefactor     85.594        125.96        .10400E-04    .39897E-05
  18  norm          1.7699        .62297        .22547E-07    .10119E-03
  19  Prefactor     .10000E-03    10.533        .96348E-06** at limit **
  20  Prefactor     12.048        25.413        .73944E-05   -.23813E-04
  21  Prefactor     .10000E-03    4.2174       -.13884E-08** at limit **
  22  norm          11.576        2.4789       -.29361E-07    .23611E-04
  23  Prefactor     .10000E-03    3.2733       -.19958E-08** at limit **
  24  Prefactor     .10000E-03    11.964        .61543E-06** at limit **
  25  Prefactor     .10261E-03    41.119       -.14377E-05** at limit **
  26  Prefactor     .10000E-03    23.812       -.14479E-05** at limit **
  27  norm          .10000E-03    8.2289        .41664E-07** at limit **
  28  Prefactor     .10000E-03    8.7868       -.45399E-07** at limit **
  29  Normalizat    1.5297        .20839        .36771E-06    .91949E-04
  30  Prefactor     .69378        .16502       -.18675E-06    .90259E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 12.0732
  Prefactor  = 0.0001
  Prefactor  = 3.66229
  Prefactor  = 9.54263
  Prefactor  = 0.0001
  norm       = 1.90164
  norm       = 2.96595
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 85.5939
  norm       = 1.76991
  Prefactor  = 0.000100001
  Prefactor  = 12.0482
  Prefactor  = 0.0001
  norm       = 11.5761
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000102611
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.52972
  Prefactor  = 0.693779
 **********
 **   18 **HESSE 
 **********

 FCN=   6832.432     FROM HESSE     STATUS=OK           584 CALLS     4486 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    35.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.6446        .13120E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.6859        .13217E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.0899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    24.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.073        35.774        .11521E-03   -1.5013    
   9  Prefactor     .10000E-03    13.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.6623        30.781        .21069E-03   -1.5325    
  11  Prefactor     9.5426        20.326        .12964E-03   -1.5090    
  12  Prefactor     .10000E-03    14.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.9016        2.5686        .14665E-03   -1.5432    
  14  norm          2.9660        3.2237        .14190E-03   -1.5364    
  15  Prefactor     .10000E-03    11.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    24.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     85.594        125.93        .43426E-04   -1.3855    
  18  norm          1.7699        .61849        .35300E-04   -1.5442    
  19  Prefactor     .10000E-03    10.798        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.048        25.388        .11520E-03   -1.5014    
  21  Prefactor     .10000E-03    4.2738        .16576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          11.576        2.4802        .57114E-04   -1.5027    
  23  Prefactor     .10000E-03    3.2964        .14603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    11.973        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10261E-03    38.935        .15326       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    23.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    8.2325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    8.8526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.5297        .24708        .26255E-03   -.76946    
  30  Prefactor     .69378        .19415        .29989E-03   -1.0377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.07993e-10
Minuit parameter uncertainties:
  1  2.3203e-05
  2  7.55136e-06
  3  2.69739e-07
  4  8.72065e-06
  5  1.03275e-06
  6  0.000508509
  7  1.21729e-06
  8  35.838
  9  2.15881e-05
  10  21.2492
  11  20.341
  12  0.00011556
  13  2.56875
  14  3.22394
  15  5.4098e-06
  16  2.47976e-06
  17  126.326
  18  0.61849
  19  0.000150432
  20  25.411
  21  2.68519e-07
  22  2.48023
  23  3.77986e-08
  24  7.70235e-07
  25  0.0201785
  26  1.06035e-05
  27  3.90375e-08
  28  1.20473e-05
  29  0.247279
  30  0.194336
Done.

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

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  2.480e-06  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:  6.938e-01  1.943e-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.530e+00  2.473e-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.23e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.60e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/605116/likelihoodResults_253843201_254102401_4FGL_J1225.0+0330_daily_bin56.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) = 6832.43238771
delta logL = -0.000192279221665

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6832.43219545
delta logL = -1.33913999889e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3923       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5297       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69379       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=   6832.432     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      201 TOTAL
                     EDM=   .36E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    24.617        .90712E-02** at limit **
   2  alpha         2.3966        3.5289        .41200       -.88703E-06
   3  Normalizat    1.5297        .20135        .59373E-01   -.40581E-05
   4  Prefactor     .69378        .16283        .67773E-01    .22172E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.39664
  Normalizat = 1.52972
  Prefactor  = 0.693779
 **********
 **   18 **HESSE 
 **********

 FCN=   6832.432     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .98E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    24.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3966        3.5273        .50000       -.41356E-01
   3  Normalizat    1.5297        .23678        .26255E-03   -.76946    
   4  Prefactor     .69378        .19123        .29989E-03   -1.0377    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.80344e-13
Minuit parameter uncertainties:
  1  1.72839e-05
  2  2.49839
  3  0.236951
  4  0.191408
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/605116': 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) = 6832.43219544
delta logL = -1.96450855583e-10

Extracting fit parameters...

4FGL J1225.0+0330
   Spectrum: LogParabola
332         norm:  1.000e-04  1.728e-05  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:  6.938e-01  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.530e+00  2.370e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/605116/cmap_HighResolution_253843201_254102401_4FGL_J1225.0+0330_daily_bin56.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.60e-05', job_status='DONE', photon_flux_upper_limit='6.23e-08', time_completed='2021-09-05 13:57:42.285797', job_id='605116', GAL2='0.69', fit_tolerance='1e-08', EG2='1.53', EG='1.53', time_epoch_completed='1630875462.29', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='-1.96e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='56' AND source_name='4FGL J1225.0+0330' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:57:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 605116: <4FGL_J1225.0+0330_daily_bin56> in cluster <slac> Done

Job <4FGL_J1225.0+0330_daily_bin56> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 13:41:28 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:41:30 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:41:30 2021
Terminated at Sun Sep  5 13:57:43 2021
Results reported at Sun Sep  5 13:57:43 2021

Your job looked like:

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

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

