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


Performing analysis on: 4FGL_J1222.5+0414_daily_bin976
RA = 185.627, Dec = 4.2389
tmin = 492307201, tmax = 492566401
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='540331', job_status='RUN', time_executed='2021-09-05 10:29:29.344850', time_epoch_executed='1630862969.34' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='976'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/540331

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/540331/ft1_4FGL_J1222.5+0414_daily_bin976.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/540331/ft2_4FGL_J1222.5+0414_daily_bin976.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/540331/ft1_4FGL_J1222.5+0414_daily_bin976.fits outfile=/scratch/kocevski/540331/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin976.fits ra=185.627 dec=4.2389 rad=12.0 tmin=492307201.0 tmax=492566401.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.68
user 3.46
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/540331/ft2_4FGL_J1222.5+0414_daily_bin976.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/540331/ft2_4FGL_J1222.5+0414_daily_bin976.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/540331/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin976.fits evtable="EVENTS" outfile="/scratch/kocevski/540331/ft1_filtered_4FGL_J1222.5+0414_daily_bin976.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.51
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/540331/ft1_filtered_4FGL_J1222.5+0414_daily_bin976.fits" evtable="EVENTS" scfile=/scratch/kocevski/540331/ft2_4FGL_J1222.5+0414_daily_bin976.fits sctable="SC_DATA" outfile=/scratch/kocevski/540331/ltcube_492307201_492566401_4FGL_J1222.5+0414_daily_bin976.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/540331/ft2_4FGL_J1222.5+0414_daily_bin976.fits
.....................!
real 11.89
user 11.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/540331/ft1_filtered_4FGL_J1222.5+0414_daily_bin976.fits evtable="EVENTS" scfile=/scratch/kocevski/540331/ft2_4FGL_J1222.5+0414_daily_bin976.fits sctable="SC_DATA" expcube=/scratch/kocevski/540331/ltcube_492307201_492566401_4FGL_J1222.5+0414_daily_bin976.fits outfile=/scratch/kocevski/540331/expmap_492307201_492566401_4FGL_J1222.5+0414_daily_bin976.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/540331/ltcube_492307201_492566401_4FGL_J1222.5+0414_daily_bin976.fits
.....................!
real 190.73
user 185.95
sys 4.43

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

