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


Performing analysis on: 4FGL_J1224.4+2436_daily_bin610
RA = 186.116, Dec = 24.6142
tmin = 397440001, tmax = 397699201
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='580960', job_status='RUN', time_executed='2021-09-05 12:25:49.539565', time_epoch_executed='1630869949.54' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='610'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/580960

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/580960/ft1_4FGL_J1224.4+2436_daily_bin610.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/580960/ft2_4FGL_J1224.4+2436_daily_bin610.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/580960/ft1_4FGL_J1224.4+2436_daily_bin610.fits outfile=/scratch/kocevski/580960/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin610.fits ra=186.116 dec=24.6142 rad=12.0 tmin=397440001.0 tmax=397699201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.54
user 4.31
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/580960/ft2_4FGL_J1224.4+2436_daily_bin610.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/580960/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin610.fits evtable="EVENTS" outfile="/scratch/kocevski/580960/ft1_filtered_4FGL_J1224.4+2436_daily_bin610.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/580960/ft1_filtered_4FGL_J1224.4+2436_daily_bin610.fits evtable="EVENTS" scfile=/scratch/kocevski/580960/ft2_4FGL_J1224.4+2436_daily_bin610.fits sctable="SC_DATA" expcube=/scratch/kocevski/580960/ltcube_397440001_397699201_4FGL_J1224.4+2436_daily_bin610.fits outfile=/scratch/kocevski/580960/expmap_397440001_397699201_4FGL_J1224.4+2436_daily_bin610.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/580960/ltcube_397440001_397699201_4FGL_J1224.4+2436_daily_bin610.fits
.....................!
real 189.81
user 185.40
sys 3.99

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/580960/ft1_filtered_4FGL_J1224.4+2436_daily_bin610.fits scfile=/scratch/kocevski/580960/ft2_4FGL_J1224.4+2436_daily_bin610.fits outfile=/scratch/kocevski/580960/cmap_397440001_397699201_4FGL_J1224.4+2436_daily_bin610.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/580960/ft1_filtered_4FGL_J1224.4+2436_daily_bin610.fits scfile=/scratch/kocevski/580960/ft2_4FGL_J1224.4+2436_daily_bin610.fits outfile=/scratch/kocevski/580960/cmap_HighResolution_397440001_397699201_4FGL_J1224.4+2436_daily_bin610.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.54
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/580960/ft1_filtered_4FGL_J1224.4+2436_daily_bin610.fits', '/scratch/kocevski/580960/ft2_4FGL_J1224.4+2436_daily_bin610.fits', expMap='/scratch/kocevski/580960/expmap_397440001_397699201_4FGL_J1224.4+2436_daily_bin610.fits', expCube='/scratch/kocevski/580960/ltcube_397440001_397699201_4FGL_J1224.4+2436_daily_bin610.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/580960/Model_4FGL_J1224.4+2436_daily_bin610.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/580960/ft1_filtered_4FGL_J1224.4+2436_daily_bin610.fits
Spacecraft file(s): /scratch/kocevski/580960/ft2_4FGL_J1224.4+2436_daily_bin610.fits
Exposure map: /scratch/kocevski/580960/expmap_397440001_397699201_4FGL_J1224.4+2436_daily_bin610.fits
Exposure cube: /scratch/kocevski/580960/ltcube_397440001_397699201_4FGL_J1224.4+2436_daily_bin610.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/580960/Model_4FGL_J1224.4+2436_daily_bin610.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) = 7400.51226853

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.932       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .81983       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .15492E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.7151       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17687E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5636       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.5795       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11794E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.9837       1.0000         .10000E-03   10000.    
    16 'norm      '    15.568       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.7781       1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.165       1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.782       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.7662       1.0000         .10000E-03   10000.    
    22 'norm      '    5.6238       1.0000         .10000E-03   10000.    
    23 'norm      '    3.1271       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5260       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .58632       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=   7400.499     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     2951 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.926        18.323        .26319E-05    .26023E-03
   2  Prefactor     .10000E-03    4.0347        .13889E-08** at limit **
   3  Prefactor     .10000E-03    .97022        .20085E-07** at limit **
   4  Prefactor     .10000E-03    9.5620        .88971E-07** at limit **
   5  norm          .82049        1.0438        .89726E-07   -.61135E-03
   6  Prefactor     .10000E-03    1.3970        .83614E-08** at limit **
   7  Prefactor     .10000E-03    46.131       -.45320E-07** at limit **
   8  Prefactor     .10000E-03    .88170        .69109E-08** at limit **
   9  Prefactor     .10000E-03    .84131        .58812E-08** at limit **
  10  norm          4.7166        2.9212        .56079E-07    .16211E-04
  11  Prefactor     .10000E-03    3.9840        .16816E-06** at limit **
  12  Prefactor     2.5629        2.3610        .14686E-07   -.17721E-03
  13  Prefactor     4.5795        2.3993       -.23048E-07   -.98993E-04
  14  Prefactor     .10000E-03    3.3261       -.11010E-06** at limit **
  15  norm          4.9837        .54517        .49652E-08   -.55109E-04
  16  norm          15.568        6.0498        .70829E-06    .87699E-03
  17  Prefactor     5.7782        6.0127        .49277E-07    .43091E-04
  18  Prefactor     36.133        31.035       -.15262E-06   -.45967E-04
  19  Prefactor     23.789        40.075        .25442E-05    .10077E-03
  20  Prefactor     .10000E-03    1.9611       -.65140E-08** at limit **
  21  norm          3.7664        3.4381        .83424E-08   -.62731E-04
  22  norm          5.6240        3.9973       -.88941E-07   -.95210E-04
  23  norm          3.2053        47.733        .74604E-05   -.20743E-03
  24  Normalizat    1.5261        .19552       -.11767E-05    .37287E-04
  25  Prefactor     .58614        .19363        .24524E-06   -.81047E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.9262
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.82049
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.71658
  Prefactor  = 0.0001
  Prefactor  = 2.56291
  Prefactor  = 4.57948
  Prefactor  = 0.000100001
  norm       = 4.98371
  norm       = 15.5684
  Prefactor  = 5.77816
  Prefactor  = 36.1332
  Prefactor  = 23.7894
  Prefactor  = 0.0001
  norm       = 3.76637
  norm       = 5.62402
  norm       = 3.20533
  Normalizat = 1.52608
  Prefactor  = 0.586141
 **********
 **   18 **HESSE 
 **********

 FCN=   7400.499     FROM HESSE     STATUS=OK           429 CALLS     3380 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.926        18.739        .11139E-03   -1.4989    
   2  Prefactor     .10000E-03    4.0434        .16875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.0044        .16509E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.5803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .82049        .96951        .94386E-03   -1.5527    
   6  Prefactor     .10000E-03    1.4081        .99269E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    46.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    .89231        .78863E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .84503        .77046E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.7166        2.9281        .10496E-03   -1.5274    
  11  Prefactor     .10000E-03    17.994        .32962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.5629        2.3590        .11537E-03   -1.5388    
  13  Prefactor     4.5795        2.3970        .91530E-04   -1.5280    
  14  Prefactor     .10000E-03    7.9955        .30196E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.9837        .54702        .19805E-04   -1.5261    
  16  norm          15.568        6.1776        .10151E-03   -1.4919    
  17  Prefactor     5.7782        6.0145        .16709E-03   -1.5227    
  18  Prefactor     36.133        31.044        .66642E-04   -1.4505    
  19  Prefactor     23.789        40.449        .82139E-04   -1.4732    
  20  Prefactor     .10000E-03    1.9637        .11764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.7664        3.4358        .14749E-03   -1.5320    
  22  norm          5.6240        4.0121        .13833E-03   -1.5234    
  23  norm          3.2053        73.893        .11463E-02   -1.5350    
  24  Normalizat    1.5261        .22090        .24608E-03   -.77048    
  25  Prefactor     .58614        .21930        .39365E-03   -1.0817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.81652e-09
