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


Performing analysis on: 4FGL_J1224.4+2436_daily_bin21
RA = 186.116, Dec = 24.6142
tmin = 244771201, tmax = 245030401
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='577277', job_status='RUN', time_executed='2021-09-05 12:18:03.213078', time_epoch_executed='1630869483.21' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='21'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/577277

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/577277/ft1_4FGL_J1224.4+2436_daily_bin21.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/577277/ft2_4FGL_J1224.4+2436_daily_bin21.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/577277/ft1_4FGL_J1224.4+2436_daily_bin21.fits outfile=/scratch/kocevski/577277/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin21.fits ra=186.116 dec=24.6142 rad=12.0 tmin=244771201.0 tmax=245030401.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.47
user 1.25
sys 0.16

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/577277/ft2_4FGL_J1224.4+2436_daily_bin21.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/577277/ft2_4FGL_J1224.4+2436_daily_bin21.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/577277/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin21.fits evtable="EVENTS" outfile="/scratch/kocevski/577277/ft1_filtered_4FGL_J1224.4+2436_daily_bin21.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.52
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/577277/ft1_filtered_4FGL_J1224.4+2436_daily_bin21.fits" evtable="EVENTS" scfile=/scratch/kocevski/577277/ft2_4FGL_J1224.4+2436_daily_bin21.fits sctable="SC_DATA" outfile=/scratch/kocevski/577277/ltcube_244771201_245030401_4FGL_J1224.4+2436_daily_bin21.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/577277/ft2_4FGL_J1224.4+2436_daily_bin21.fits
.....................!
real 12.51
user 12.17
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/577277/ft1_filtered_4FGL_J1224.4+2436_daily_bin21.fits evtable="EVENTS" scfile=/scratch/kocevski/577277/ft2_4FGL_J1224.4+2436_daily_bin21.fits sctable="SC_DATA" expcube=/scratch/kocevski/577277/ltcube_244771201_245030401_4FGL_J1224.4+2436_daily_bin21.fits outfile=/scratch/kocevski/577277/expmap_244771201_245030401_4FGL_J1224.4+2436_daily_bin21.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/577277/ltcube_244771201_245030401_4FGL_J1224.4+2436_daily_bin21.fits
.....................!
real 192.61
user 187.65
sys 4.56

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

