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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin95
RA = 186.228, Dec = 21.3814
tmin = 263952001, tmax = 264211201
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='597197', job_status='RUN', time_executed='2021-09-05 13:18:44.361947', time_epoch_executed='1630873124.36' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='95'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597197

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597197/ft1_4FGL_J1224.9+2122_daily_bin95.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597197/ft2_4FGL_J1224.9+2122_daily_bin95.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597197/ft1_4FGL_J1224.9+2122_daily_bin95.fits outfile=/scratch/kocevski/597197/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin95.fits ra=186.228 dec=21.3814 rad=12.0 tmin=263952001.0 tmax=264211201.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 1.75
user 1.51
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/597197/ft2_4FGL_J1224.9+2122_daily_bin95.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/597197/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin95.fits evtable="EVENTS" outfile="/scratch/kocevski/597197/ft1_filtered_4FGL_J1224.9+2122_daily_bin95.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.59
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/597197/ft1_filtered_4FGL_J1224.9+2122_daily_bin95.fits" evtable="EVENTS" scfile=/scratch/kocevski/597197/ft2_4FGL_J1224.9+2122_daily_bin95.fits sctable="SC_DATA" outfile=/scratch/kocevski/597197/ltcube_263952001_264211201_4FGL_J1224.9+2122_daily_bin95.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/597197/ft2_4FGL_J1224.9+2122_daily_bin95.fits
.....................!
real 12.37
user 12.02
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597197/ft1_filtered_4FGL_J1224.9+2122_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/597197/ft2_4FGL_J1224.9+2122_daily_bin95.fits sctable="SC_DATA" expcube=/scratch/kocevski/597197/ltcube_263952001_264211201_4FGL_J1224.9+2122_daily_bin95.fits outfile=/scratch/kocevski/597197/expmap_263952001_264211201_4FGL_J1224.9+2122_daily_bin95.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/597197/ltcube_263952001_264211201_4FGL_J1224.9+2122_daily_bin95.fits
.....................!
real 192.79
user 187.26
sys 4.98

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/597197/ft1_filtered_4FGL_J1224.9+2122_daily_bin95.fits scfile=/scratch/kocevski/597197/ft2_4FGL_J1224.9+2122_daily_bin95.fits outfile=/scratch/kocevski/597197/cmap_263952001_264211201_4FGL_J1224.9+2122_daily_bin95.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.57
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/597197/ft1_filtered_4FGL_J1224.9+2122_daily_bin95.fits scfile=/scratch/kocevski/597197/ft2_4FGL_J1224.9+2122_daily_bin95.fits outfile=/scratch/kocevski/597197/cmap_HighResolution_263952001_264211201_4FGL_J1224.9+2122_daily_bin95.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.54
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/597197/ft1_filtered_4FGL_J1224.9+2122_daily_bin95.fits', '/scratch/kocevski/597197/ft2_4FGL_J1224.9+2122_daily_bin95.fits', expMap='/scratch/kocevski/597197/expmap_263952001_264211201_4FGL_J1224.9+2122_daily_bin95.fits', expCube='/scratch/kocevski/597197/ltcube_263952001_264211201_4FGL_J1224.9+2122_daily_bin95.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/597197/Model_4FGL_J1224.9+2122_daily_bin95.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/597197/ft1_filtered_4FGL_J1224.9+2122_daily_bin95.fits
Spacecraft file(s): /scratch/kocevski/597197/ft2_4FGL_J1224.9+2122_daily_bin95.fits
Exposure map: /scratch/kocevski/597197/expmap_263952001_264211201_4FGL_J1224.9+2122_daily_bin95.fits
Exposure cube: /scratch/kocevski/597197/ltcube_263952001_264211201_4FGL_J1224.9+2122_daily_bin95.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/597197/Model_4FGL_J1224.9+2122_daily_bin95.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) = 6090.99884935

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.7114       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19795       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .47896E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .81236E-02   1.0000         .10000E-03   10000.    
    10 'norm      '    .82468       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.0160       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.4836       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .75861       1.0000         .10000E-03   10000.    
    15 'norm      '    1.5442       1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.570       1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.013       1.0000         .10000E-03   10000.    
    18 'Prefactor '    35.289       1.0000         .10000E-03   10000.    
    19 'Prefactor '    58.832       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.8065       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.5979       1.0000         .10000E-03   10000.    
    22 'norm      '    12.252       1.0000         .10000E-03   10000.    
    23 'norm      '    11.195       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1147       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .72804       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=   6090.913     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     3032 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.3901        .27712E-06** at limit **
   2  Prefactor     .10000E-03    3.6502       -.73528E-07** at limit **
   3  Prefactor     .10000E-03    1.0995       -.25195E-06** at limit **
   4  norm          1.7110        .95350        .19643E-07    .10709E-03
   5  Prefactor     .10000E-03    18.490       -.42632E-07** at limit **
   6  Prefactor     .14992        2.1106       -.44030E-06    .60678E-04
   7  Prefactor     .10000E-03    40.646        .79827E-06** at limit **
   8  Prefactor     .10000E-03    1.3619        .73006E-07** at limit **
   9  Prefactor     .12854E-01    1.3898       -.33314E-06    .14627E-03
  10  norm          .82488        2.0642       -.24407E-06   -.11733E-02
  11  Prefactor     6.0154        2.6821        .89008E-07    .14005E-04
  12  Prefactor     3.4831        1.8171        .10401E-06    .20246E-03
  13  Prefactor     .10000E-03    1.2586        .15480E-06** at limit **
  14  norm          .75863        .25997        .84093E-08    .69603E-03
  15  norm          1.5438        2.2627       -.14428E-06   -.26250E-03
  16  Prefactor     11.568        9.2232        .14663E-05    .12370E-04
  17  Prefactor     24.008        11.267       -.12027E-05    .28148E-04
  18  Prefactor     35.278        24.996        .35438E-06    .23915E-04
  19  Prefactor     58.806        61.653       -.24669E-04   -.60877E-06
  20  Prefactor     2.8060        2.9006       -.22218E-06    .21583E-03
  21  Prefactor     4.5913        10.950       -.41533E-05   -.11795E-03
  22  norm          12.251        4.1085       -.26875E-06    .71078E-04
  23  norm          11.194        12.738       -.42327E-06    .10598E-04
  24  Normalizat    1.1152        .17472        .12561E-05    .25069E-03
  25  Prefactor     .72793        .16744        .17368E-06    .21747E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.71104
  Prefactor  = 0.0001
  Prefactor  = 0.149917
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0128538
  norm       = 0.824877
  Prefactor  = 6.01536
  Prefactor  = 3.48314
  Prefactor  = 0.0001
  norm       = 0.75863
  norm       = 1.54381
  Prefactor  = 11.5682
  Prefactor  = 24.0077
  Prefactor  = 35.278
  Prefactor  = 58.8055
  Prefactor  = 2.80596
  Prefactor  = 4.59133
  norm       = 12.2505
  norm       = 11.1937
  Normalizat = 1.11515
  Prefactor  = 0.72793
 **********
 **   18 **HESSE 
 **********

 FCN=   6090.913     FROM HESSE     STATUS=OK           449 CALLS     3481 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.4257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.6637        .14560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.8941        .15698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.7110        .95412        .55026E-04   -1.5446    
   5  Prefactor     .10000E-03    18.696        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .14992        31.929        .20364E-02   -1.5631    
   7  Prefactor     .10000E-03    40.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.9519        .16100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .12854E-01    3.6442        .29190E-01   -1.5685    
  10  norm          .82488        1.8400        .16132E-02   -1.5526    
  11  Prefactor     6.0154        2.6929        .77626E-04   -1.5217    
  12  Prefactor     3.4831        1.8152        .72813E-04   -1.5335    
  13  Prefactor     .10000E-03    1.2600        .85498E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .75863        .25935        .22114E-04   -1.5534    
  15  norm          1.5438        2.2373        .13818E-03   -1.5459    
  16  Prefactor     11.568        9.2111        .11777E-03   -1.5028    
  17  Prefactor     24.008        11.274        .81744E-04   -1.4728    
  18  Prefactor     35.278        24.995        .67461E-04   -1.4519    
  19  Prefactor     58.806        61.382        .26153E-03   -1.4173    
  20  Prefactor     2.8060        2.9069        .13173E-03   -1.5373    
  21  Prefactor     4.5913        11.010        .18772E-03   -1.5279    
  22  norm          12.251        4.1122        .88941E-04   -1.5008    
  23  norm          11.194        12.738        .11974E-03   -1.5039    
  24  Normalizat    1.1152        .20280        .22864E-03   -.89267    
  25  Prefactor     .72793        .19305        .27983E-03   -1.0244    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04219e-09