Minuit parameter uncertainties:
  1  18.7475
  2  1.75427e-06
  3  8.20785e-06
  4  1.02689e-05
  5  0.969532
  6  1.09839e-06
  7  3.80421e-05
  8  1.11023e-06
  9  9.42597e-07
  10  2.92816
  11  0.000122846
  12  2.35905
  13  2.39701
  14  0.000130765
  15  0.54702
  16  6.1779
  17  6.01514
  18  31.0582
  19  40.4955
  20  4.41228e-07
  21  3.43599
  22  4.01231
  23  30.8226
  24  0.221042
  25  0.219623
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  1.308e-04  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:  5.861e-01  2.196e-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:  1.526e+00  2.210e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/580960/likelihoodResults_397440001_397699201_4FGL_J1224.4+2436_daily_bin610.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): 102
logL (Free Index) = 7400.49984385
delta logL = -0.000593266652686

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7400.49924944
delta logL = 1.14128852147e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13197E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0177       1.0000          .0000       10.000    
     3 'Normalizat'    1.5261       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .58610       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=   7400.164     FROM MIGRAD    STATUS=CONVERGED    109 CALLS      285 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .91153E-01    1.3256        .71203E-02   -.18964E-03
   2  Index         3.8937        1.9959        .98062E-01    .27886E-04
   3  Normalizat    1.4812        .30348E-01    .56193E-01   -.52891E-03
   4  Prefactor     .61184        .31876E-01    .87007E-01   -.22999E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0911532
  Index      = 3.89373
  Normalizat = 1.48121
  Prefactor  = 0.611843
 **********
 **   18 **HESSE 
 **********

 FCN=   7400.164     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      316 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .91153E-01    7.2219        .31162E-04   -1.5648    
   2  Index         3.8937        6.9463        .57069E-02   -.22310    
   3  Normalizat    1.4812        .17053        .24846E-03   -.78308    
   4  Prefactor     .61184        .17338        .38551E-03   -1.0709    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.74067e-09
Minuit parameter uncertainties:
  1  1.62202
  2  6.67263
  3  0.170599
  4  0.173532
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/580960': 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): 102
logL (Free Index) = 7400.16422987
delta logL = 0.335020716609

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  9.115e-02  1.622e+00  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  3.894e+00  6.673e+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:  6.118e-01  1.735e-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:  1.481e+00  1.706e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 186.116 24.614

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/580960/cmap_HighResolution_397440001_397699201_4FGL_J1224.4+2436_daily_bin610.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.26e-03', job_status='DONE', photon_flux_upper_limit='5.72e-08', time_completed='2021-09-05 12:40:05.665788', job_id='580960', GAL2='0.61', fit_tolerance='1e-08', EG2='1.48', EG='1.53', time_epoch_completed='1630870805.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.59', dlogl='3.35e-01', ts2='0.69', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='610' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:40:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 580960: <4FGL_J1224.4+2436_daily_bin610> in cluster <slac> Done

Job <4FGL_J1224.4+2436_daily_bin610> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Sep  5 12:25:35 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:25:36 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:25:36 2021
Terminated at Sun Sep  5 12:40:06 2021
Results reported at Sun Sep  5 12:40:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin610 186.116 24.6142 397440001 397699201 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 :                                   851.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             362.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            871 sec.

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

