/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: Dan/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 161 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_grnumber of points = 7472
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0010.6+2043_daily_bin1655
RA = 2.6502, Dec = 20.7332
tmin = 668304001, tmax = 668563201
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 souDone.


Performing analysis on: 4FGL_J0010.6+2043_daily_bin1655
RA = 2.6502, Dec = 20.7332
tmin = 668304001, tmax = 668563201
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='187163', job_status='RUN', time_executed='2022-03-10 00:09:56.492840', time_epoch_executed='1646899796.49' WHERE source_name='4FGL J0010.6+2043' and cadence='daily' and bin_id='1655'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/187163

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/187163/ft1_4FGL_J0010.6+2043_daily_bin1655.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/187163/ft2_4FGL_J0010.6+2043_daily_bin1655.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/187163/ft1_4FGL_J0010.6+2043_daily_bin1655.fits outfile=/scratch/kocevski/187163/ft1_filteredMKT_4FGL_J0010.6+2043_daily_bin1655.fits ra=2.6502 dec=20.7332 rad=12.0 tmin=668304001.0 tmax=668563201.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.44
user 3.59
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/187163/ft2_4FGL_J0010.6+2043_daily_bin1655.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/187163/ft2_4FGL_J0010.6+2043_daily_bin1655.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/187163/ft1_filteredMKT_4FGL_J0010.6+2043_daily_bin1655.fits evtable="EVENTS" outfile="/scratch/kocevski/187163/ft1_filtered_4FGL_J0010.6+2043_daily_bin1655.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 1.10
user 0.37
sys 0.16
Number of photons that survived the gtmktime cut: 602

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/187163/ft1_filtered_4FGL_J0010.6+2043_daily_bin1655.fits" evtable="EVENTS" scfile=/scratch/kocevski/187163/ft2_4FGL_J0010.6+2043_daily_bin1655.fits sctable="SC_DATA" outfile=/scratch/kocevski/187163/ltcube_668304001_668563201_4FGL_J0010.6+2043_daily_bin1655.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/187163/ft2_4FGL_J0010.6+2043_daily_bin1655.fits
.....................!
real 16.90
user 16.30
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/187163/ft1_filtered_4FGL_J0010.6+2043_daily_bin1655.fits evtable="EVENTS" scfile=/scratch/kocevski/187163/ft2_4FGL_J0010.6+2043_daily_bin1655.fits sctable="SC_DATA" expcube=/scratch/kocevski/187163/ltcube_668304001_668563201_4FGL_J0010.6+2043_daily_bin1655.fits outfile=/scratch/kocevski/187163/expmap_668304001_668563201_4FGL_J0010.6+2043_daily_bin1655.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/187163/ltcube_668304001_668563201_4FGL_J0010.6+2043_daily_bin1655.fits
.....................!
real 201.36
user 190.29
sys 4.89

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

Setting source of interest to:
4FGL J0010.6+2043 @ 2.6502 20.7332

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/187163/ft1_filtered_4FGL_J0010.6+2043_daily_bin1655.fits scfile=/scratch/kocevski/187163/ft2_4FGL_J0010.6+2043_daily_bin1655.fits outfile=/scratch/kocevski/187163/cmap_668304001_668563201_4FGL_J0010.6+2043_daily_bin1655.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=2.6502 yref=20.7332 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/187163/ft1_filtered_4FGL_J0010.6+2043_daily_bin1655.fits scfile=/scratch/kocevski/187163/ft2_4FGL_J0010.6+2043_daily_bin1655.fits outfile=/scratch/kocevski/187163/cmap_HighResolution_668304001_668563201_4FGL_J0010.6+2043_daily_bin1655.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=2.6502 yref=20.7332 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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/187163/ft1_filtered_4FGL_J0010.6+2043_daily_bin1655.fits evtable="EVENTS" scfile=/scratch/kocevski/187163/ft2_4FGL_J0010.6+2043_daily_bin1655.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/187163/Model_4FGL_J0010.6+2043_daily_bin1655.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/187163/ft1_filtered_4FGL_J0010.6+2043_daily_bin1655.fits.....................!
real 73.09
user 71.67
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/187163/ft1_filtered_4FGL_J0010.6+2043_daily_bin1655.fits', '/scratch/kocevski/187163/ft2_4FGL_J0010.6+2043_daily_bin1655.fits', expMap='/scratch/kocevski/187163/expmap_668304001_668563201_4FGL_J0010.6+2043_daily_bin1655.fits', expCube='/scratch/kocevski/187163/ltcube_668304001_668563201_4FGL_J0010.6+2043_daily_bin1655.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/187163/Model_4FGL_J0010.6+2043_daily_bin1655.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0010.6+2043'

4FGL J0010.6+2043
   Spectrum: PowerLaw
