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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin635
RA = 186.228, Dec = 21.3814
tmin = 403920001, tmax = 404179201
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='600054', job_status='RUN', time_executed='2021-09-05 13:29:21.377796', time_epoch_executed='1630873761.38' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/600054

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/600054/ft1_4FGL_J1224.9+2122_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/600054/ft2_4FGL_J1224.9+2122_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/600054/ft1_4FGL_J1224.9+2122_daily_bin635.fits outfile=/scratch/kocevski/600054/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin635.fits ra=186.228 dec=21.3814 rad=12.0 tmin=403920001.0 tmax=404179201.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 9.99
user 9.57
sys 0.35

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/600054/ft2_4FGL_J1224.9+2122_daily_bin635.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/600054/ft2_4FGL_J1224.9+2122_daily_bin635.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/600054/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin635.fits evtable="EVENTS" outfile="/scratch/kocevski/600054/ft1_filtered_4FGL_J1224.9+2122_daily_bin635.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.94
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/600054/ft1_filtered_4FGL_J1224.9+2122_daily_bin635.fits" evtable="EVENTS" scfile=/scratch/kocevski/600054/ft2_4FGL_J1224.9+2122_daily_bin635.fits sctable="SC_DATA" outfile=/scratch/kocevski/600054/ltcube_403920001_404179201_4FGL_J1224.9+2122_daily_bin635.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/600054/ft2_4FGL_J1224.9+2122_daily_bin635.fits
.....................!
real 9.59
user 8.97
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/600054/ft1_filtered_4FGL_J1224.9+2122_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/600054/ft2_4FGL_J1224.9+2122_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/600054/ltcube_403920001_404179201_4FGL_J1224.9+2122_daily_bin635.fits outfile=/scratch/kocevski/600054/expmap_403920001_404179201_4FGL_J1224.9+2122_daily_bin635.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/600054/ltcube_403920001_404179201_4FGL_J1224.9+2122_daily_bin635.fits
.....................!
real 191.84
user 185.32
sys 5.31

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

