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


Performing analysis on: 4FGL_J0024.4+4647_monthly_bin118
RA = 6.1212, Dec = 46.797
tmin = 542851201, tmax = 545443201
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='197228', job_status='RUN', time_executed='2021-10-08 12:50:30.643087', time_epoch_executed='1633722630.64' WHERE source_name='4FGL J0024.4+4647' and cadence='monthly' and bin_id='118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/197228

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

Retrieving the FT1 file...

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

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

Retrieving 176 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/197228/ft1_4FGL_J0024.4+4647_monthly_bin118.fits


Retrieving the FT1 file...

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

Retrieving 178 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/197228/ft2_4FGL_J0024.4+4647_monthly_bin118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/197228/ft1_4FGL_J0024.4+4647_monthly_bin118.fits outfile=/scratch/kocevski/197228/ft1_filteredMKT_4FGL_J0024.4+4647_monthly_bin118.fits ra=6.1212 dec=46.797 rad=12.0 tmin=542851201.0 tmax=545443201.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 18.45
user 17.84
sys 0.54

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/197228/ft2_4FGL_J0024.4+4647_monthly_bin118.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/197228/ft2_4FGL_J0024.4+4647_monthly_bin118.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/197228/ft1_filteredMKT_4FGL_J0024.4+4647_monthly_bin118.fits evtable="EVENTS" outfile="/scratch/kocevski/197228/ft1_filtered_4FGL_J0024.4+4647_monthly_bin118.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.58
user 0.42
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/197228/ft1_filtered_4FGL_J0024.4+4647_monthly_bin118.fits" evtable="EVENTS" scfile=/scratch/kocevski/197228/ft2_4FGL_J0024.4+4647_monthly_bin118.fits sctable="SC_DATA" outfile=/scratch/kocevski/197228/ltcube_542851201_545443201_4FGL_J0024.4+4647_monthly_bin118.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/197228/ft2_4FGL_J0024.4+4647_monthly_bin118.fits
.....................!
real 39.88
user 39.26
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/197228/ft1_filtered_4FGL_J0024.4+4647_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/197228/ft2_4FGL_J0024.4+4647_monthly_bin118.fits sctable="SC_DATA" expcube=/scratch/kocevski/197228/ltcube_542851201_545443201_4FGL_J0024.4+4647_monthly_bin118.fits outfile=/scratch/kocevski/197228/expmap_542851201_545443201_4FGL_J0024.4+4647_monthly_bin118.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/197228/ltcube_542851201_545443201_4FGL_J0024.4+4647_monthly_bin118.fits
.....................!
real 191.23
user 185.29
sys 5.46

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
Extended source CTB 109 in ROI with RadialDisk spatial model.
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Added 170 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0024.4+4647 @ 6.1212 46.797

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/197228/ft1_filtered_4FGL_J0024.4+4647_monthly_bin118.fits scfile=/scratch/kocevski/197228/ft2_4FGL_J0024.4+4647_monthly_bin118.fits outfile=/scratch/kocevski/197228/cmap_542851201_545443201_4FGL_J0024.4+4647_monthly_bin118.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=6.1212 yref=46.797 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.61
user 0.45
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/197228/ft1_filtered_4FGL_J0024.4+4647_monthly_bin118.fits scfile=/scratch/kocevski/197228/ft2_4FGL_J0024.4+4647_monthly_bin118.fits outfile=/scratch/kocevski/197228/cmap_HighResolution_542851201_545443201_4FGL_J0024.4+4647_monthly_bin118.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=6.1212 yref=46.797 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.61
user 0.45
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/197228/ft1_filtered_4FGL_J0024.4+4647_monthly_bin118.fits evtable="EVENTS" scfile=/scratch/kocevski/197228/ft2_4FGL_J0024.4+4647_monthly_bin118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/197228/Model_4FGL_J0024.4+4647_monthly_bin118.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 CTB 109
adding source EG_v02
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/197228/ft1_filtered_4FGL_J0024.4+4647_monthly_bin118.fits.....................!
real 23.25
user 21.95
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/197228/ft1_filtered_4FGL_J0024.4+4647_monthly_bin118.fits', '/scratch/kocevski/197228/ft2_4FGL_J0024.4+4647_monthly_bin118.fits', expMap='/scratch/kocevski/197228/expmap_542851201_545443201_4FGL_J0024.4+4647_monthly_bin118.fits', expCube='/scratch/kocevski/197228/ltcube_542851201_545443201_4FGL_J0024.4+4647_monthly_bin118.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/197228/Model_4FGL_J0024.4+4647_monthly_bin118.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0024.4+4647'

