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


Performing analysis on: 4FGL_J1224.4+2436_daily_bin6
RA = 186.116, Dec = 24.6142
tmin = 240883201, tmax = 241142401
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='577249', job_status='RUN', time_executed='2021-09-05 12:18:39.705646', time_epoch_executed='1630869519.71' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='6'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/577249

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/577249/ft1_4FGL_J1224.4+2436_daily_bin6.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/577249/ft2_4FGL_J1224.4+2436_daily_bin6.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/577249/ft1_4FGL_J1224.4+2436_daily_bin6.fits outfile=/scratch/kocevski/577249/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin6.fits ra=186.116 dec=24.6142 rad=12.0 tmin=240883201.0 tmax=241142401.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.83
user 1.30
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/577249/ft1_filtered_4FGL_J1224.4+2436_daily_bin6.fits" evtable="EVENTS" scfile=/scratch/kocevski/577249/ft2_4FGL_J1224.4+2436_daily_bin6.fits sctable="SC_DATA" outfile=/scratch/kocevski/577249/ltcube_240883201_241142401_4FGL_J1224.4+2436_daily_bin6.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/577249/ft2_4FGL_J1224.4+2436_daily_bin6.fits
.....................!
real 13.30
user 12.93
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/577249/ft1_filtered_4FGL_J1224.4+2436_daily_bin6.fits evtable="EVENTS" scfile=/scratch/kocevski/577249/ft2_4FGL_J1224.4+2436_daily_bin6.fits sctable="SC_DATA" expcube=/scratch/kocevski/577249/ltcube_240883201_241142401_4FGL_J1224.4+2436_daily_bin6.fits outfile=/scratch/kocevski/577249/expmap_240883201_241142401_4FGL_J1224.4+2436_daily_bin6.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/577249/ltcube_240883201_241142401_4FGL_J1224.4+2436_daily_bin6.fits
.....................!
real 190.21
user 185.12
sys 4.68

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/577249/ft1_filtered_4FGL_J1224.4+2436_daily_bin6.fits scfile=/scratch/kocevski/577249/ft2_4FGL_J1224.4+2436_daily_bin6.fits outfile=/scratch/kocevski/577249/cmap_240883201_241142401_4FGL_J1224.4+2436_daily_bin6.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.68
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.281       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.1594       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9432       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.5864       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.9530       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.3159       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.0586       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .26498       1.0000         .10000E-03   10000.    
    16 'norm      '    .19639E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .77156       1.0000         .10000E-03   10000.    
    22 'norm      '    4.2027       1.0000         .10000E-03   10000.    
    23 'norm      '    .12572E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .96829       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3769       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7255.253     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     3006 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.281        23.276         .0000        .23416E-03
   2  Prefactor     8.1574        12.558         .0000        .25037E-03
   3  Prefactor     1.9426        1.7648         .0000        .88510E-04
   4  Prefactor     .10007E-03    9.3165         .0000    ** at limit **
   5  norm          4.5862        1.5958         .0000        .34852E-04
   6  Prefactor     .10000E-03    3.9333         .0000    ** at limit **
   7  Prefactor     .10004E-03    33.268         .0000    ** at limit **
   8  Prefactor     .10000E-03    1.7353         .0000    ** at limit **
   9  Prefactor     .10000E-03    1.4023         .0000    ** at limit **
  10  norm          4.9531        2.8578         .0000        .45162E-04
  11  Prefactor     2.3159        7.3701         .0000        .45136E-03
  12  Prefactor     .10000E-03    1.0701         .0000    ** at limit **
  13  Prefactor     8.0591        2.8104         .0000       -.28658E-03
  14  Prefactor     .10000E-03    2.7013         .0000    ** at limit **
  15  norm          .26500        .18578         .0000        .12613E-02
  16  norm          .16627E-01    2.0859         .0000        .20391E-02
  17  Prefactor     .10001E-03    8.3164         .0000    ** at limit **
  18  Prefactor     .10004E-03    9.9345         .0000    ** at limit **
  19  Prefactor     .10000E-03    19.543         .0000    ** at limit **
  20  Prefactor     .10000E-03    4.8629         .0000    ** at limit **
  21  norm          .77203        5.5413         .0000        .40025E-01
  22  norm          4.2022        2.7579         .0000       -.49174E-03
  23  norm          .10030E-03    49.318         .0000    ** at limit **
  24  Normalizat    .96841        .17841         .0000        .10095E-03
  25  Prefactor     1.3767        .18968         .0000        .85154E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.2812
  Prefactor  = 8.15742
  Prefactor  = 1.9426
  Prefactor  = 0.000100075
  norm       = 4.58624
  Prefactor  = 0.0001
  Prefactor  = 0.000100038
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.95309
  Prefactor  = 2.31591
  Prefactor  = 0.0001
  Prefactor  = 8.05909
  Prefactor  = 0.0001
  norm       = 0.265005
  norm       = 0.016627
  Prefactor  = 0.000100005
  Prefactor  = 0.000100039
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.772026
  norm       = 4.20218
  norm       = 0.000100301
  Normalizat = 0.968408
  Prefactor  = 1.37669
 **********
 **   18 **HESSE 
 **********

 FCN=   7255.253     FROM HESSE     STATUS=OK           437 CALLS     3443 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.281        23.198        .83017E-04   -1.4743    
   2  Prefactor     8.1574        12.548        .14036E-03   -1.5137    
   3  Prefactor     1.9426        1.7596        .10018E-03   -1.5429    
   4  Prefactor     .10007E-03    9.3243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.5862        1.5948        .60073E-04   -1.5280    
   6  Prefactor     .10000E-03    4.1075        .32912E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10004E-03    33.420        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.8111        .21879E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.4263        .98404E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.9531        2.8455        .10420E-03   -1.5263    
  11  Prefactor     2.3159        7.3583        .26957E-03   -1.5404    
  12  Prefactor     .10000E-03    1.0830        .85698E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.0591        2.8122        .79448E-04   -1.5140    
  14  Prefactor     .10000E-03    2.7284        .13654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .26500        .18283        .29298E-04   -1.5605    
  16  norm          .16627E-01    4.1235        .41142E-01   -1.5682    
  17  Prefactor     .10001E-03    8.4149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10004E-03    9.9476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    19.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.9131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .77203        3.0766        .51330E-01   -1.5532    
  22  norm          4.2022        2.7594        .11125E-03   -1.5298    
  23  norm          .10030E-03    51.432        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .96841        .20817        .27544E-03   -.94096    
  25  Prefactor     1.3767        .22218        .26294E-03   -.81054    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84863e-08