Setting source of interest to:
4FGL J1224.4+2436 @ 186.116 24.6142

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/577277/ft1_filtered_4FGL_J1224.4+2436_daily_bin21.fits scfile=/scratch/kocevski/577277/ft2_4FGL_J1224.4+2436_daily_bin21.fits outfile=/scratch/kocevski/577277/cmap_244771201_245030401_4FGL_J1224.4+2436_daily_bin21.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.116 yref=24.6142 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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/577277/ft1_filtered_4FGL_J1224.4+2436_daily_bin21.fits scfile=/scratch/kocevski/577277/ft2_4FGL_J1224.4+2436_daily_bin21.fits outfile=/scratch/kocevski/577277/cmap_HighResolution_244771201_245030401_4FGL_J1224.4+2436_daily_bin21.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.116 yref=24.6142 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.64
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/577277/ft1_filtered_4FGL_J1224.4+2436_daily_bin21.fits evtable="EVENTS" scfile=/scratch/kocevski/577277/ft2_4FGL_J1224.4+2436_daily_bin21.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/577277/Model_4FGL_J1224.4+2436_daily_bin21.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/577277/ft1_filtered_4FGL_J1224.4+2436_daily_bin21.fits.....................!
real 53.92
user 46.72
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/577277/ft1_filtered_4FGL_J1224.4+2436_daily_bin21.fits', '/scratch/kocevski/577277/ft2_4FGL_J1224.4+2436_daily_bin21.fits', expMap='/scratch/kocevski/577277/expmap_244771201_245030401_4FGL_J1224.4+2436_daily_bin21.fits', expCube='/scratch/kocevski/577277/ltcube_244771201_245030401_4FGL_J1224.4+2436_daily_bin21.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/577277/Model_4FGL_J1224.4+2436_daily_bin21.xml', optimizer='MINUIT')

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

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  2.506e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.925e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
330        Scale:  2.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/577277/ft1_filtered_4FGL_J1224.4+2436_daily_bin21.fits
Spacecraft file(s): /scratch/kocevski/577277/ft2_4FGL_J1224.4+2436_daily_bin21.fits
Exposure map: /scratch/kocevski/577277/expmap_244771201_245030401_4FGL_J1224.4+2436_daily_bin21.fits
Exposure cube: /scratch/kocevski/577277/ltcube_244771201_245030401_4FGL_J1224.4+2436_daily_bin21.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/577277/Model_4FGL_J1224.4+2436_daily_bin21.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) = 5398.66973721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11782E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4273       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    44.277       1.0000         .10000E-03   10000.    
     5 'norm      '    .83723       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.1318       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10774E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    24.582       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5715       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.8755       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8186       1.0000         .10000E-03   10000.    
    15 'norm      '    .62304       1.0000         .10000E-03   10000.    
    16 'norm      '    .68435E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.931       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.0429       1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .64765       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3688       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5398.664     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     3012 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    55.809       -.13206E-05** at limit **
   2  Prefactor     2.4272        6.4201        .65944E-05    .36674E-03
   3  Prefactor     .10000E-03    .62596       -.13222E-06** at limit **
   4  Prefactor     44.266        36.241        .10914E-05   -.11681E-03
   5  norm          .83623        1.3907       -.38210E-06   -.13024E-02
   6  Prefactor     6.1318        4.5975       -.14197E-06   -.13823E-03
   7  Prefactor     .10001E-03    44.879       -.15440E-05** at limit **
   8  Prefactor     .10000E-03    1.3493       -.45570E-06** at limit **
   9  Prefactor     .10000E-03    1.3336        .47981E-07** at limit **
  10  norm          24.583        5.6148        .78369E-07    .19009E-03
  11  Prefactor     .10000E-03    7.1982       -.15025E-07** at limit **
  12  Prefactor     1.5716        1.5518       -.72942E-08    .12008E-06
  13  Prefactor     9.8754        3.4163        .38838E-07   -.29204E-03
  14  Prefactor     1.8177        6.1195        .10571E-05   -.14642E-03
  15  norm          .62306        .25278        .80009E-08   -.51488E-03
  16  norm          .10006E-03    4.3883        .38408E-05** at limit **
  17  Prefactor     .10000E-03    3.2761        .30004E-08** at limit **
  18  Prefactor     29.936        36.113        .26377E-06    .98975E-04
  19  Prefactor     .10000E-03    28.849        .86538E-07** at limit **
  20  Prefactor     .10000E-03    2.7477        .26278E-07** at limit **
  21  norm          4.0434        4.1671        .44191E-07   -.40951E-04
  22  norm          .10000E-03    .97415        .14424E-07** at limit **
  23  norm          .10000E-03    5.9681        .20954E-08** at limit **
  24  Normalizat    .64748        .19711        .87629E-06   -.11572E-03
  25  Prefactor     1.3688        .21231       -.15001E-05   -.19497E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100036
  Prefactor  = 2.42725
  Prefactor  = 0.0001
  Prefactor  = 44.2656
  norm       = 0.836235
  Prefactor  = 6.13178
  Prefactor  = 0.000100011
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 24.5825
  Prefactor  = 0.0001
  Prefactor  = 1.57158
  Prefactor  = 9.87542
  Prefactor  = 1.81774
  norm       = 0.623057
  norm       = 0.000100057
  Prefactor  = 0.0001
  Prefactor  = 29.9364
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 4.04337
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.647484
  Prefactor  = 1.3688
 **********
 **   18 **HESSE 
 **********

 FCN=   5398.664     FROM HESSE     STATUS=OK           427 CALLS     3439 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    57.778        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.4272        6.6901        .13134E-02   -1.5396    
   3  Prefactor     .10000E-03    .88088        .11295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     44.266        36.591        .60250E-04   -1.4376    
   5  norm          .83623        1.3592        .10375E-03   -1.5525    
   6  Prefactor     6.1318        4.5230        .12689E-03   -1.5213    
   7  Prefactor     .10001E-03    46.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.656        .15940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.3528        .82756E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          24.583        5.6069        .78147E-04   -1.4716    
  11  Prefactor     .10000E-03    7.3198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.5716        1.5687        .87878E-04   -1.5457    
  13  Prefactor     9.8754        3.4079        .74741E-04   -1.5079    
  14  Prefactor     1.8177        5.8082        .30325E-03   -1.5438    
  15  norm          .62306        .25077        .22420E-04   -1.5550    
  16  norm          .10006E-03    16.050        .22767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.2791        .12987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     29.936        36.121        .73233E-04   -1.4613    
  19  Prefactor     .10000E-03    28.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.7574        .11893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.0434        4.1633        .14737E-03   -1.5306    
  22  norm          .10000E-03    .97631        .70817E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.9688        .17532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .64748        .23151        .30140E-03   -1.0600    
  25  Prefactor     1.3688        .25261        .24413E-03   -.81284    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.40021e-09