Minuit parameter uncertainties:
  1  7.93948e-06
  2  2.31247e-06
  3  1.57981e-06
  4  0.954128
  5  3.73792e-05
  6  4.37663
  7  1.79924e-05
  8  0.000180024
  9  0.431198
  10  1.84014
  11  2.69293
  12  1.8152
  13  8.56324e-08
  14  0.259352
  15  2.23744
  16  9.21223
  17  11.275
  18  25.0022
  19  61.4481
  20  2.90707
  21  11.0153
  22  4.11229
  23  12.7411
  24  0.202945
  25  0.193233
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  7.586e-01  2.594e-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:  7.279e-01  1.932e-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.115e+00  2.029e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.18
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 1.28e-07 +/- 4.38e-08
Energy Flux (Fixed Index): 4.46e-05 +/- 1.52e-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) = 6089.47756285
delta logL = 1.43505377341

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6089.47587059
delta logL = 1.43674603225

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .65710       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9180       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0559       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76899       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=   6089.476     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      203 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .65706        2.8161        .41378E-02    .31683E-03
   2  alpha         2.9183        3.9582        .22467        .25693E-04
   3  Normalizat    1.0554        .10303        .40179E-01    .86976E-05
   4  Prefactor     .76949        .11698        .43312E-01    .15582E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.657056
  alpha      = 2.91825
  Normalizat = 1.05544
  Prefactor  = 0.769495
 **********
 **   18 **HESSE 
 **********

 FCN=   6089.476     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .14E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .65706        .24786        .18352E-04   -1.5546    
   2  alpha         2.9183        .40770        .97337E-03    .16809    
   3  Normalizat    1.0554        .19470        .23376E-03   -.91195    
   4  Prefactor     .76949        .19419        .27255E-03   -1.0086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42928e-14
