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


Performing analysis on: 4FGL_J1222.5+0414_daily_bin361
RA = 185.627, Dec = 4.2389
tmin = 332899201, tmax = 333158401
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='535638', job_status='RUN', time_executed='2021-09-05 10:13:14.665951', time_epoch_executed='1630861994.67' WHERE source_name='4FGL J1222.5+0414' and cadence='daily' and bin_id='361'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/535638

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/535638/ft1_4FGL_J1222.5+0414_daily_bin361.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/535638/ft2_4FGL_J1222.5+0414_daily_bin361.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/535638/ft1_4FGL_J1222.5+0414_daily_bin361.fits outfile=/scratch/kocevski/535638/ft1_filteredMKT_4FGL_J1222.5+0414_daily_bin361.fits ra=185.627 dec=4.2389 rad=12.0 tmin=332899201.0 tmax=333158401.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 4.18
user 3.94
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/535638/ft1_filtered_4FGL_J1222.5+0414_daily_bin361.fits" evtable="EVENTS" scfile=/scratch/kocevski/535638/ft2_4FGL_J1222.5+0414_daily_bin361.fits sctable="SC_DATA" outfile=/scratch/kocevski/535638/ltcube_332899201_333158401_4FGL_J1222.5+0414_daily_bin361.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/535638/ft2_4FGL_J1222.5+0414_daily_bin361.fits
.....................!
real 12.32
user 11.93
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/535638/ft1_filtered_4FGL_J1222.5+0414_daily_bin361.fits evtable="EVENTS" scfile=/scratch/kocevski/535638/ft2_4FGL_J1222.5+0414_daily_bin361.fits sctable="SC_DATA" expcube=/scratch/kocevski/535638/ltcube_332899201_333158401_4FGL_J1222.5+0414_daily_bin361.fits outfile=/scratch/kocevski/535638/expmap_332899201_333158401_4FGL_J1222.5+0414_daily_bin361.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/535638/ltcube_332899201_333158401_4FGL_J1222.5+0414_daily_bin361.fits
.....................!
real 191.13
user 185.03
sys 5.68

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/535638/ft1_filtered_4FGL_J1222.5+0414_daily_bin361.fits scfile=/scratch/kocevski/535638/ft2_4FGL_J1222.5+0414_daily_bin361.fits outfile=/scratch/kocevski/535638/cmap_332899201_333158401_4FGL_J1222.5+0414_daily_bin361.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/535638/ft1_filtered_4FGL_J1222.5+0414_daily_bin361.fits scfile=/scratch/kocevski/535638/ft2_4FGL_J1222.5+0414_daily_bin361.fits outfile=/scratch/kocevski/535638/cmap_HighResolution_332899201_333158401_4FGL_J1222.5+0414_daily_bin361.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10452E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6301       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11594E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.9685       1.0000         .10000E-03   10000.    
     7 'Prefactor '    220.87       1.0000         .10000E-03   10000.    
     8 'Prefactor '    85.404       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.923       1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.2767       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.393       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.8842       1.0000         .10000E-03   10000.    
    21 'norm      '    17.277       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    21.720       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .75402       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2036       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=   5656.645     FROM MIGRAD    STATUS=CONVERGED    662 CALLS     3501 TOTAL
                     EDM=   .27E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.660        .10070E-05** at limit **
   2  Prefactor     .10000E-03    51.787       -.14780E-05** at limit **
   3  Prefactor     .10000E-03    9.7000       -.16049E-06** at limit **
   4  Prefactor     2.6286        8.2616        .65740E-06    .22419E-04
   5  Prefactor     .10000E-03    17.320        .15251E-05** at limit **
   6  Prefactor     5.9685        11.350        .29156E-07    .22671E-05
   7  Prefactor     220.91        116.43       -.24070E-05   -.42263E-05
   8  Prefactor     85.420        54.060       -.13250E-05    .63206E-05
   9  Prefactor     .10000E-03    12.961       -.12061E-05** at limit **
  10  Prefactor     .10000E-03    9.9267        .39638E-06** at limit **
  11  Prefactor     17.920        11.406       -.40236E-07    .20002E-04
  12  norm          .10000E-03    1.7636       -.26432E-07** at limit **
  13  norm          2.2759        3.3264        .12442E-06   -.13649E-04
  14  Prefactor     .10000E-03    59.374        .27540E-05** at limit **
  15  norm          .10000E-03    17.878        .13280E-05** at limit **
  16  Prefactor     .10000E-03    49.445       -.23741E-05** at limit **
  17  norm          .10000E-03    .18338       -.44865E-07** at limit **
  18  Prefactor     .10000E-03    7.6772        .10926E-06** at limit **
  19  Prefactor     15.399        26.565       -.37806E-06    .17001E-05
  20  Prefactor     2.8830        7.0447        .31729E-05   -.16852E-04
  21  norm          17.277        3.1114       -.15305E-07   -.29108E-04
  22  Prefactor     .10000E-03    11.712        .28152E-06** at limit **
  23  Prefactor     .10000E-03    57.316        .10801E-05** at limit **
  24  Prefactor     .10000E-03    15.209       -.17948E-05** at limit **
  25  norm          .10000E-03    36.046       -.91620E-06** at limit **
  26  Prefactor     21.722        14.881        .11630E-06    .21985E-04
  27  Normalizat    .75372        .24345       -.77772E-06   -.41776E-04
  28  Prefactor     1.2039        .19030        .55963E-06    .10528E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.62858
  Prefactor  = 0.0001
  Prefactor  = 5.96846
  Prefactor  = 220.91
  Prefactor  = 85.4205
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.9205
  norm       = 0.0001
  norm       = 2.27594
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.3991
  Prefactor  = 2.88297
  norm       = 17.2769
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 21.7219
  Normalizat = 0.753715
  Prefactor  = 1.2039
 **********
 **   18 **HESSE 
 **********

 FCN=   5656.645     FROM HESSE     STATUS=OK           515 CALLS     4016 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.672        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    51.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.7340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.6286        8.2087        .25145E-03   -1.5384    
   5  Prefactor     .10000E-03    17.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.9685        11.343        .16436E-03   -1.5219    
   7  Prefactor     220.91        116.85        .13608E-03   -1.2724    
   8  Prefactor     85.420        54.178        .43470E-04   -1.3857    
   9  Prefactor     .10000E-03    13.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.9327        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.920        11.317        .94606E-04   -1.4861    
  12  norm          .10000E-03    1.8008        .19376E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.2759        3.2915        .15434E-03   -1.5406    
  14  Prefactor     .10000E-03    60.641        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    17.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    49.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .22538        .61882E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.7135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.399        26.602        .10209E-03   -1.4923    
  20  Prefactor     2.8830        7.0960        .11965E-02   -1.5368    
  21  norm          17.277        3.1041        .53060E-04   -1.4876    
  22  Prefactor     .10000E-03    12.014        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    57.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    15.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    36.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     21.722        14.905        .85945E-04   -1.4775    
  27  Normalizat    .75372        .28351        .34320E-03   -1.0181    
  28  Prefactor     1.2039        .22442        .23755E-03   -.86212    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74742e-10