Minuit parameter uncertainties:
  1  0.00288904
  2  6.69218
  3  5.1377e-06
  4  36.61
  5  1.35925
  6  4.52324
  7  0.00145599
  8  0.000433236
  9  4.29418e-06
  10  5.60704
  11  1.66686e-05
  12  1.56876
  13  3.40797
  14  5.80996
  15  0.250775
  16  0.00191503
  17  1.64752e-06
  18  36.1474
  19  0.000281538
  20  2.36781e-06
  21  4.16357
  22  7.89616e-07
  23  6.79954e-06
  24  0.231855
  25  0.252838
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.818e+00  5.810e+00  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.925e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
330        Scale:  2.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.369e+00  2.528e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  6.475e-01  2.319e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 186.116 24.614
Photon Flux Upper Limit: 7.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.51e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/577277/likelihoodResults_244771201_245030401_4FGL_J1224.4+2436_daily_bin21.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) = 5398.59019835
delta logL = 0.0737064226178

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5398.58840427
delta logL = 0.075500501307

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5660       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3686       1.0000          .0000       10.000    
     3 'Normalizat'    .63926       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3713       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5398.588     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      238 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5649        126.68        .84963E-02    .76930E-03
   2  Index         2.3689        6.1577        .14001        .10111E-03
   3  Normalizat    .63934        .45559E-01    .68484E-01    .27648E-04
   4  Prefactor     1.3712        .51195E-01    .55159E-01   -.96423E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.56485
  Index      = 2.36892
  Normalizat = 0.639341
  Prefactor  = 1.37122
 **********
 **   18 **HESSE 
 **********

 FCN=   5398.588     FROM HESSE     STATUS=OK            31 CALLS      269 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5649        5.2802        .18306E-03   -1.5458    
   2  Index         2.3689        1.2990        .94347E-02   -.55415    
   3  Normalizat    .63934        .21942        .30308E-03   -1.0634    
   4  Prefactor     1.3712        .24950        .24387E-03   -.81213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.57976e-08
Minuit parameter uncertainties:
  1  5.28174
  2  1.32013
  3  0.219717
  4  0.249723
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/577277': 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) = 5398.58840411
delta logL = 0.0755006603349

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.565e+00  5.282e+00  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  2.369e+00  1.320e+00  0.000e+00  1.000e+01 (-1.000e+00)
330        Scale:  2.216e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
602    Prefactor:  1.371e+00  2.497e-01  0.000e+00  1.000e+01 ( 1.000e+00)
603        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
604        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
601   Normalization:  6.393e-01  2.197e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
Ra Dec: 186.116 24.614

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/577277/cmap_HighResolution_244771201_245030401_4FGL_J1224.4+2436_daily_bin21.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.51e-03', job_status='DONE', photon_flux_upper_limit='7.39e-08', time_completed='2021-09-05 12:29:27.430894', job_id='577277', GAL2='1.37', fit_tolerance='1e-08', EG2='0.64', EG='0.65', time_epoch_completed='1630870167.43', return_code2='0', ts='0.12', comment='SUCCESS', return_code='0', GAL='1.37', dlogl='7.55e-02', ts2='0.27', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='21' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:29:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 577277: <4FGL_J1224.4+2436_daily_bin21> in cluster <slac> Done

Job <4FGL_J1224.4+2436_daily_bin21> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 12:15:44 2021
Job was executed on host(s) <bullet0223>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:15:45 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 12:15:45 2021
Terminated at Sun Sep  5 12:29:28 2021
Results reported at Sun Sep  5 12:29:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin21 186.116 24.6142 244771201 245030401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1224.4+2436 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   675.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             317.12 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.