Minuit parameter uncertainties:
  1  23.2074
  2  12.5522
  3  1.75966
  4  0.00167199
  5  1.5948
  6  2.5953e-06
  7  0.00226596
  8  4.39699e-07
  9  3.53106e-06
  10  2.84557
  11  7.36113
  12  3.97184e-06
  13  2.81224
  14  1.88774e-06
  15  0.182834
  16  0.522143
  17  0.00041588
  18  0.00124628
  19  0.000247068
  20  5.53095e-06
  21  3.07722
  22  2.75949
  23  0.00788181
  24  0.208348
  25  0.222339
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.000e-04  1.888e-06  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.377e+00  2.223e-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:  9.684e-01  2.083e-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: 4.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.22e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/577249/likelihoodResults_240883201_241142401_4FGL_J1224.4+2436_daily_bin6.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) = 7255.25494694
delta logL = -0.00173990022176

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7255.25320734
delta logL = -2.96820871881e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9060       1.0000          .0000       10.000    
     3 'Normalizat'    .96846       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3767       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7255.253     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      233 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10032E-03    19.590        .13844E-02** at limit **
   2  Index         1.8771        7.2512        .50000        .43183E-04
   3  Normalizat    .96841        .11547E-01    .27544E-03   -.25631E-04
   4  Prefactor     1.3767        .12909E-01    .26294E-03    .14268E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010032
  Index      = 1.87711
  Normalizat = 0.968408
  Prefactor  = 1.3767
 **********
 **   18 **HESSE 
 **********

 FCN=   7255.253     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      262 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10032E-03    88.645        .27688E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8771        5.4438        .50000       -.67459    
   3  Normalizat    .96841        .25266E-01    .11018E-04   -.94096    
   4  Prefactor     1.3767        .28243E-01    .10517E-04   -.81054    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.73543e-08
Minuit parameter uncertainties:
  1  0.0106627
  2  179.566
  3  0.0252664
  4  0.0282436
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/577249': 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) = 7255.25320649
delta logL = 5.47432136955e-07

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  1.003e-04  1.066e-02  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.877e+00  1.796e+02  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.377e+00  2.824e-02  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:  9.684e-01  2.527e-02  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/577249/cmap_HighResolution_240883201_241142401_4FGL_J1224.4+2436_daily_bin6.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.22e-03', job_status='DONE', photon_flux_upper_limit='4.32e-08', time_completed='2021-09-05 12:31:59.658468', job_id='577249', GAL2='1.38', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1630870319.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.38', dlogl='5.47e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='6' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:31:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 577249: <4FGL_J1224.4+2436_daily_bin6> in cluster <slac> Done

Job <4FGL_J1224.4+2436_daily_bin6> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 12:15:42 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:15:44 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:44 2021
Terminated at Sun Sep  5 12:32:02 2021
Results reported at Sun Sep  5 12:32:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin6 186.116 24.6142 240883201 241142401 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 :                                   795.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            980 sec.

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

