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


Performing analysis on: 4FGL_J1224.9+2122_daily_bin22
RA = 186.228, Dec = 21.3814
tmin = 245030401, tmax = 245289601
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='597060', job_status='RUN', time_executed='2021-09-05 13:18:34.349226', time_epoch_executed='1630873114.35' WHERE source_name='4FGL J1224.9+2122' and cadence='daily' and bin_id='22'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/597060

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/597060/ft1_4FGL_J1224.9+2122_daily_bin22.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/597060/ft2_4FGL_J1224.9+2122_daily_bin22.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/597060/ft1_4FGL_J1224.9+2122_daily_bin22.fits outfile=/scratch/kocevski/597060/ft1_filteredMKT_4FGL_J1224.9+2122_daily_bin22.fits ra=186.228 dec=21.3814 rad=12.0 tmin=245030401.0 tmax=245289601.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.45
user 1.26
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/597060/ft1_filtered_4FGL_J1224.9+2122_daily_bin22.fits" evtable="EVENTS" scfile=/scratch/kocevski/597060/ft2_4FGL_J1224.9+2122_daily_bin22.fits sctable="SC_DATA" outfile=/scratch/kocevski/597060/ltcube_245030401_245289601_4FGL_J1224.9+2122_daily_bin22.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/597060/ft2_4FGL_J1224.9+2122_daily_bin22.fits
.....................!
real 12.81
user 12.48
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/597060/ft1_filtered_4FGL_J1224.9+2122_daily_bin22.fits evtable="EVENTS" scfile=/scratch/kocevski/597060/ft2_4FGL_J1224.9+2122_daily_bin22.fits sctable="SC_DATA" expcube=/scratch/kocevski/597060/ltcube_245030401_245289601_4FGL_J1224.9+2122_daily_bin22.fits outfile=/scratch/kocevski/597060/expmap_245030401_245289601_4FGL_J1224.9+2122_daily_bin22.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/597060/ltcube_245030401_245289601_4FGL_J1224.9+2122_daily_bin22.fits
.....................!
real 189.67
user 185.07
sys 4.07

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/597060/ft1_filtered_4FGL_J1224.9+2122_daily_bin22.fits scfile=/scratch/kocevski/597060/ft2_4FGL_J1224.9+2122_daily_bin22.fits outfile=/scratch/kocevski/597060/cmap_245030401_245289601_4FGL_J1224.9+2122_daily_bin22.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/597060/ft1_filtered_4FGL_J1224.9+2122_daily_bin22.fits scfile=/scratch/kocevski/597060/ft2_4FGL_J1224.9+2122_daily_bin22.fits outfile=/scratch/kocevski/597060/cmap_HighResolution_245030401_245289601_4FGL_J1224.9+2122_daily_bin22.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.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9517       1.0000         .10000E-03   10000.    
     4 'norm      '    .50647       1.0000         .10000E-03   10000.    
     5 'Prefactor '    17.611       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10890E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6586       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    33.579       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9974       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.1845       1.0000         .10000E-03   10000.    
    14 'norm      '    .58730       1.0000         .10000E-03   10000.    
    15 'norm      '    1.8116       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1000       1.0000         .10000E-03   10000.    
    18 'Prefactor '    48.759       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.4753       1.0000         .10000E-03   10000.    
    22 'norm      '    2.6401       1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .83661       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0792       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5660.434     FROM MIGRAD    STATUS=CONVERGED     88 CALLS     2425 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.084        .68731E-05** at limit **
   2  Prefactor     .10000E-03    12.235        .44336E-05** at limit **
   3  Prefactor     4.9517        2.2195       -.63571E-06   -.14028E-03
   4  norm          .50639        .97491       -.12143E-07   -.39892E-03
   5  Prefactor     17.599        1.2330        .13166E-06   -.61169E-03
   6  Prefactor     .10000E-03    2.2990       -.30248E-06** at limit **
   7  Prefactor     .10481E-03    36.053        .34481E-05** at limit **
   8  Prefactor     2.6583        2.1202       -.64773E-07   -.20747E-03
   9  Prefactor     .10000E-03    .96835       -.45137E-06** at limit **
  10  norm          33.581        3.1447       -.51637E-06   -.14033E-01
  11  Prefactor     .10000E-03    1.8537       -.29863E-06** at limit **
  12  Prefactor     4.9982        2.5746        .13617E-06    .65366E-03
  13  Prefactor     3.1846        3.1588        .54980E-05    .19671E-02
  14  norm          .58729        .25003        .38924E-08    .33669E-02
  15  norm          1.8117        2.3692       -.69194E-06   -.28412E-03
  16  Prefactor     .10002E-03    7.2823        .14392E-05** at limit **
  17  Prefactor     1.0982        1.2067        .35255E-06   -.13391E-03
  18  Prefactor     48.769        1.7957        .46616E-06   -.64828E-02
  19  Prefactor     .10638E-03    37.131       -.68185E-05** at limit **
  20  Prefactor     .10000E-03    5.8884        .14578E-06** at limit **
  21  Prefactor     4.4749        1.0166        .98261E-07    .22264E-04
  22  norm          2.6403        1.4936        .21358E-05    .27910E-03
  23  norm          .10000E-03    12.083       -.11058E-04** at limit **
  24  Normalizat    .83662        .21155       -.74467E-06    .23985E-03
  25  Prefactor     1.0792        .21836        .34426E-06    .31207E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.95172
  norm       = 0.506386
  Prefactor  = 17.5993
  Prefactor  = 0.0001
  Prefactor  = 0.00010481
  Prefactor  = 2.65834
  Prefactor  = 0.0001
  norm       = 33.5815
  Prefactor  = 0.0001
  Prefactor  = 4.99815
  Prefactor  = 3.1846
  norm       = 0.587291
  norm       = 1.81168
  Prefactor  = 0.000100015
  Prefactor  = 1.09822
  Prefactor  = 48.7693
  Prefactor  = 0.00010638
  Prefactor  = 0.0001
  Prefactor  = 4.47495
  norm       = 2.64034
  norm       = 0.000100001
  Normalizat = 0.836624
  Prefactor  = 1.0792
 **********
 **   18 **HESSE 
 **********

 FCN=   5660.434     FROM HESSE     STATUS=OK           485 CALLS     2910 TOTAL
                     EDM=   .23E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.265        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.459        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.9517        2.2275        .45184E-02   -1.5263    
   4  norm          .50639        1.0339        .23147E-01   -1.5566    
   5  Prefactor     17.599        17.807        .23860E-02   -1.4869    
   6  Prefactor     .10000E-03    2.2525        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10481E-03    66.522        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     2.6583        2.1287        .62498E-02   -1.5382    
   9  Prefactor     .10000E-03    .96286        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          33.581        6.2391        .17288E-02   -1.4548    
  11  Prefactor     .10000E-03    1.8194        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.9982        2.6841        .44972E-02   -1.5261    
  13  Prefactor     3.1846        3.3495        .56770E-02   -1.5351    
  14  norm          .58729        .25186        .52979E-02   -1.5555    
  15  norm          1.8117        2.3868        .77599E-02   -1.5439    
  16  Prefactor     .10002E-03    17.251        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.0982        15.085        .11331E-01   -1.5498    
  18  Prefactor     48.769        31.843        .14357E-02   -1.4310    
  19  Prefactor     .10638E-03    75.942        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.8398        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.4749        12.266        .47583E-02   -1.5285    
  22  norm          2.6403        3.4603        .62733E-02   -1.5383    
  23  norm          .10000E-03    15.161        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .83662        .18704        .44086E-01   -.98724    
  25  Prefactor     1.0792        .18867        .57693E-01   -.90134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29767e-06
