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


Performing analysis on: 4FGL_J0107.4+0334_daily_bin56
RA = 16.8508, Dec = 3.5691
tmin = 253843201, tmax = 254102401
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='344016', job_status='RUN', time_executed='2021-08-13 12:22:23.859686', time_epoch_executed='1628882543.86' WHERE source_name='4FGL J0107.4+0334' and cadence='daily' and bin_id='56'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/344016

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/344016/ft1_4FGL_J0107.4+0334_daily_bin56.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/344016/ft2_4FGL_J0107.4+0334_daily_bin56.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/344016/ft1_4FGL_J0107.4+0334_daily_bin56.fits outfile=/scratch/kocevski/344016/ft1_filteredMKT_4FGL_J0107.4+0334_daily_bin56.fits ra=16.8508 dec=3.5691 rad=12.0 tmin=253843201.0 tmax=254102401.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.70
user 1.30
sys 3.35

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/344016/ft2_4FGL_J0107.4+0334_daily_bin56.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/344016/ft1_filteredMKT_4FGL_J0107.4+0334_daily_bin56.fits evtable="EVENTS" outfile="/scratch/kocevski/344016/ft1_filtered_4FGL_J0107.4+0334_daily_bin56.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 3.70
user 0.35
sys 3.30

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/344016/ft1_filtered_4FGL_J0107.4+0334_daily_bin56.fits" evtable="EVENTS" scfile=/scratch/kocevski/344016/ft2_4FGL_J0107.4+0334_daily_bin56.fits sctable="SC_DATA" outfile=/scratch/kocevski/344016/ltcube_253843201_254102401_4FGL_J0107.4+0334_daily_bin56.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/344016/ft2_4FGL_J0107.4+0334_daily_bin56.fits
.....................!
real 18.43
user 14.36
sys 3.87

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/344016/ft1_filtered_4FGL_J0107.4+0334_daily_bin56.fits evtable="EVENTS" scfile=/scratch/kocevski/344016/ft2_4FGL_J0107.4+0334_daily_bin56.fits sctable="SC_DATA" expcube=/scratch/kocevski/344016/ltcube_253843201_254102401_4FGL_J0107.4+0334_daily_bin56.fits outfile=/scratch/kocevski/344016/expmap_253843201_254102401_4FGL_J0107.4+0334_daily_bin56.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/344016/ltcube_253843201_254102401_4FGL_J0107.4+0334_daily_bin56.fits
.....................!
real 194.80
user 185.03
sys 9.35

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/344016/ft1_filtered_4FGL_J0107.4+0334_daily_bin56.fits scfile=/scratch/kocevski/344016/ft2_4FGL_J0107.4+0334_daily_bin56.fits outfile=/scratch/kocevski/344016/cmap_253843201_254102401_4FGL_J0107.4+0334_daily_bin56.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 3.39
user 0.38
sys 2.97

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/344016/ft1_filtered_4FGL_J0107.4+0334_daily_bin56.fits scfile=/scratch/kocevski/344016/ft2_4FGL_J0107.4+0334_daily_bin56.fits outfile=/scratch/kocevski/344016/cmap_HighResolution_253843201_254102401_4FGL_J0107.4+0334_daily_bin56.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 3.69
user 0.39
sys 3.28

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/344016/ft1_filtered_4FGL_J0107.4+0334_daily_bin56.fits', '/scratch/kocevski/344016/ft2_4FGL_J0107.4+0334_daily_bin56.fits', expMap='/scratch/kocevski/344016/expmap_253843201_254102401_4FGL_J0107.4+0334_daily_bin56.fits', expCube='/scratch/kocevski/344016/ltcube_253843201_254102401_4FGL_J0107.4+0334_daily_bin56.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/344016/Model_4FGL_J0107.4+0334_daily_bin56.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/344016/ft1_filtered_4FGL_J0107.4+0334_daily_bin56.fits
Spacecraft file(s): /scratch/kocevski/344016/ft2_4FGL_J0107.4+0334_daily_bin56.fits
Exposure map: /scratch/kocevski/344016/expmap_253843201_254102401_4FGL_J0107.4+0334_daily_bin56.fits
Exposure cube: /scratch/kocevski/344016/ltcube_253843201_254102401_4FGL_J0107.4+0334_daily_bin56.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/344016/Model_4FGL_J0107.4+0334_daily_bin56.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) = 9036.67785025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3089       1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.168       1.0000         .10000E-03   10000.    
     3 'norm      '    2.4410       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.7040       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7434       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .17510       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3817       1.0000         .10000E-03   10000.    
     8 'norm      '    2.7618       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.1113       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.0000       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10295E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2959       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    39.169       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .70412       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.1130       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.

 FCN=   9036.622     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     2801 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3088        4.6495        .67248E-07   -.18754E-05
   2  Prefactor     13.165        11.476        .23315E-07   -.20452E-05
   3  norm          2.4409        4.5982        .44894E-05    .13077E-04
   4  Prefactor     7.7026        8.8860        .44912E-07   -.10091E-04
   5  Prefactor     1.7452        4.0193        .59619E-06    .17567E-04
   6  Prefactor     .17293        .90466       -.23757E-06    .39373E-03
   7  Prefactor     1.3819        1.7444        .98631E-07    .21496E-04
   8  norm          2.7618        2.6353        .31785E-07   -.71975E-05
   9  Prefactor     .10000E-03    14.363        .30240E-06** at limit **
  10  norm          5.1122        9.5611        .22821E-06   -.39319E-06
  11  Prefactor     .10000E-03    11.965       -.88855E-07** at limit **
  12  Prefactor     .10000E-03    46.725       -.80488E-06** at limit **
  13  norm          7.9996        1.6189       -.77220E-09    .39671E-05
  14  Prefactor     .10000E-03    46.787        .13300E-06** at limit **
  15  Prefactor     1.2957        4.0303        .43456E-06    .67148E-05
  16  Prefactor     .10000E-03    2.1884        .25011E-08** at limit **
  17  Prefactor     .10000E-03    1.8658        .15126E-07** at limit **
  18  Prefactor     39.107        36.545        .78888E-05    .13849E-05
  19  Prefactor     .10000E-03    1.0892       -.16342E-07** at limit **
  20  Normalizat    .70430        .15345       -.47571E-06   -.33450E-06
  21  Prefactor     1.1128        .12297       -.68377E-06   -.19309E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.30875
  Prefactor  = 13.1654
  norm       = 2.4409
  Prefactor  = 7.70256
  Prefactor  = 1.74521
  Prefactor  = 0.172931
  Prefactor  = 1.3819
  norm       = 2.76183
  Prefactor  = 0.0001
  norm       = 5.11216
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.9996
  Prefactor  = 0.0001
  Prefactor  = 1.29573
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.1074
  Prefactor  = 0.0001
  Normalizat = 0.7043
  Prefactor  = 1.11281
 **********
 **   18 **HESSE 
 **********

 FCN=   9036.622     FROM HESSE     STATUS=OK           323 CALLS     3124 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3088        4.6377        .15981E-03   -1.5206    
   2  Prefactor     13.165        11.463        .11038E-03   -1.4982    
   3  norm          2.4409        4.6020        .13093E-02   -1.5395    
   4  Prefactor     7.7026        8.8656        .14447E-03   -1.5153    
   5  Prefactor     1.7452        3.9922        .27585E-03   -1.5444    
   6  Prefactor     .17293        4.6826        .16853E-02   -1.5625    
   7  Prefactor     1.3819        1.7184        .13581E-03   -1.5473    
   8  norm          2.7618        2.6305        .14627E-03   -1.5376    
   9  Prefactor     .10000E-03    14.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.1122        9.5608        .17783E-03   -1.5256    
  11  Prefactor     .10000E-03    11.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    46.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          7.9996        1.6200        .51432E-04   -1.5142    
  14  Prefactor     .10000E-03    47.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.2957        3.9702        .32741E-03   -1.5480    
  16  Prefactor     .10000E-03    2.2125        .13727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.8708        .12681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     39.107        36.573        .32022E-03   -1.4456    
  19  Prefactor     .10000E-03    1.0912        .96884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .70430        .17711        .30081E-03   -1.0372    
  21  Prefactor     1.1128        .14257        .20208E-03   -.89058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.5066e-10
