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


Performing analysis on: 4FGL_J0107.4+0334_daily_bin46
RA = 16.8508, Dec = 3.5691
tmin = 251251201, tmax = 251510401
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='342907', job_status='RUN', time_executed='2021-08-13 12:20:48.430131', time_epoch_executed='1628882448.43' WHERE source_name='4FGL J0107.4+0334' and cadence='daily' and bin_id='46'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/342907

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/342907/ft1_4FGL_J0107.4+0334_daily_bin46.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/342907/ft2_4FGL_J0107.4+0334_daily_bin46.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/342907/ft1_4FGL_J0107.4+0334_daily_bin46.fits outfile=/scratch/kocevski/342907/ft1_filteredMKT_4FGL_J0107.4+0334_daily_bin46.fits ra=16.8508 dec=3.5691 rad=12.0 tmin=251251201.0 tmax=251510401.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 3.87
user 1.32
sys 2.51

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/342907/ft2_4FGL_J0107.4+0334_daily_bin46.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/342907/ft2_4FGL_J0107.4+0334_daily_bin46.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/342907/ft1_filteredMKT_4FGL_J0107.4+0334_daily_bin46.fits evtable="EVENTS" outfile="/scratch/kocevski/342907/ft1_filtered_4FGL_J0107.4+0334_daily_bin46.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 2.66
user 0.34
sys 2.29

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/342907/ft1_filtered_4FGL_J0107.4+0334_daily_bin46.fits" evtable="EVENTS" scfile=/scratch/kocevski/342907/ft2_4FGL_J0107.4+0334_daily_bin46.fits sctable="SC_DATA" outfile=/scratch/kocevski/342907/ltcube_251251201_251510401_4FGL_J0107.4+0334_daily_bin46.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/342907/ft2_4FGL_J0107.4+0334_daily_bin46.fits
.....................!
real 18.19
user 15.12
sys 2.99

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/342907/ft1_filtered_4FGL_J0107.4+0334_daily_bin46.fits evtable="EVENTS" scfile=/scratch/kocevski/342907/ft2_4FGL_J0107.4+0334_daily_bin46.fits sctable="SC_DATA" expcube=/scratch/kocevski/342907/ltcube_251251201_251510401_4FGL_J0107.4+0334_daily_bin46.fits outfile=/scratch/kocevski/342907/expmap_251251201_251510401_4FGL_J0107.4+0334_daily_bin46.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/342907/ltcube_251251201_251510401_4FGL_J0107.4+0334_daily_bin46.fits
.....................!
real 194.38
user 185.60
sys 8.23

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

