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


Performing analysis on: 4FGL_J1224.4+2436_daily_bin1007
RA = 186.116, Dec = 24.6142
tmin = 500342401, tmax = 500601601
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='584106', job_status='RUN', time_executed='2021-09-05 12:37:41.697721', time_epoch_executed='1630870661.7' WHERE source_name='4FGL J1224.4+2436' and cadence='daily' and bin_id='1007'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/584106

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/584106/ft1_4FGL_J1224.4+2436_daily_bin1007.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/584106/ft2_4FGL_J1224.4+2436_daily_bin1007.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/584106/ft1_4FGL_J1224.4+2436_daily_bin1007.fits outfile=/scratch/kocevski/584106/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin1007.fits ra=186.116 dec=24.6142 rad=12.0 tmin=500342401.0 tmax=500601601.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.65
user 4.40
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/584106/ft2_4FGL_J1224.4+2436_daily_bin1007.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/584106/ft1_filteredMKT_4FGL_J1224.4+2436_daily_bin1007.fits evtable="EVENTS" outfile="/scratch/kocevski/584106/ft1_filtered_4FGL_J1224.4+2436_daily_bin1007.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/584106/ft1_filtered_4FGL_J1224.4+2436_daily_bin1007.fits" evtable="EVENTS" scfile=/scratch/kocevski/584106/ft2_4FGL_J1224.4+2436_daily_bin1007.fits sctable="SC_DATA" outfile=/scratch/kocevski/584106/ltcube_500342401_500601601_4FGL_J1224.4+2436_daily_bin1007.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/584106/ft2_4FGL_J1224.4+2436_daily_bin1007.fits
.....................!
real 11.86
user 11.49
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/584106/ft1_filtered_4FGL_J1224.4+2436_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/584106/ft2_4FGL_J1224.4+2436_daily_bin1007.fits sctable="SC_DATA" expcube=/scratch/kocevski/584106/ltcube_500342401_500601601_4FGL_J1224.4+2436_daily_bin1007.fits outfile=/scratch/kocevski/584106/expmap_500342401_500601601_4FGL_J1224.4+2436_daily_bin1007.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/584106/ltcube_500342401_500601601_4FGL_J1224.4+2436_daily_bin1007.fits
.....................!
real 191.18
user 186.05
sys 4.72

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/584106/ft1_filtered_4FGL_J1224.4+2436_daily_bin1007.fits scfile=/scratch/kocevski/584106/ft2_4FGL_J1224.4+2436_daily_bin1007.fits outfile=/scratch/kocevski/584106/cmap_500342401_500601601_4FGL_J1224.4+2436_daily_bin1007.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.57
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/584106/ft1_filtered_4FGL_J1224.4+2436_daily_bin1007.fits scfile=/scratch/kocevski/584106/ft2_4FGL_J1224.4+2436_daily_bin1007.fits outfile=/scratch/kocevski/584106/cmap_HighResolution_500342401_500601601_4FGL_J1224.4+2436_daily_bin1007.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.57
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.936       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    43.566       1.0000         .10000E-03   10000.    
     5 'norm      '    1.9011       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .50050       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.930       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4667       1.0000         .10000E-03   10000.    
    10 'norm      '    6.9244       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.8808       1.0000         .10000E-03   10000.    
    15 'norm      '    .29753       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.164       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .21923E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.8594       1.0000         .10000E-03   10000.    
    21 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.4773       1.0000         .10000E-03   10000.    
    23 'norm      '    38.553       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0298       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0084       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=   5343.034     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     2988 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.942        27.163       -.14163E-05    .10426E-05
   2  Prefactor     .10000E-03    4.2782       -.21432E-06** at limit **
   3  Prefactor     .10000E-03    .79027       -.37472E-07** at limit **
   4  Prefactor     43.570        34.401       -.50864E-06    .22762E-05
   5  norm          1.9013        1.4556       -.52829E-07   -.38173E-04
   6  Prefactor     .49877        3.6384       -.31149E-06   -.12269E-04
   7  Prefactor     .10000E-03    94.579        .88093E-06** at limit **
   8  Prefactor     12.928        6.7396       -.58738E-06   -.68164E-05
   9  Prefactor     1.4702        7.8004        .54764E-06   -.13217E-03
  10  norm          6.9246        3.2910       -.16026E-07    .12782E-04
  11  Prefactor     .10000E-03    2.1275        .99796E-07** at limit **
  12  Prefactor     .10000E-03    .87642        .69995E-07** at limit **
  13  Prefactor     .10000E-03    1.3940        .47540E-07** at limit **
  14  Prefactor     2.8810        6.1563       -.29555E-06   -.78395E-04
  15  norm          .29756        .27185       -.86245E-08    .45534E-04
  16  norm          .10000E-03    2.2139        .21813E-07** at limit **
  17  Prefactor     12.163        12.972       -.25396E-05   -.75446E-04
  18  Prefactor     .10000E-03    21.396        .17457E-06** at limit **
  19  Prefactor     .10000E-03    297.91       -.37090E-05** at limit **
  20  Prefactor     4.8607        8.8648       -.31517E-05   -.11452E-03
  21  norm          .10000E-03    2.7897       -.25006E-06** at limit **
  22  norm          2.4772        2.0122        .36205E-06   -.19261E-02
  23  norm          38.557        25.742       -.12501E-05   -.26623E-04
  24  Normalizat    1.0297        .21189        .21238E-05    .42175E-04
  25  Prefactor     1.0084        .21218        .31900E-06    .97638E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.9417
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 43.5699
  norm       = 1.90126
  Prefactor  = 0.498766
  Prefactor  = 0.0001
  Prefactor  = 12.9277
  Prefactor  = 1.47015
  norm       = 6.9246
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.88096
  norm       = 0.29756
  norm       = 0.0001
  Prefactor  = 12.1627
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.86073
  norm       = 0.0001
  norm       = 2.47725
  norm       = 38.5573
  Normalizat = 1.02971
  Prefactor  = 1.00839
 **********
 **   18 **HESSE 
 **********

 FCN=   5343.034     FROM HESSE     STATUS=OK           433 CALLS     3421 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.942        27.289        .61903E-04   -1.4412    
   2  Prefactor     .10000E-03    4.2949        .14766E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    .79649        .63324E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     43.570        34.417        .60739E-04   -1.4387    
   5  norm          1.9013        1.4427        .72469E-04   -1.5432    
   6  Prefactor     .49877        7.2237        .25469E-02   -1.5567    
   7  Prefactor     .10000E-03    96.821        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.928        6.1627        .88946E-04   -1.4989    
   9  Prefactor     1.4702        6.7836        .27019E-03   -1.5465    
  10  norm          6.9246        3.2871        .87984E-04   -1.5182    
  11  Prefactor     .10000E-03    2.1290        .10412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .88030        .66777E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.4177        .84098E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.8810        6.1458        .23946E-03   -1.5368    
  15  norm          .29756        .25967        .33988E-03   -1.5599    
  16  norm          .10000E-03    2.2288        .10614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.163        12.998        .11486E-03   -1.5010    
  18  Prefactor     .10000E-03    21.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    300.35        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.8607        8.8463        .18248E-03   -1.5267    
  21  norm          .10000E-03    2.8156        .11927E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.4772        3.9586        .88260E-03   -1.5393    
  23  norm          38.557        25.735        .64552E-04   -1.4465    
  24  Normalizat    1.0297        .24728        .26030E-03   -.92042    
  25  Prefactor     1.0084        .25000        .27946E-03   -.92450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05204e-08