4FGL J0024.4+4647
   Spectrum: PowerLaw
70     Prefactor:  1.757e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
71         Index:  2.541e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
72         Scale:  1.027e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/197228/ft1_filtered_4FGL_J0024.4+4647_monthly_bin118.fits
Spacecraft file(s): /scratch/kocevski/197228/ft2_4FGL_J0024.4+4647_monthly_bin118.fits
Exposure map: /scratch/kocevski/197228/expmap_542851201_545443201_4FGL_J0024.4+4647_monthly_bin118.fits
Exposure cube: /scratch/kocevski/197228/ltcube_542851201_545443201_4FGL_J0024.4+4647_monthly_bin118.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/197228/Model_4FGL_J0024.4+4647_monthly_bin118.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) = 915.41232648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.299       1.0000         .10000E-03   10000.    
     3 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    11.229       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.193       1.0000         .10000E-03   10000.    
    13 'norm      '    .10300E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    520.21       1.0000         .10000E-03   10000.    
    16 'norm      '    2.3029       1.0000         .10000E-03   10000.    
    17 'Prefactor '    147.63       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10321E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10976E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10377E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    245.03       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10944E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0158       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   915.4013     FROM MIGRAD    STATUS=CONVERGED    549 CALLS     2391 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    51.119        .78506E-06** at limit **
   2  Prefactor     27.301        64.935       -.60922E-06    .13947E-05
   3  norm          .10000E-03    43.066       -.37382E-06** at limit **
   4  Prefactor     .10000E-03    16.563        .35599E-08** at limit **
   5  norm          11.227        10.604       -.54443E-07   -.14684E-05
   6  Prefactor     .10000E-03    7.4481       -.85646E-07** at limit **
   7  Prefactor     .10000E-03    60.018        .95930E-06** at limit **
   8  Prefactor     .10000E-03    174.27        .11849E-06** at limit **
   9  Prefactor     .10000E-03    83.264       -.10634E-05** at limit **
  10  norm          .10000E-03    53.521        .11318E-05** at limit **
  11  Prefactor     .10000E-03    11.218       -.14659E-06** at limit **
  12  Prefactor     20.059        75.796        .28452E-05   -.14961E-04
  13  norm          .10000E-03    101.05       -.20722E-05** at limit **
  14  Prefactor     .10000E-03    32.410       -.74250E-06** at limit **
  15  Prefactor     520.33        498.88       -.23523E-05   -.67909E-05
  16  norm          2.3105        35.172        .41782E-05    .61876E-04
  17  Prefactor     147.54        145.53        .10462E-05   -.16276E-04
  18  Prefactor     .10000E-03    71.482        .21665E-06** at limit **
  19  norm          .10000E-03    37.828       -.10448E-05** at limit **
  20  norm          .10000E-03    28.968        .93320E-06** at limit **
  21  Prefactor     .10000E-03    82.040       -.74399E-06** at limit **
  22  Prefactor     245.06        237.48       -.17686E-05    .55983E-05
  23  Prefactor     .10000E-03    20.396       -.55017E-07** at limit **
  24  Normalizat    .10000E-01    .32486       -.53067E-05** at limit **
  25  Prefactor     1.0153        .14471       -.26391E-05    .66012E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 27.3008
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 11.2272
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.0586
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 520.328
  norm       = 2.3105
  Prefactor  = 147.535
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 245.057
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.01527
 **********
 **   18 **HESSE 
 **********

 FCN=   915.4013     FROM HESSE     STATUS=OK           413 CALLS     2804 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.105        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     27.301        64.994        .76675E-04   -1.4662    
   3  norm          .10000E-03    43.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.572        .12031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          11.227        10.614        .92896E-04   -1.5038    
   6  Prefactor     .10000E-03    7.4592        .80644E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    60.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    174.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    83.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    53.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.222        .99005E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.059        75.190        .89133E-04   -1.4812    
  13  norm          .10000E-03    100.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    32.416        .16834E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     520.33        496.97        .90062E-04   -1.1105    
  16  norm          2.3105        37.088        .13521E-02   -1.5404    
  17  Prefactor     147.54        143.60        .16584E-03   -1.3273    
  18  Prefactor     .10000E-03    71.482        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    37.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    28.974        .15915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    82.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     245.06        237.65        .12936E-03   -1.2564    
  23  Prefactor     .10000E-03    20.399        .13349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10000E-01    .35017        .97635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     1.0153        .14456        .12955E-03   -.92222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71816e-10
