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


Performing analysis on: 4FGL_J1222.5+0414_daily_bin334
RA = 185.627, Dec = 4.2389
tmin = 325900801, tmax = 326160001
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='535599', job_status='RUN', time_executed='2021-09-05 10:12:36.328551', time_epoch_executed='1630861956.33' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='334'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/535599

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/535599/ft1_4FGL_J1222.5+0414_daily_bin334.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/535599/ft2_4FGL_J1222.5+0414_daily_bin334.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/535599/ft1_4FGL_J1222.5+0414_daily_bin334.fits outfile=/scratch/kocevski/535599/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin334.fits ra=185.627 dec=4.2389 rad=12.0 tmin=325900801.0 tmax=326160001.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.58
user 2.38
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/535599/ft2_4FGL_J1222.5+0414_daily_bin334.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/535599/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin334.fits evtable="EVENTS" outfile="/scratch/kocevski/535599/ft1_filtered_4FGL_J1222.5+0414_daily_bin334.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.40
user 0.25
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/535599/ft1_filtered_4FGL_J1222.5+0414_daily_bin334.fits" evtable="EVENTS" scfile=/scratch/kocevski/535599/ft2_4FGL_J1222.5+0414_daily_bin334.fits sctable="SC_DATA" outfile=/scratch/kocevski/535599/ltcube_325900801_326160001_4FGL_J1222.5+0414_daily_bin334.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/535599/ft2_4FGL_J1222.5+0414_daily_bin334.fits
.....................!
real 8.71
user 8.40
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/535599/ft1_filtered_4FGL_J1222.5+0414_daily_bin334.fits evtable="EVENTS" scfile=/scratch/kocevski/535599/ft2_4FGL_J1222.5+0414_daily_bin334.fits sctable="SC_DATA" expcube=/scratch/kocevski/535599/ltcube_325900801_326160001_4FGL_J1222.5+0414_daily_bin334.fits outfile=/scratch/kocevski/535599/expmap_325900801_326160001_4FGL_J1222.5+0414_daily_bin334.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/535599/ltcube_325900801_326160001_4FGL_J1222.5+0414_daily_bin334.fits
.....................!
real 140.84
user 136.88
sys 3.69

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/535599/ft1_filtered_4FGL_J1222.5+0414_daily_bin334.fits scfile=/scratch/kocevski/535599/ft2_4FGL_J1222.5+0414_daily_bin334.fits outfile=/scratch/kocevski/535599/cmap_325900801_326160001_4FGL_J1222.5+0414_daily_bin334.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.44
user 0.28
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/535599/ft1_filtered_4FGL_J1222.5+0414_daily_bin334.fits scfile=/scratch/kocevski/535599/ft2_4FGL_J1222.5+0414_daily_bin334.fits outfile=/scratch/kocevski/535599/cmap_HighResolution_325900801_326160001_4FGL_J1222.5+0414_daily_bin334.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.44
user 0.30
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/535599/ft1_filtered_4FGL_J1222.5+0414_daily_bin334.fits', '/scratch/kocevski/535599/ft2_4FGL_J1222.5+0414_daily_bin334.fits', expMap='/scratch/kocevski/535599/expmap_325900801_326160001_4FGL_J1222.5+0414_daily_bin334.fits', expCube='/scratch/kocevski/535599/ltcube_325900801_326160001_4FGL_J1222.5+0414_daily_bin334.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/535599/Model_4FGL_J1222.5+0414_daily_bin334.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/535599/ft1_filtered_4FGL_J1222.5+0414_daily_bin334.fits
Spacecraft file(s): /scratch/kocevski/535599/ft2_4FGL_J1222.5+0414_daily_bin334.fits
Exposure map: /scratch/kocevski/535599/expmap_325900801_326160001_4FGL_J1222.5+0414_daily_bin334.fits
Exposure cube: /scratch/kocevski/535599/ltcube_325900801_326160001_4FGL_J1222.5+0414_daily_bin334.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/535599/Model_4FGL_J1222.5+0414_daily_bin334.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) = 7113.13526709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    95.623       1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.696       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.4675       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.1278       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.4236       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .39108E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    5.6474       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.0527       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.251       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    10.866       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.300       1.0000         .10000E-03   10000.    
    24 'Prefactor '    110.77       1.0000         .10000E-03   10000.    
    25 'norm      '    5.5131       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.8897       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .89589       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1160       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=   7113.133     FROM MIGRAD    STATUS=CONVERGED    684 CALLS     3523 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.3131       -.43233E-05** at limit **
   2  Prefactor     95.588        88.128       -.31007E-04   -.99660E-05
   3  Prefactor     11.694        11.602        .49950E-06   -.51276E-04
   4  Prefactor     4.4662        4.5887        .21603E-06    .12390E-03
   5  Prefactor     .10000E-03    6.3664        .48564E-05** at limit **
   6  Prefactor     7.1282        8.8696       -.32120E-06   -.18629E-04
   7  Prefactor     .10000E-03    87.959       -.70116E-05** at limit **
   8  Prefactor     .10000E-03    62.446        .88371E-05** at limit **
   9  Prefactor     8.4257        22.762       -.43262E-06    .58940E-04
  10  Prefactor     .10000E-03    9.1682        .55825E-05** at limit **
  11  Prefactor     .10000E-03    11.143       -.49229E-05** at limit **
  12  norm          .37102E-01    1.0622       -.21840E-06   -.36742E-04
  13  norm          5.6457        3.7202       -.10779E-06   -.25360E-03
  14  Prefactor     .10000E-03    14.076        .89320E-05** at limit **
  15  norm          .10000E-03    19.093       -.39235E-05** at limit **
  16  Prefactor     .10000E-03    86.626       -.26779E-05** at limit **
  17  norm          1.0527        .53740       -.38069E-07    .25733E-03
  18  Prefactor     10.251        8.8981       -.21033E-06    .13075E-04
  19  Prefactor     .10000E-03    12.256       -.42331E-05** at limit **
  20  Prefactor     .10000E-03    7.7115       -.29284E-05** at limit **
  21  norm          10.866        2.4021       -.66019E-07    .73995E-04
  22  Prefactor     .10000E-03    2.4398       -.17254E-07** at limit **
  23  Prefactor     13.301        15.567       -.35582E-07    .12035E-04
  24  Prefactor     110.78        76.017        .49758E-06    .18651E-04
  25  norm          5.5076        21.784       -.13214E-05   -.28665E-04
  26  Prefactor     3.8875        22.627       -.22648E-05   -.81763E-04
  27  Normalizat    .89587        .20754        .33149E-05   -.22498E-05
  28  Prefactor     1.1160        .16353       -.34564E-06    .23653E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 95.5884
  Prefactor  = 11.6939
  Prefactor  = 4.46624
  Prefactor  = 0.0001
  Prefactor  = 7.12818
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 8.42574
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0371024
  norm       = 5.64568
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.05274
  Prefactor  = 10.2508
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.8662
  Prefactor  = 0.0001
  Prefactor  = 13.3008
  Prefactor  = 110.775
  norm       = 5.50761
  Prefactor  = 3.88753
  Normalizat = 0.895868
  Prefactor  = 1.11602
 **********
 **   18 **HESSE 
 **********

 FCN=   7113.133     FROM HESSE     STATUS=OK           521 CALLS     4044 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.3154        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     95.588        88.279        .20551E-03   -1.3749    
   3  Prefactor     11.694        11.612        .11714E-03   -1.5024    
   4  Prefactor     4.4662        4.5918        .17777E-03   -1.5285    
   5  Prefactor     .10000E-03    6.3729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.1282        8.8663        .15025E-03   -1.5174    
   7  Prefactor     .10000E-03    88.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    63.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.4257        22.685        .13812E-03   -1.5127    
  10  Prefactor     .10000E-03    9.1730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .37102E-01    17.393        .16445E-02   -1.5669    
  13  norm          5.6457        3.7152        .12093E-03   -1.5233    
  14  Prefactor     .10000E-03    14.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    19.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    86.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.0527        .52672        .40279E-04   -1.5503    
  18  Prefactor     10.251        8.8978        .12515E-03   -1.5068    
  19  Prefactor     .10000E-03    12.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.9288        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          10.866        2.4008        .58021E-04   -1.5049    
  22  Prefactor     .10000E-03    2.4466        .12862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     13.301        15.565        .10983E-03   -1.4978    
  24  Prefactor     110.78        74.716        .38218E-04   -1.3599    
  25  norm          5.5076        21.802        .17112E-03   -1.5239    
  26  Prefactor     3.8875        21.903        .20458E-03   -1.5314    
  27  Normalizat    .89587        .24555        .31818E-03   -.96605    
  28  Prefactor     1.1160        .19527        .24115E-03   -.88956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66641e-08