Setting source of interest to:
4FGL J1222.5+0414 @ 185.627 4.2389

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/540331/ft1_filtered_4FGL_J1222.5+0414_daily_bin976.fits scfile=/scratch/kocevski/540331/ft2_4FGL_J1222.5+0414_daily_bin976.fits outfile=/scratch/kocevski/540331/cmap_492307201_492566401_4FGL_J1222.5+0414_daily_bin976.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=185.627 yref=4.2389 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.69
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/540331/ft1_filtered_4FGL_J1222.5+0414_daily_bin976.fits scfile=/scratch/kocevski/540331/ft2_4FGL_J1222.5+0414_daily_bin976.fits outfile=/scratch/kocevski/540331/cmap_HighResolution_492307201_492566401_4FGL_J1222.5+0414_daily_bin976.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=185.627 yref=4.2389 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/540331/ft1_filtered_4FGL_J1222.5+0414_daily_bin976.fits evtable="EVENTS" scfile=/scratch/kocevski/540331/ft2_4FGL_J1222.5+0414_daily_bin976.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/540331/Model_4FGL_J1222.5+0414_daily_bin976.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/540331/ft1_filtered_4FGL_J1222.5+0414_daily_bin976.fits.....................!
real 41.22
user 39.61
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/540331/ft1_filtered_4FGL_J1222.5+0414_daily_bin976.fits', '/scratch/kocevski/540331/ft2_4FGL_J1222.5+0414_daily_bin976.fits', expMap='/scratch/kocevski/540331/expmap_492307201_492566401_4FGL_J1222.5+0414_daily_bin976.fits', expCube='/scratch/kocevski/540331/ltcube_492307201_492566401_4FGL_J1222.5+0414_daily_bin976.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/540331/Model_4FGL_J1222.5+0414_daily_bin976.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1222.5+0414'

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  3.414e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  2.686e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  9.636e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  3.451e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/540331/ft1_filtered_4FGL_J1222.5+0414_daily_bin976.fits
Spacecraft file(s): /scratch/kocevski/540331/ft2_4FGL_J1222.5+0414_daily_bin976.fits
Exposure map: /scratch/kocevski/540331/expmap_492307201_492566401_4FGL_J1222.5+0414_daily_bin976.fits
Exposure cube: /scratch/kocevski/540331/ltcube_492307201_492566401_4FGL_J1222.5+0414_daily_bin976.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/540331/Model_4FGL_J1222.5+0414_daily_bin976.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) = 4236.69078363

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    99.723       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.515       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.002       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .24945E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    3.1553       1.0000         .10000E-03   10000.    
    13 'norm      '    4.1944       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    42.251       1.0000         .10000E-03   10000.    
    16 'Prefactor '    154.83       1.0000         .10000E-03   10000.    
    17 'norm      '    .26736       1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.093       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.3236       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    13.961       1.0000         .10000E-03   10000.    
    26 'Prefactor '    47.846       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2195       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .83151       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6090E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4236.660     FROM MIGRAD    STATUS=CONVERGED    650 CALLS     3407 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.538       -.66839E-06** at limit **
   2  Prefactor     99.857        144.36       -.29380E-05    .32996E-04
   3  Prefactor     10.515        11.445       -.20311E-06    .74183E-04
   4  Prefactor     .10000E-03    7.5760       -.57814E-06** at limit **
   5  Prefactor     21.001        17.885       -.12961E-06    .28343E-04
   6  Prefactor     .10000E-03    16.728        .11093E-07** at limit **
   7  Prefactor     .10000E-03    37.530        .14363E-07** at limit **
   8  Prefactor     .10000E-03    15.138       -.95460E-06** at limit **
   9  Prefactor     .10000E-03    23.001       -.49089E-06** at limit **
  10  Prefactor     .10000E-03    25.453        .38271E-06** at limit **
  11  Prefactor     .10001E-03    58.026       -.19054E-04** at limit **
  12  norm          3.1531        3.4529        .32462E-06    .96848E-03
  13  norm          4.1950        6.3589        .87784E-06    .76081E-03
  14  Prefactor     .10000E-03    18.478        .10251E-05** at limit **
  15  norm          42.297        82.797        .27438E-05    .95426E-04
  16  Prefactor     154.62        146.46        .24946E-05    .10510E-04
  17  norm          .26652        .69016       -.12083E-05   -.72827E-04
  18  Prefactor     15.092        12.092       -.89736E-07    .10507E-04
  19  Prefactor     .10000E-03    16.882        .94527E-07** at limit **
  20  Prefactor     .10000E-03    5.8268        .14334E-06** at limit **
  21  norm          4.3246        2.4475        .31689E-06    .54815E-03
  22  Prefactor     .10000E-03    5.1039        .19257E-07** at limit **
  23  Prefactor     .10000E-03    19.084        .30417E-06** at limit **
  24  Prefactor     .10000E-03    30.743       -.12771E-06** at limit **
  25  norm          13.965        23.417       -.16230E-06    .93551E-05
  26  Prefactor     47.845        22.881       -.32273E-06    .98248E-04
  27  Normalizat    1.2196        .27298        .16569E-05    .40020E-04
  28  Prefactor     .83139        .20575        .63946E-06    .56314E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 99.8573
  Prefactor  = 10.5148
  Prefactor  = 0.0001
  Prefactor  = 21.0012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100011
  norm       = 3.15308
  norm       = 4.19499
  Prefactor  = 0.0001
  norm       = 42.2972
  Prefactor  = 154.623
  norm       = 0.266518
  Prefactor  = 15.0923
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.32457
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.9654
  Prefactor  = 47.8446
  Normalizat = 1.21963
  Prefactor  = 0.831389
 **********
 **   18 **HESSE 
 **********

 FCN=   4236.660     FROM HESSE     STATUS=OK           515 CALLS     3922 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     99.857        144.55        .20129E-03   -1.3706    
   3  Prefactor     10.515        11.441        .12356E-03   -1.5059    
   4  Prefactor     .10000E-03    7.7048        .17495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.001        17.895        .87401E-04   -1.4791    
   6  Prefactor     .10000E-03    16.863        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    37.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.089        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    25.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    58.221        .40420E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.1531        3.1442        .11035E-03   -1.5353    
  13  norm          4.1950        6.4398        .14181E-03   -1.5298    
  14  Prefactor     .10000E-03    18.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          42.297        83.053        .61672E-04   -1.4406    
  16  Prefactor     154.62        146.38        .16199E-03   -1.3215    
  17  norm          .26652        .67275        .72229E-04   -1.5605    
  18  Prefactor     15.092        12.092        .10310E-03   -1.4931    
  19  Prefactor     .10000E-03    16.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.8562        .15342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.3246        2.4420        .71959E-04   -1.5292    
  22  Prefactor     .10000E-03    5.1428        .14358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    19.092        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    30.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          13.965        23.417        .10720E-03   -1.4960    
  26  Prefactor     47.845        22.922        .57970E-04   -1.4323    
  27  Normalizat    1.2196        .30507        .27202E-03   -.85998    
  28  Prefactor     .83139        .23511        .26363E-03   -.98581    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0267e-09