Minuit parameter uncertainties:
  1  27.2967
  2  4.34775e-06
  3  8.69371e-07
  4  34.4324
  5  1.44271
  6  3.79644
  7  0.000199959
  8  6.16297
  9  6.31696
  10  3.28714
  11  6.41474e-07
  12  1.36575e-06
  13  5.1618e-06
  14  6.14719
  15  0.259676
  16  1.63635e-07
  17  13.001
  18  2.0247e-05
  19  0.000777863
  20  8.84869
  21  6.93557e-06
  22  3.95903
  23  25.7421
  24  0.247554
  25  0.250288
Done.

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

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  2.881e+00  6.147e+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.008e+00  2.503e-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.030e+00  2.476e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/584106/likelihoodResults_500342401_500601601_4FGL_J1224.4+2436_daily_bin1007.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) = 5343.02327135
delta logL = 0.0107273469621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5343.02059768
delta logL = 0.0134010199426

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3978       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7424       1.0000          .0000       10.000    
     3 'Normalizat'    1.0316       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0072       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=   5343.021     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      205 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3738        7.9577         .0000        .65431E-02
   2  Index         1.7428        1.1734         .0000        .42957E-03
   3  Normalizat    1.0317        .19674         .0000        .91640E-05
   4  Prefactor     1.0073        .21064         .0000        .93815E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.37385
  Index      = 1.74278
  Normalizat = 1.03171
  Prefactor  = 1.00727
 **********
 **   18 **HESSE 
 **********

 FCN=   5343.021     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3738        7.2154        .10974E-02   -1.5341    
   2  Index         1.7428        1.0732        .55042E-02   -.70949    
   3  Normalizat    1.0317        .23031        .26008E-03   -.91975    
   4  Prefactor     1.0073        .24654        .27959E-03   -.92488    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.95933e-11
Minuit parameter uncertainties:
  1  7.21729
  2  1.0881
  3  0.230532
  4  0.246819
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/584106': 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) = 5343.02059169
delta logL = 0.013407009279

Extracting fit parameters...

4FGL J1224.4+2436
   Spectrum: PowerLaw
328    Prefactor:  3.374e+00  7.217e+00  1.000e-04  1.000e+04 ( 1.000e-13)
329        Index:  1.743e+00  1.088e+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.007e+00  2.468e-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.032e+00  2.305e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.29
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/584106/cmap_HighResolution_500342401_500601601_4FGL_J1224.4+2436_daily_bin1007.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.10e-03', job_status='DONE', photon_flux_upper_limit='8.19e-08', time_completed='2021-09-05 12:48:57.248537', job_id='584106', GAL2='1.01', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1630871337.25', return_code2='0', ts='0.29', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.34e-02', ts2='0.31', photon_index_error='0.00', photon_index='1.93' WHERE bin_id='1007' AND source_name='4FGL J1224.4+2436' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 12:48:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 584106: <4FGL_J1224.4+2436_daily_bin1007> in cluster <slac> Done

Job <4FGL_J1224.4+2436_daily_bin1007> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep  5 12:35:33 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 12:35:34 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:35:34 2021
Terminated at Sun Sep  5 12:48:57 2021
Results reported at Sun Sep  5 12:48:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1224.4+2436_daily_bin1007 186.116 24.6142 500342401 500601601 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 :                                   668.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            804 sec.

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