Minuit parameter uncertainties:
  1  1.93339e-06
  2  88.4008
  3  11.6144
  4  4.59211
  5  3.25337e-06
  6  8.86797
  7  2.23965e-05
  8  0.000493692
  9  22.7084
  10  4.1179e-06
  11  8.22815e-06
  12  1.60492
  13  3.7153
  14  6.99048e-06
  15  3.81749e-06
  16  1.93864e-05
  17  0.52672
  18  8.89897
  19  8.39691e-06
  20  5.52509e-06
  21  2.40081
  22  2.37247e-06
  23  15.57
  24  74.7795
  25  21.833
  26  18.4654
  27  0.245853
  28  0.195391
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  5.646e+00  3.715e+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:  1.116e+00  1.954e-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:  8.959e-01  2.459e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.71
Ra Dec: 185.627 4.239
Photon Index (Fixed Index): 2.69 +/- 0.00
Photon Flux (Fixed Index): 8.69e-08 +/- 5.71e-08
Energy Flux (Fixed Index): 2.01e-05 +/- 1.32e-05

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

Saving results to:
/scratch/kocevski/535599/likelihoodResults_325900801_326160001_4FGL_J1222.5+0414_daily_bin334.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) = 7113.13041629
delta logL = 0.00257135018546

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7113.13026079
delta logL = 0.00272685249456

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.6334       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7404       1.0000          .0000       5.0000    
     3 'Normalizat'    .89201       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1184       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=   7113.130     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      229 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.6266        111.86        .42313E-02    .37742E-03
   2  alpha         2.7387        2.7206        .41395        .11634E-04
   3  Normalizat    .89223        .16496        .72036E-01   -.45775E-04
   4  Prefactor     1.1183        .19278        .54494E-01   -.15056E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.62656
  alpha      = 2.7387
  Normalizat = 0.892225
  Prefactor  = 1.11828
 **********
 **   18 **HESSE 
 **********

 FCN=   7113.130     FROM HESSE     STATUS=OK            31 CALLS      260 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.6266        3.6244        .11991E-03   -1.5234    
   2  alpha         2.7387        .71759        .20027E-01    .95626E-01
   3  Normalizat    .89223        .23632        .31875E-03   -.96734    
   4  Prefactor     1.1183        .19429        .24094E-03   -.88884    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2593e-11