45     Prefactor:  1.069e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
46         Index:  2.318e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
47         Scale:  1.386e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/187163/ft1_filtered_4FGL_J0010.6+2043_daily_bin1655.fits
Spacecraft file(s): /scratch/kocevski/187163/ft2_4FGL_J0010.6+2043_daily_bin1655.fits
Exposure map: /scratch/kocevski/187163/expmap_668304001_668563201_4FGL_J0010.6+2043_daily_bin1655.fits
Exposure cube: /scratch/kocevski/187163/ltcube_668304001_668563201_4FGL_J0010.6+2043_daily_bin1655.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/187163/Model_4FGL_J0010.6+2043_daily_bin1655.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) = 6426.67798882

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.103       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .37135E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.8440       1.0000         .10000E-03   10000.    
     7 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .19474E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.152       1.0000         .10000E-03   10000.    
    10 'norm      '    15.714       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .43850E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.7687       1.0000         .10000E-03   10000.    
    14 'norm      '    7.3223       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13230E-03   1.0000         .10000E-03   10000.    
    17 'Normalizat'    1.2341       1.0000         .10000E-01   10.000    
    18 'Prefactor '    .95636       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5100E+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=   6425.789     FROM MIGRAD    STATUS=CONVERGED    635 CALLS     1781 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.4210        .92507E-03** at limit **
   2  Prefactor     10.103        10.413        .12606E-03    .10380E-03
   3  Prefactor     .10000E-03    4.6492        .16837E-02** at limit **
   4  Prefactor     .10000E-03    1.8404        .10613E-02** at limit **
   5  Prefactor     .10000E-03    58.239        .21297E-02** at limit **
   6  Prefactor     7.8419        4.2422        .11428E-03    .35514E-03
   7  norm          .10000E-03    3.3419        .14306E-02** at limit **
   8  Prefactor     .10002E-03    24.421        .10098    ** at limit **
   9  Prefactor     13.156        15.376        .11045E-03    .40451E-04
  10  norm          15.720        9.0917        .10104E-03    .85605E-04
  11  Prefactor     .10050E-03    7.4969        .68143E-01** at limit **
  12  Prefactor     .10000E-03    3.4130        .14452E-02** at limit **
  13  Prefactor     7.8122        16.902        .14387E-03    .43936E-04
  14  norm          7.3202        8.6662        .14822E-03   -.10738E-04
  15  Prefactor     .10000E-03    4.1632        .15879E-02** at limit **
  16  Prefactor     .10000E-03    11.926        .18142E-02** at limit **
  17  Normalizat    1.2342        .23843        .27190E-03    .50757E-03
  18  Prefactor     .95626        .15922        .20684E-03    .73320E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 10.1031
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.84192
  norm       = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 13.1556
  norm       = 15.7201
  Prefactor  = 0.000100496
  Prefactor  = 0.0001
  Prefactor  = 7.81225
  norm       = 7.32022
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.23423
  Prefactor  = 0.956256
 **********
 **   18 **HESSE 
 **********

 FCN=   6425.789     FROM HESSE     STATUS=OK           246 CALLS     2027 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.4212        .18501E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.103        10.413        .50426E-05   -1.5072    
   3  Prefactor     .10000E-03    4.6499        .33673E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.8404        .21226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    58.249        .42595E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.8419        4.2421        .45713E-05   -1.5148    
   7  norm          .10000E-03    3.3420        .28612E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10002E-03    22.766        .10599       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.156        15.378        .44181E-05   -1.4982    
  10  norm          15.720        9.0917        .20208E-04   -1.4915    
  11  Prefactor     .10050E-03    7.1399        .71294E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.4131        .28905E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.8122        16.902        .57547E-05   -1.5149    
  14  norm          7.3202        8.6663        .59290E-05   -1.5167    
  15  Prefactor     .10000E-03    4.1647        .31757E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.926        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    1.2342        .23867        .54381E-04   -.85551    
  18  Prefactor     .95626        .15936        .82738E-05   -.94202    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24718e-09
Minuit parameter uncertainties:
  1  7.90792e-06
  2  10.4147
  3  1.31098e-05
  4  2.92198e-06
  5  3.79531e-05
  6  4.24226
  7  3.83066e-06
  8  0.00142654
  9  15.3828
  10  9.09247
  11  0.0037653
  12  7.10843e-06
  13  16.9127
  14  8.66783
  15  1.81319e-05
  16  1.40714e-05
  17  0.238883
  18  0.159442
Done.

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

Extracting fit parameters...

4FGL J0010.6+2043
   Spectrum: PowerLaw
45     Prefactor:  1.010e+01  1.041e+01  1.000e-04  1.000e+04 ( 1.000e-13)
46         Index:  2.318e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
47         Scale:  1.386e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  9.563e-01  1.594e-01  0.000e+00  1.000e+01 ( 1.000e+00)
508        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
509        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
506   Normalization:  1.234e+00  2.389e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.64
Ra Dec: 2.650 20.733
Photon Index (Fixed Index): 2.32 +/- 0.00
Photon Flux (Fixed Index): 3.40e-08 +/- 3.50e-08
Energy Flux (Fixed Index): 1.25e-05 +/- 1.29e-05