Setting source of interest to:
4FGL J0107.4+0334 @ 16.8508 3.5691

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/342907/ft1_filtered_4FGL_J0107.4+0334_daily_bin46.fits scfile=/scratch/kocevski/342907/ft2_4FGL_J0107.4+0334_daily_bin46.fits outfile=/scratch/kocevski/342907/cmap_251251201_251510401_4FGL_J0107.4+0334_daily_bin46.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=16.8508 yref=3.5691 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 2.84
user 0.38
sys 2.44

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/342907/ft1_filtered_4FGL_J0107.4+0334_daily_bin46.fits scfile=/scratch/kocevski/342907/ft2_4FGL_J0107.4+0334_daily_bin46.fits outfile=/scratch/kocevski/342907/cmap_HighResolution_251251201_251510401_4FGL_J0107.4+0334_daily_bin46.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=16.8508 yref=3.5691 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 2.92
user 0.37
sys 2.45

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/342907/ft1_filtered_4FGL_J0107.4+0334_daily_bin46.fits evtable="EVENTS" scfile=/scratch/kocevski/342907/ft2_4FGL_J0107.4+0334_daily_bin46.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/342907/Model_4FGL_J0107.4+0334_daily_bin46.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/342907/ft1_filtered_4FGL_J0107.4+0334_daily_bin46.fits.....................!
real 68.92
user 64.52
sys 4.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/342907/ft1_filtered_4FGL_J0107.4+0334_daily_bin46.fits', '/scratch/kocevski/342907/ft2_4FGL_J0107.4+0334_daily_bin46.fits', expMap='/scratch/kocevski/342907/expmap_251251201_251510401_4FGL_J0107.4+0334_daily_bin46.fits', expCube='/scratch/kocevski/342907/ltcube_251251201_251510401_4FGL_J0107.4+0334_daily_bin46.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/342907/Model_4FGL_J0107.4+0334_daily_bin46.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0107.4+0334'

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  7.146e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
254        Index:  2.354e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  1.694e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/342907/ft1_filtered_4FGL_J0107.4+0334_daily_bin46.fits
Spacecraft file(s): /scratch/kocevski/342907/ft2_4FGL_J0107.4+0334_daily_bin46.fits
Exposure map: /scratch/kocevski/342907/expmap_251251201_251510401_4FGL_J0107.4+0334_daily_bin46.fits
Exposure cube: /scratch/kocevski/342907/ltcube_251251201_251510401_4FGL_J0107.4+0334_daily_bin46.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/342907/Model_4FGL_J0107.4+0334_daily_bin46.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) = 5982.95370539

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9438       1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.6841       1.0000         .10000E-03   10000.    
     3 'norm      '    3.1117       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7947       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .53934       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.6528       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.3856       1.0000         .10000E-03   10000.    
    10 'norm      '    23.755       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10412E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.858       1.0000         .10000E-03   10000.    
    13 'norm      '    8.7811       1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.807       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5127       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10366E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .99204       1.0000         .10000E-03   10000.    
    18 'Prefactor '    83.579       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .62972       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1764       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5982.950     FROM MIGRAD    STATUS=CONVERGED     68 CALLS     1828 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9439        3.3613       -.72982E-06   -.53910E-03
   2  Prefactor     8.6905        1.0653       -.55960E-07    .18500E-03
   3  norm          3.1144        1.9838       -.27971E-06   -.24364E-02
   4  Prefactor     .10000E-03    3.7198        .74404E-06** at limit **
   5  Prefactor     2.7949        1.0230        .16735E-07   -.46536E-03
   6  Prefactor     .53919        1.0212       -.13973E-06   -.34495E-04
   7  Prefactor     .10000E-03    1.7755       -.61886E-06** at limit **
   8  norm          9.6549        6.2414       -.23237E-06    .12928E-02
   9  Prefactor     9.3850        1.0842       -.10497E-07   -.14207E-03
  10  norm          23.769        1.6056        .33520E-06   -.21343E-02
  11  Prefactor     .10000E-03    23.283        .41471E-05** at limit **
  12  Prefactor     11.856        1.0466       -.91660E-07    .12554E-02
  13  norm          8.7787        2.0603        .16039E-06    .45227E-04
  14  Prefactor     34.796        1.6774       -.25990E-06    .82708E-02
  15  Prefactor     3.5129        1.0430       -.72792E-08    .10464E-03
  16  Prefactor     .10003E-03    53.724       -.18796E-04** at limit **
  17  Prefactor     .99183        1.6881        .33450E-06   -.11726E-02
  18  Prefactor     83.583        1.2274        .86369E-07   -.78038E-02
  19  Prefactor     .10000E-03    3.4791       -.11457E-05** at limit **
  20  Normalizat    .62943        .21372        .11488E-05    .87379E-05
  21  Prefactor     1.1765        .17802       -.51567E-06   -.55584E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.94394
  Prefactor  = 8.69055
  norm       = 3.11436
  Prefactor  = 0.0001
  Prefactor  = 2.79486
  Prefactor  = 0.53919
  Prefactor  = 0.0001
  norm       = 9.65493
  Prefactor  = 9.38504
  norm       = 23.7695
  Prefactor  = 0.0001
  Prefactor  = 11.8557
  norm       = 8.77866
  Prefactor  = 34.7957
  Prefactor  = 3.51291
  Prefactor  = 0.000100032
  Prefactor  = 0.991832
  Prefactor  = 83.5834
  Prefactor  = 0.0001
  Normalizat = 0.62943
  Prefactor  = 1.17651
 **********
 **   18 **HESSE 
 **********

 FCN=   5982.950     FROM HESSE     STATUS=OK           373 CALLS     2201 TOTAL
                     EDM=   .39E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9439        3.4343        .74436E-02   -1.5429    
   2  Prefactor     8.6905        11.112        .34006E-02   -1.5118    
   3  norm          3.1144        8.5356        .57466E-02   -1.5355    
   4  Prefactor     .10000E-03    3.7203        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.7949        4.6683        .60843E-02   -1.5374    
   6  Prefactor     .53919        1.2850        .25476E-01   -1.5561    
   7  Prefactor     .10000E-03    1.7482        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.6549        6.5479        .32246E-02   -1.5086    
   9  Prefactor     9.3850        16.105        .32703E-02   -1.5095    
  10  norm          23.769        18.377        .20546E-02   -1.4732    
  11  Prefactor     .10000E-03    23.313        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.856        42.635        .29084E-02   -1.5019    
  13  norm          8.7787        2.1463        .33816E-02   -1.5115    
  14  Prefactor     34.796        44.984        .16981E-02   -1.4528    
  15  Prefactor     3.5129        9.5759        .53927E-02   -1.5333    
  16  Prefactor     .10003E-03    7.2335        .62681E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .99183        10.011        .13138E-01   -1.5509    
  18  Prefactor     83.583        54.641        .10985E-02   -1.3877    
  19  Prefactor     .10000E-03    3.4444        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .62943        .19603        .73222E-01   -1.0675    
  21  Prefactor     1.1765        .15913        .35214E-01   -.87057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.89724e-06