Minuit parameter uncertainties:
  1  5.89001e-05
  2  145.064
  3  11.4431
  4  2.37792e-05
  5  17.8997
  6  0.000109304
  7  3.32219e-06
  8  7.17809e-05
  9  6.89511e-05
  10  0.000236913
  11  0.00159147
  12  3.14437
  13  6.44088
  14  0.000181528
  15  83.2813
  16  146.725
  17  0.672766
  18  12.0941
  19  5.38718e-05
  20  6.97245e-06
  21  2.44206
  22  1.28133e-05
  23  2.99912e-05
  24  4.4087e-05
  25  23.4326
  26  22.9266
  27  0.305513
  28  0.235392
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  4.195e+00  6.441e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  2.686e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  9.636e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  3.451e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  8.314e-01  2.354e-01  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
605   Normalization:  1.220e+00  3.055e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.97
Ra Dec: 185.627 4.239
Photon Flux Upper Limit: 2.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.01e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/540331/likelihoodResults_492307201_492566401_4FGL_J1222.5+0414_daily_bin976.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) = 4236.63719757
delta logL = 0.022665572631

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4236.63606748
delta logL = 0.0237956585424

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4236.636     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      204 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0707        213.83        .49953E-02    .33155E-03
   2  alpha         2.9011        3.5485        .41841        .29299E-05
   3  Normalizat    1.2104        .15554        .61698E-01   -.26662E-06
   4  Prefactor     .83665        .14144        .44194E-01    .21864E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.07074
  alpha      = 2.90109
  Normalizat = 1.21042
  Prefactor  = 0.836651
 **********
 **   18 **HESSE 
 **********

 FCN=   4236.636     FROM HESSE     STATUS=OK            33 CALLS      237 TOTAL
                     EDM=   .24E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0707        4.7576        .13491E-03   -1.5304    
   2  alpha         2.9011        1.0066        .22466E-01    .16113    
   3  Normalizat    1.2104        .28822        .27289E-03   -.86281    
   4  Prefactor     .83665        .23132        .26290E-03   -.98391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.35608e-13
Minuit parameter uncertainties:
  1  4.75808
  2  1.03684
  3  0.288598
  4  0.231593
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/540331': 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) = 4236.63606673
delta logL = 0.0237964142889

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  4.071e+00  4.758e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  2.901e+00  1.037e+00  0.000e+00  5.000e+00 ( 1.000e+00)
326         beta:  9.636e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  3.451e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
606    Prefactor:  8.367e-01  2.316e-01  0.000e+00  1.000e+01 ( 1.000e+00)
607        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
608        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
605   Normalization:  1.210e+00  2.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.04
Ra Dec: 185.627 4.239
Photon Index (Free Index): 2.90 +/- 1.04
Photon Flux (Free Index): 7.24e-08 +/- 8.32e-08
Energy Flux (Free Index): 1.50e-05 +/- 1.66e-05

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/540331/cmap_HighResolution_492307201_492566401_4FGL_J1222.5+0414_daily_bin976.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.01e-05', comment='SUCCESS', energy_flux2='1.50e-05', dlogl='2.38e-02', photon_flux2='7.24e-08', job_status='DONE', time_completed='2021-09-05 10:40:06.426945', photon_index_error2='1.04', photon_index2='2.90', ts='0.97', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='2.17e-07', energy_flux_error2='1.66e-05', EG='1.22', time_epoch_completed='1630863606.43', return_code='0', job_id='540331', GAL2='0.84', EG2='1.21', return_code2='0', photon_flux_error2='8.32e-08', ts2='1.04', photon_index='2.69' WHERE bin_id='976' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:40:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0302>
Subject: Job 540331: <4FGL_J1222.5+0414_daily_bin976> in cluster <slac> Done

Job <4FGL_J1222.5+0414_daily_bin976> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 10:25:45 2021
Job was executed on host(s) <bullet0302>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:25:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 10:25:46 2021
Terminated at Sun Sep  5 10:40:06 2021
Results reported at Sun Sep  5 10:40:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin976 185.627 4.2389 492307201 492566401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1222.5+0414 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   634.41 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             227.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            861 sec.

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