Setting source of interest to:
4FGL J1224.9+2122 @ 186.228 21.3814

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/600054/ft1_filtered_4FGL_J1224.9+2122_daily_bin635.fits scfile=/scratch/kocevski/600054/ft2_4FGL_J1224.9+2122_daily_bin635.fits outfile=/scratch/kocevski/600054/cmap_403920001_404179201_4FGL_J1224.9+2122_daily_bin635.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.228 yref=21.3814 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/600054/ft1_filtered_4FGL_J1224.9+2122_daily_bin635.fits scfile=/scratch/kocevski/600054/ft2_4FGL_J1224.9+2122_daily_bin635.fits outfile=/scratch/kocevski/600054/cmap_HighResolution_403920001_404179201_4FGL_J1224.9+2122_daily_bin635.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.228 yref=21.3814 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.57
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/600054/ft1_filtered_4FGL_J1224.9+2122_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/600054/ft2_4FGL_J1224.9+2122_daily_bin635.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/600054/Model_4FGL_J1224.9+2122_daily_bin635.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/600054/ft1_filtered_4FGL_J1224.9+2122_daily_bin635.fits......................!
real 30.29
user 28.90
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/600054/ft1_filtered_4FGL_J1224.9+2122_daily_bin635.fits', '/scratch/kocevski/600054/ft2_4FGL_J1224.9+2122_daily_bin635.fits', expMap='/scratch/kocevski/600054/expmap_403920001_404179201_4FGL_J1224.9+2122_daily_bin635.fits', expCube='/scratch/kocevski/600054/ltcube_403920001_404179201_4FGL_J1224.9+2122_daily_bin635.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/600054/Model_4FGL_J1224.9+2122_daily_bin635.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1224.9+2122'

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  2.090e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.278e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
314         beta:  4.587e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/600054/ft1_filtered_4FGL_J1224.9+2122_daily_bin635.fits
Spacecraft file(s): /scratch/kocevski/600054/ft2_4FGL_J1224.9+2122_daily_bin635.fits
Exposure map: /scratch/kocevski/600054/expmap_403920001_404179201_4FGL_J1224.9+2122_daily_bin635.fits
Exposure cube: /scratch/kocevski/600054/ltcube_403920001_404179201_4FGL_J1224.9+2122_daily_bin635.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/600054/Model_4FGL_J1224.9+2122_daily_bin635.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) = 2473.6359479

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16227E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3587       1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.485       1.0000         .10000E-03   10000.    
    10 'norm      '    17.041       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2540       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.5699       1.0000         .10000E-03   10000.    
    15 'norm      '    13.447       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11082E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.043       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.5886       1.0000         .10000E-03   10000.    
    22 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2380       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0054       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2473.628     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2866 TOTAL
                     EDM=   .49E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    99.001       -.35329E-05** at limit **
   2  Prefactor     .10000E-03    8.2910       -.94449E-07** at limit **
   3  Prefactor     1.3606        3.8791       -.37390E-05    .69814E-04
   4  norm          .10000E-03    .63217       -.11569E-06** at limit **
   5  Prefactor     .10000E-03    22.879       -.60421E-06** at limit **
   6  Prefactor     .10000E-03    9.1077       -.16237E-06** at limit **
   7  Prefactor     .10000E-03    96.797       -.32344E-05** at limit **
   8  Prefactor     .10000E-03    2.6950       -.13662E-06** at limit **
   9  Prefactor     10.485        7.8252       -.88063E-07    .33624E-04
  10  norm          17.041        6.7997       -.24494E-07    .68911E-04
  11  Prefactor     2.2540        2.8837       -.19198E-07    .23188E-04
  12  Prefactor     .10000E-03    1.6567       -.21614E-06** at limit **
  13  Prefactor     .10000E-03    5.1290       -.16240E-06** at limit **
  14  norm          1.5699        .68581       -.76694E-08    .33679E-03
  15  norm          13.445        9.6149       -.45643E-07    .36924E-04
  16  Prefactor     .10000E-03    10.864       -.10910E-06** at limit **
  17  Prefactor     .10000E-03    137.65       -.96066E-05** at limit **
  18  Prefactor     .10000E-03    54.369        .15543E-05** at limit **
  19  Prefactor     .10000E-03    95.800       -.36670E-05** at limit **
  20  Prefactor     23.043        22.121       -.18659E-06    .17508E-04
  21  Prefactor     7.5913        30.409       -.94754E-06    .10164E-05
  22  norm          .10000E-03    9.0785       -.29079E-06** at limit **
  23  norm          .10000E-03    18.700        .17728E-06** at limit **
  24  Normalizat    1.2378        .33345        .14835E-05    .93224E-04
  25  Prefactor     1.0054        .32868        .44319E-06    .92699E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.36056
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 10.4851
  norm       = 17.0406
  Prefactor  = 2.25398
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.5699
  norm       = 13.4453
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 23.0425
  Prefactor  = 7.59134
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.23784
  Prefactor  = 1.00542
 **********
 **   18 **HESSE 
 **********

 FCN=   2473.628     FROM HESSE     STATUS=OK           419 CALLS     3285 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    99.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.3037        .13988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3606        3.8822        .15413E-03   -1.5475    
   4  norm          .10000E-03    .63599        .38592E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.2589        .14641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    97.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.7035        .79696E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.485        7.8235        .11440E-03   -1.5060    
  10  norm          17.041        6.7921        .76602E-04   -1.4882    
  11  Prefactor     2.2540        2.8729        .90316E-04   -1.5408    
  12  Prefactor     .10000E-03    1.6682        .62452E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.1355        .10999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.5699        .68630        .25362E-04   -1.5457    
  15  norm          13.445        9.5993        .10923E-03   -1.4974    
  16  Prefactor     .10000E-03    10.868        .16013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    135.13        .40622E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    54.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    96.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     23.043        22.135        .83443E-04   -1.4748    
  21  Prefactor     7.5913        30.540        .14558E-03   -1.5157    
  22  norm          .10000E-03    9.2408        .14623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    18.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2378        .39858        .27481E-03   -.85441    
  25  Prefactor     1.0054        .38927        .30561E-03   -.92549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.14557e-11