Minuit parameter uncertainties:
  1  3.62451
  2  0.727924
  3  0.236597
  4  0.194417
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/535599': 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) = 7113.13025551
delta logL = 0.00273213531909

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  5.627e+00  3.625e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  2.739e+00  7.279e-01  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:  1.118e+00  1.944e-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:  8.922e-01  2.366e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.74
Ra Dec: 185.627 4.239
Photon Index (Free Index): 2.74 +/- 0.73
Photon Flux (Free Index): 8.96e-08 +/- 6.62e-08
Energy Flux (Free Index): 2.01e-05 +/- 1.28e-05

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/535599/cmap_HighResolution_325900801_326160001_4FGL_J1222.5+0414_daily_bin334.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.55e-05', comment='SUCCESS', photon_flux='8.69e-08', energy_flux2='2.01e-05', photon_flux_error='5.71e-08', dlogl='2.73e-03', energy_flux='2.01e-05', photon_flux2='8.96e-08', job_status='DONE', time_completed='2021-09-05 10:23:18.550146', photon_index_error2='0.73', photon_index2='2.74', ts='3.71', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.97e-07', energy_flux_error2='1.28e-05', EG='0.90', time_epoch_completed='1630862598.55', return_code='0', job_id='535599', GAL2='1.12', EG2='0.89', return_code2='0', energy_flux_error='1.32e-05', photon_flux_error2='6.62e-08', ts2='3.74', photon_index='2.69' WHERE bin_id='334' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:23:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 535599: <4FGL_J1222.5+0414_daily_bin334> in cluster <slac> Done

Job <4FGL_J1222.5+0414_daily_bin334> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 10:10:36 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:10:37 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:10:37 2021
Terminated at Sun Sep  5 10:23:19 2021
Results reported at Sun Sep  5 10:23:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin334 185.627 4.2389 325900801 326160001 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 :                                   640.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             297.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            763 sec.

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