TS (Fixed Index): 1.64
Ra Dec: 2.650 20.733
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/187163/likelihoodResults_668304001_668563201_4FGL_J0010.6+2043_daily_bin1655.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) = 6425.76646544
delta logL = 0.0228850730036

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6425.74796892
delta logL = 0.0413815980719

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6425.748     FROM MIGRAD    STATUS=FAILED       106 CALLS      279 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7146        15.897        .72134E-03    .11877E-03
   2  Index         2.5939        1.2825        .74431E-02    .50158E-03
   3  Normalizat    1.2197        .24314        .27324E-03   -.23300E-05
   4  Prefactor     .96240        .16192        .20626E-03   -.15985E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6425.748     FROM SIMPLEX   STATUS=UNCHANGED     77 CALLS      356 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7146        15.897        .10117E-03   -1.5152    
   2  Index         2.5939        1.2825        .88744E-03   -.50206    
   3  Normalizat    1.2197        .24314        .31071E-03   -.85995    
   4  Prefactor     .96240        .16192        .24534E-03   -.93993    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6425.748     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      385 TOTAL
                     EDM=   .34E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.7146        12.469        .14427E-03   -.61466E-05
   2  Index         2.5939        1.0104        .14886E-02   -.87063E-06
   3  Normalizat    1.2197        .24083        .10930E-04   -.24964E-05
   4  Prefactor     .96240        .16104        .82503E-05   -.16536E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.71465
  Index      = 2.59386
  Normalizat = 1.21975
  Prefactor  = 0.962402
 **********
 **   18 **HESSE 
 **********

 FCN=   6425.748     FROM HESSE     STATUS=OK            23 CALLS      408 TOTAL
                     EDM=   .47E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.7146        11.979        .57707E-05   -1.5152    
   2  Index         2.5939        .97077        .59545E-04   -.50206    
   3  Normalizat    1.2197        .24010        .21859E-05   -.85995    
   4  Prefactor     .96240        .16063        .16501E-05   -.93993    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.72998e-14
Minuit parameter uncertainties:
  1  11.9826
  2  0.97889
  3  0.240314
  4  0.160708
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/187163': 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) = 6425.7479684
delta logL = 0.0413821177135

Extracting fit parameters...

4FGL J0010.6+2043
   Spectrum: PowerLaw
45     Prefactor:  7.715e+00  1.198e+01  1.000e-04  1.000e+04 ( 1.000e-13)
46         Index:  2.594e+00  9.789e-01  0.000e+00  1.000e+01 (-1.000e+00)
47         Scale:  1.386e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
507    Prefactor:  9.624e-01  1.607e-01  0.000e+00  1.000e+01 ( 1.000e+00)
508        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
509        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
506   Normalization:  1.220e+00  2.403e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.73
Ra Dec: 2.650 20.733
Photon Index (Free Index): 2.59 +/- 0.98
Photon Flux (Free Index): 4.44e-08 +/- 5.32e-08
Energy Flux (Free Index): 1.17e-05 +/- 1.14e-05

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/187163/cmap_HighResolution_668304001_668563201_4FGL_J0010.6+2043_daily_bin1655.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.98e-03', comment='SUCCESS', photon_flux='3.40e-08', energy_flux2='1.17e-05', photon_flux_error='3.50e-08', dlogl='4.14e-02', energy_flux='1.25e-05', photon_flux2='4.44e-08', job_status='DONE', time_completed='2022-03-10 00:20:04.773465', photon_index_error2='0.98', photon_index2='2.59', ts='1.64', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.14e-05', EG='1.23', time_epoch_completed='1646900404.77', return_code='0', job_id='187163', GAL2='0.96', EG2='1.22', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='5.32e-08', ts2='1.73', photon_index='2.32' WHERE bin_id='1655' AND source_name='4FGL J0010.6+2043' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Mar 10 00:20:04 PST 2022

r <slac> at Thu Mar 10 00:05:48 2022
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar 10 00:05:50 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar 10 00:05:50 2022
Terminated at Thu Mar 10 00:18:49 2022
Results reported at Thu Mar 10 00:18:49 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0010.6+2043_daily_bin1655 2.6502 20.7332 668304001 668563201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0010.6+2043 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   586.00 sec.
    Max Memory :                                 617 MB
    Average Memory :                             252.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   779 sec.
    Turnaround time :                            781 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 187163: <4FGL_J0010.6+2043_daily_bin1655> in cluster <slac> Done

Job <4FGL_J0010.6+2043_daily_bin1655> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Mar 10 00:05:48 2022
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Mar 10 00:05:50 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Mar 10 00:05:50 2022
Terminated at Thu Mar 10 00:20:05 2022
Results reported at Thu Mar 10 00:20:05 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0010.6+2043_daily_bin1655 2.6502 20.7332 668304001 668563201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0010.6+2043 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   601.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            857 sec.

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