Minuit parameter uncertainties:
  1  0.000147023
  2  0.000103911
  3  2.22751
  4  1.03398
  5  17.8127
  6  3.48961e-05
  7  0.0358151
  8  2.12879
  9  4.22464e-05
  10  6.2392
  11  2.47363e-05
  12  2.68419
  13  3.34969
  14  0.25186
  15  2.38697
  16  0.00101817
  17  8.14249
  18  31.8539
  19  0.0440793
  20  2.39997e-06
  21  12.2724
  22  3.46053
  23  0.000190514
  24  0.187187
  25  0.188782
Done.

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

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  5.873e-01  2.519e-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.079e+00  1.888e-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:  8.366e-01  1.872e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.45
Ra Dec: 186.228 21.381
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 9.92e-08 +/- 4.25e-08
Energy Flux (Fixed Index): 3.45e-05 +/- 1.48e-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) = 5660.43402638
delta logL = 0.000119699221614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5660.43402126
delta logL = 0.00012481273825

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .58754       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2848       1.0000          .0000       5.0000    
     3 'Normalizat'    .83596       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0797       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=   5660.434     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      194 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58765        .35507        .52934E-02    .18579E-03
   2  alpha         2.2851        .56320        .28961       -.16738E-04
   3  Normalizat    .83596        .18113        .44078E-01    .15075E-04
   4  Prefactor     1.0797        .18978        .57683E-01    .82369E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.58765
  alpha      = 2.28511
  Normalizat = 0.835957
  Prefactor  = 1.07965
 **********
 **   18 **HESSE 
 **********

 FCN=   5660.434     FROM HESSE     STATUS=OK            33 CALLS      227 TOTAL
                     EDM=   .45E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .58765        .25010        .23498E-04   -1.5555    
   2  alpha         2.2851        .44256        .11585E-01   -.86062E-01
   3  Normalizat    .83596        .21226        .27251E-03   -.98748    
   4  Prefactor     1.0797        .22002        .25506E-03   -.90119    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.4899e-13
Minuit parameter uncertainties:
  1  0.250099
  2  0.444924
  3  0.212466
  4  0.220203
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/597060': 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) = 5660.434021
delta logL = 0.000125075325741

Extracting fit parameters...

4FGL J1224.9+2122
   Spectrum: LogParabola
312         norm:  5.877e-01  2.501e-01  1.000e-04  1.000e+04 ( 1.000e-10)
313        alpha:  2.285e+00  4.449e-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:  1.080e+00  2.202e-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:  8.360e-01  2.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.33
Ra Dec: 186.228 21.381
Photon Index (Free Index): 2.29 +/- 0.44
Photon Flux (Free Index): 9.97e-08 +/- 5.13e-08
Energy Flux (Free Index): 3.44e-05 +/- 1.71e-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/597060/cmap_HighResolution_245030401_245289601_4FGL_J1224.9+2122_daily_bin22.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.92e-08', energy_flux2='3.44e-05', photon_flux_error='4.25e-08', dlogl='1.25e-04', energy_flux='3.45e-05', photon_flux2='9.97e-08', job_status='DONE', time_completed='2021-09-05 13:28:19.256690', photon_index_error2='0.44', photon_index2='2.29', ts='13.45', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='1.71e-05', EG='0.84', time_epoch_completed='1630873699.26', return_code='0', job_id='597060', GAL2='1.08', EG2='0.84', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='5.13e-08', ts2='13.33', photon_index='2.28' WHERE bin_id='22' AND source_name='4FGL J1224.9+2122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 13:28:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0205>
Subject: Job 597060: <4FGL_J1224.9+2122_daily_bin22> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.9+2122_daily_bin22 186.228 21.3814 245030401 245289601 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 :                                   582.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            756 sec.

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