Minuit parameter uncertainties:
  1  3.43469
  2  11.1144
  3  8.53896
  4  1.1739e-05
  5  4.66891
  6  1.28511
  7  2.75675e-06
  8  6.54843
  9  16.1128
  10  18.3817
  11  4.49581e-05
  12  42.7446
  13  2.1463
  14  45.0279
  15  9.58005
  16  0.000966576
  17  6.30314
  18  54.6737
  19  1.26078e-05
  20  0.196251
  21  0.159197
Done.

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

Extracting fit parameters...

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  1.186e+01  4.274e+01  1.000e-04  1.000e+04 ( 1.000e-14)
254        Index:  2.354e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  1.694e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  1.177e+00  1.592e-01  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  6.294e-01  1.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 16.851 3.569
Photon Flux Upper Limit: 8.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/342907/likelihoodResults_251251201_251510401_4FGL_J0107.4+0334_daily_bin46.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) = 5982.94797709
delta logL = 0.00223988147991

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5982.9470304
delta logL = 0.003186575982

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.116       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2461       1.0000          .0000       10.000    
     3 'Normalizat'    .62988       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1761       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5240E+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=   5982.947     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      286 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.182        60.512        .10661E-03   -.31993E-06
   2  Index         2.2343        1.5309        .14628E-01    .19837E-03
   3  Normalizat    .62996        .20992        .32401E-03    .96138E-05
   4  Prefactor     1.1762        .17699        .20400E-03   -.15860E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.1818
  Index      = 2.23432
  Normalizat = 0.629958
  Prefactor  = 1.17617
 **********
 **   18 **HESSE 
 **********

 FCN=   5982.947     FROM HESSE     STATUS=OK            25 CALLS      311 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.182        54.668        .42642E-05   -1.4955    
   2  Index         2.2343        1.4384        .29255E-02   -.58612    
   3  Normalizat    .62996        .21005        .12961E-04   -1.0673    
   4  Prefactor     1.1762        .17709        .40800E-04   -.87068    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03449e-11
Minuit parameter uncertainties:
  1  54.8624
  2  1.46865
  3  0.210312
  4  0.177177
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/342907': 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) = 5982.9469928
delta logL = 0.00322417337611

Extracting fit parameters...

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  1.418e+01  5.486e+01  1.000e-04  1.000e+04 ( 1.000e-14)
254        Index:  2.234e+00  1.469e+00  0.000e+00  1.000e+01 (-1.000e+00)
255        Scale:  1.694e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
521    Prefactor:  1.176e+00  1.772e-01  0.000e+00  1.000e+01 ( 1.000e+00)
522        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
523        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
520   Normalization:  6.300e-01  2.103e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
Ra Dec: 16.851 3.569

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/342907/cmap_HighResolution_251251201_251510401_4FGL_J0107.4+0334_daily_bin46.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.37e-03', job_status='DONE', photon_flux_upper_limit='8.27e-08', time_completed='2021-08-13 12:31:11.300048', job_id='342907', GAL2='1.18', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1628883071.3', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='3.22e-03', ts2='0.10', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='46' AND source_name='4FGL J0107.4+0334' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 12:31:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0010>
Subject: Job 342907: <4FGL_J0107.4+0334_daily_bin46> in cluster <slac> Done

Job <4FGL_J0107.4+0334_daily_bin46> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 13 12:15:48 2021
Job was executed on host(s) <bullet0010>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 12:17:35 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 13 12:17:35 2021
Terminated at Fri Aug 13 12:31:12 2021
Results reported at Fri Aug 13 12:31:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0107.4+0334_daily_bin46 16.8508 3.5691 251251201 251510401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0107.4+0334 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   658.49 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             262.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            924 sec.

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