Minuit parameter uncertainties:
  1  4.63793
  2  11.4649
  3  4.60269
  4  8.86709
  5  3.99279
  6  1.79938
  7  1.71846
  8  2.63061
  9  1.26144e-05
  10  9.56368
  11  5.9227e-06
  12  4.39105e-06
  13  1.61997
  14  7.85706e-05
  15  3.97102
  16  1.40739e-06
  17  1.23581e-06
  18  36.5941
  19  3.12641e-07
  20  0.177251
  21  0.142614
Done.

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

Extracting fit parameters...

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  4.391e-06  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.113e+00  1.426e-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:  7.043e-01  1.773e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/344016/likelihoodResults_253843201_254102401_4FGL_J0107.4+0334_daily_bin56.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) = 9036.62242534
delta logL = -0.000101699753941

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9036.62232395
delta logL = -3.09384631692e-07

Fit tolerance = 1e-08

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

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

 FCN=   9036.622     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      239 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.815        .90712E-02** at limit **
   2  Index         2.5438        6.2203        .50000        .65988E-05
   3  Normalizat    .70430        .25557E-02    .67977E-01   -.39282E-04
   4  Prefactor     1.1128        .21254E-02    .37119E-01   -.60200E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.54378
  Normalizat = 0.7043
  Prefactor  = 1.11281
 **********
 **   18 **HESSE 
 **********

 FCN=   9036.622     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      270 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    173.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5438        7.0681        .50000       -.51352    
   3  Normalizat    .70430        .77761E-02    .30081E-03   -1.0372    
   4  Prefactor     1.1128        .64783E-02    .20208E-03   -.89058    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.38136e-07
Minuit parameter uncertainties:
  1  0.000326518
  2  242.547
  3  0.00777611
  4  0.00647827
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/344016': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9036.62232385
delta logL = -2.09802237805e-07

Extracting fit parameters...

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  3.265e-04  1.000e-04  1.000e+04 ( 1.000e-14)
254        Index:  2.544e+00  2.425e+02  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.113e+00  6.478e-03  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:  7.043e-01  7.776e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 16.851 3.569

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/344016/cmap_HighResolution_253843201_254102401_4FGL_J0107.4+0334_daily_bin56.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.10e-03', job_status='DONE', photon_flux_upper_limit='6.61e-08', time_completed='2021-08-13 12:36:22.035297', job_id='344016', GAL2='1.11', fit_tolerance='1e-08', EG2='0.70', EG='0.70', time_epoch_completed='1628883382.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='-2.10e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.35' WHERE bin_id='56' AND source_name='4FGL J0107.4+0334' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 12:36:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0148>
Subject: Job 344016: <4FGL_J0107.4+0334_daily_bin56> in cluster <slac> Done

Job <4FGL_J0107.4+0334_daily_bin56> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 13 12:20:18 2021
Job was executed on host(s) <bullet0148>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 12:20:21 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:20:21 2021
Terminated at Fri Aug 13 12:36:22 2021
Results reported at Fri Aug 13 12:36:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0107.4+0334_daily_bin56 16.8508 3.5691 253843201 254102401 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 :                                   886.18 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             298.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            964 sec.

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