Minuit parameter uncertainties:
  1  3.9008e-05
  2  65.1636
  3  4.15025e-05
  4  1.18406e-05
  5  10.6157
  6  6.81591e-06
  7  2.85855e-05
  8  0.000151247
  9  5.37928e-05
  10  1.9074e-06
  11  3.28395e-06
  12  75.5482
  13  0.000206678
  14  1.75636e-05
  15  501.214
  16  18.5271
  17  143.937
  18  3.21854e-05
  19  6.42311e-05
  20  2.24519e-05
  21  6.95796e-05
  22  238.598
  23  2.64266e-05
  24  9.83987e-06
  25  0.144613
Done.

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

Extracting fit parameters...

4FGL J0024.4+4647
   Spectrum: PowerLaw
70     Prefactor:  1.000e-04  2.859e-05  1.000e-04  1.000e+04 ( 1.000e-13)
71         Index:  2.541e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
72         Scale:  1.027e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.015e+00  1.446e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.000e-02  9.840e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 6.121 46.797
Photon Flux Upper Limit: 4.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.32e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/197228/likelihoodResults_542851201_545443201_4FGL_J0024.4+4647_monthly_bin118.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) = 915.40134261
delta logL = -8.56195837287e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 915.401260405
delta logL = -3.41465909059e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   915.4013     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      240 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7839.2        .90712E-02** at limit **
   2  Index         2.4847        8.2165        .50000        .23857E-07
   3  Normalizat    .10000E-01    .81748E-01    .25126    ** at limit **
   4  Prefactor     1.0153        .76377E-01    .29311E-01   -.30311E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.48475
  Normalizat = 0.01
  Prefactor  = 1.01526
 **********
 **   18 **HESSE 
 **********

 FCN=   915.4013     FROM HESSE     STATUS=OK            31 CALLS      271 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    251.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4847        5.0261        .50000       -.52712    
   3  Normalizat    .10000E-01    .30710        .97652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0153        .13225        .12955E-03   -.92222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74777e-10
Minuit parameter uncertainties:
  1  0.000121323
  2  8.9676
  3  1.02433e-07
  4  0.132296
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/197228': 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) = 915.401256991
delta logL = -7.41351868783e-10

Extracting fit parameters...

4FGL J0024.4+4647
   Spectrum: PowerLaw
70     Prefactor:  1.000e-04  1.213e-04  1.000e-04  1.000e+04 ( 1.000e-13)
71         Index:  2.485e+00  8.968e+00  0.000e+00  1.000e+01 (-1.000e+00)
72         Scale:  1.027e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
573    Prefactor:  1.015e+00  1.323e-01  0.000e+00  1.000e+01 ( 1.000e+00)
574        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
575        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  1.000e-02  1.024e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 6.121 46.797

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/197228/cmap_HighResolution_542851201_545443201_4FGL_J0024.4+4647_monthly_bin118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.32e-02', job_status='DONE', photon_flux_upper_limit='4.26e-07', time_completed='2021-10-08 12:59:55.569273', job_id='197228', GAL2='1.02', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1633723195.57', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='-7.41e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='118' AND source_name='4FGL J0024.4+4647' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Fri Oct  8 12:59:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 197228: <4FGL_J0024.4+4647_monthly_bin118> in cluster <slac> Done

Job <4FGL_J0024.4+4647_monthly_bin118> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Fri Oct  8 12:50:16 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Oct  8 12:50:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Oct  8 12:50:18 2021
Terminated at Fri Oct  8 12:59:56 2021
Results reported at Fri Oct  8 12:59:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0024.4+4647_monthly_bin118 6.1212 46.797 542851201 545443201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0024.4+4647 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   500.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   577 sec.
    Turnaround time :                            580 sec.

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