Minuit parameter uncertainties:
  1  0.000502024
  2  2.45889e-06
  3  3.88292
  4  1.08479e-06
  5  4.61527e-05
  6  3.43493e-05
  7  0.000688173
  8  5.66515e-07
  9  7.82426
  10  6.79243
  11  2.87307
  12  6.03777e-07
  13  8.93473e-07
  14  0.686303
  15  9.60044
  16  5.977e-06
  17  0.000123134
  18  0.000268117
  19  0.000747308
  20  22.1425
  21  30.4792
  22  1.5273e-05
  23  1.82712e-05
  24  0.399567
  25  0.39037
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.570e+00  6.863e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.278e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
314         beta:  4.587e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  1.005e+00  3.904e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.238e+00  3.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.60
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 2.65e-07 +/- 1.16e-07
Energy Flux (Fixed Index): 9.22e-05 +/- 4.03e-05

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) = 2473.45333859
delta logL = 0.174744159152

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2473.43592486
delta logL = 0.192157888283

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2473.436     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      212 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3045        .66318        .57876E-02    .84606E-04
   2  alpha         1.9173        .39784        .17876       -.27994E-04
   3  Normalizat    1.3318        .32822        .60393E-01   -.10844E-04
   4  Prefactor     .94582        .32637        .71026E-01   -.35687E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.30452
  alpha      = 1.91728
  Normalizat = 1.33175
  Prefactor  = 0.945815
 **********
 **   18 **HESSE 
 **********

 FCN=   2473.436     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .20E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3045        .87063        .25625E-04   -1.5480    
   2  alpha         1.9173        .56080        .73881E-02   -.23525    
   3  Normalizat    1.3318        .40755        .26710E-03   -.82623    
   4  Prefactor     .94582        .39362        .31424E-03   -.94558    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99498e-12
Minuit parameter uncertainties:
  1  0.870641
  2  0.565899
  3  0.408538
  4  0.394813
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/600054': 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) = 2473.43592483
delta logL = 0.19215791918

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  1.305e+00  8.706e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  1.917e+00  5.659e-01  0.000e+00  5.000e+00 ( 1.000e+00)
314         beta:  4.587e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
315           Eb:  3.924e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
593    Prefactor:  9.458e-01  3.948e-01  0.000e+00  1.000e+01 ( 1.000e+00)
594        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
595        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
592   Normalization:  1.332e+00  4.085e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.90
Ra Dec: 186.228 21.381
Photon Index (Free Index): 1.92 +/- 0.57
Photon Flux (Free Index): 1.86e-07 +/- 1.51e-07
Energy Flux (Free Index): 1.16e-04 +/- 8.05e-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/600054/cmap_HighResolution_403920001_404179201_4FGL_J1224.9+2122_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.65e-07', energy_flux2='1.16e-04', photon_flux_error='1.16e-07', dlogl='1.92e-01', energy_flux='9.22e-05', photon_flux2='1.86e-07', job_status='DONE', time_completed='2021-09-05 13:37:19.884239', photon_index_error2='0.57', photon_index2='1.92', ts='16.60', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='8.05e-05', EG='1.24', time_epoch_completed='1630874239.88', return_code='0', job_id='600054', GAL2='0.95', EG2='1.33', return_code2='0', energy_flux_error='4.03e-05', photon_flux_error2='1.51e-07', ts2='16.90', photon_index='2.28' WHERE bin_id='635' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:37:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 600054: <4FGL_J1224.9+2122_daily_bin635> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin635> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 13:25:33 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:25:35 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:25:35 2021
Terminated at Sun Sep  5 13:37:20 2021
Results reported at Sun Sep  5 13:37:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin635 186.228 21.3814 403920001 404179201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1224.9+2122 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   472.45 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             174.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   705 sec.
    Turnaround time :                            707 sec.

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