Minuit parameter uncertainties:
  1  8.55831e-06
  2  4.81598e-05
  3  5.47299e-05
  4  8.21225
  5  0.000110105
  6  11.3473
  7  116.971
  8  54.2093
  9  1.70655e-06
  10  4.5671e-06
  11  11.3181
  12  1.32406e-06
  13  3.29173
  14  0.000182957
  15  7.71966e-06
  16  1.2668e-05
  17  6.21698e-07
  18  9.44527e-06
  19  26.6222
  20  7.09802
  21  3.10413
  22  3.69293e-05
  23  7.95682e-05
  24  4.56033e-06
  25  2.62257e-05
  26  14.9074
  27  0.28406
  28  0.224598
Done.

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

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  2.276e+00  3.292e+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.204e+00  2.246e-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:  7.537e-01  2.841e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/535638/likelihoodResults_332899201_333158401_4FGL_J1222.5+0414_daily_bin361.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) = 5656.42349082
delta logL = 0.221973874597

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5656.42026911
delta logL = 0.225195585354

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5656.420     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      289 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0200        58.612        .78906E-04   -.38022E-03
   2  alpha         4.4622        3.7797        .61332E-01   -.47885E-05
   3  Normalizat    .70590        .25100        .35353E-03   -.24665E-04
   4  Prefactor     1.2362        .21616        .23487E-03   -.29188E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.02
  alpha      = 4.46222
  Normalizat = 0.705898
  Prefactor  = 1.23622
 **********
 **   18 **HESSE 
 **********

 FCN=   5656.420     FROM HESSE     STATUS=OK            23 CALLS      312 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0200        3.0380        .31562E-05   -1.5506    
   2  alpha         4.4622        4.5795        .24533E-02    .90252    
   3  Normalizat    .70590        .26516        .14141E-04   -1.0366    
   4  Prefactor     1.2362        .22290        .93947E-05   -.85224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.77876e-11
Minuit parameter uncertainties:
  1  3.03844
  2  3.06038
  3  0.265647
  4  0.223071
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/535638': 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) = 5656.42026813
delta logL = 0.225196572394

Extracting fit parameters...

4FGL J1222.5+0414
   Spectrum: LogParabola
324         norm:  1.020e+00  3.038e+00  1.000e-04  1.000e+04 ( 1.000e-11)
325        alpha:  4.462e+00  3.060e+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:  1.236e+00  2.231e-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:  7.059e-01  2.656e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.12
Ra Dec: 185.627 4.239
Photon Index (Free Index): 4.46 +/- 3.06
Photon Flux (Free Index): 6.77e-08 +/- 7.47e-08
Energy Flux (Free Index): 9.62e-06 +/- 1.09e-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/535638/cmap_HighResolution_332899201_333158401_4FGL_J1222.5+0414_daily_bin361.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.41e-05', comment='SUCCESS', energy_flux2='9.62e-06', dlogl='2.25e-01', photon_flux2='6.77e-08', job_status='DONE', time_completed='2021-09-05 10:26:09.149449', photon_index_error2='3.06', photon_index2='4.46', ts='0.60', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='1.48e-07', energy_flux_error2='1.09e-05', EG='0.75', time_epoch_completed='1630862769.15', return_code='0', job_id='535638', GAL2='1.24', EG2='0.71', return_code2='0', photon_flux_error2='7.47e-08', ts2='1.12', photon_index='2.69' WHERE bin_id='361' AND source_name='4FGL J1222.5+0414' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:26:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 535638: <4FGL_J1222.5+0414_daily_bin361> in cluster <slac> Done

Job <4FGL_J1222.5+0414_daily_bin361> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 10:10:38 2021
Job was executed on host(s) <bullet0112>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:10:39 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:39 2021
Terminated at Sun Sep  5 10:26:09 2021
Results reported at Sun Sep  5 10:26:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1222.5+0414_daily_bin361 185.627 4.2389 332899201 333158401 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 :                                   772.43 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             287.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            931 sec.

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