Minuit parameter uncertainties:
  1  0.247862
  2  0.409584
  3  0.194833
  4  0.194361
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597197': 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) = 6089.47586707
delta logL = 1.4367495503

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  6.571e-01  2.479e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.918e+00  4.096e-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:  7.695e-01  1.944e-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.055e+00  1.948e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.07
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.92 +/- 0.41
Photon Flux (Free Index): 1.77e-07 +/- 5.83e-08
Energy Flux (Free Index): 3.67e-05 +/- 1.16e-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/597197/cmap_HighResolution_263952001_264211201_4FGL_J1224.9+2122_daily_bin95.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.28e-07', energy_flux2='3.67e-05', photon_flux_error='4.38e-08', dlogl='1.44e+00', energy_flux='4.46e-05', photon_flux2='1.77e-07', job_status='DONE', time_completed='2021-09-05 13:29:39.978632', photon_index_error2='0.41', photon_index2='2.92', ts='20.18', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='1.16e-05', EG='1.12', time_epoch_completed='1630873779.98', return_code='0', job_id='597197', GAL2='0.77', EG2='1.06', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='5.83e-08', ts2='23.07', photon_index='2.28' WHERE bin_id='95' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:29:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 597197: <4FGL_J1224.9+2122_daily_bin95> in cluster <slac> Done

Job <4FGL_J1224.9+2122_daily_bin95> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 13:15:56 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 13:15:58 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:15:58 2021
Terminated at Sun Sep  5 13:29:40 2021
Results reported at Sun Sep  5 13:29:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin95 186.228 21.3814 263952001 264211201 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 :                                   651.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             273.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            824 sec.

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

