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


Performing analysis on: 4FGL_J0105.1+3929_daily_bin1240
RA = 16.2913, Dec = 39.4963
tmin = 560736001, tmax = 560995201
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='341212', job_status='RUN', time_executed='2021-08-13 12:17:18.331098', time_epoch_executed='1628882238.33' WHERE source_name='4FGL J0105.1+3929' and cadence='daily' and bin_id='1240'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/341212

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/341212/ft1_4FGL_J0105.1+3929_daily_bin1240.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/341212/ft2_4FGL_J0105.1+3929_daily_bin1240.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/341212/ft1_4FGL_J0105.1+3929_daily_bin1240.fits outfile=/scratch/kocevski/341212/ft1_filteredMKT_4FGL_J0105.1+3929_daily_bin1240.fits ra=16.2913 dec=39.4963 rad=12.0 tmin=560736001.0 tmax=560995201.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 11.78
user 3.56
sys 8.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/341212/ft2_4FGL_J0105.1+3929_daily_bin1240.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/341212/ft2_4FGL_J0105.1+3929_daily_bin1240.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/341212/ft1_filteredMKT_4FGL_J0105.1+3929_daily_bin1240.fits evtable="EVENTS" outfile="/scratch/kocevski/341212/ft1_filtered_4FGL_J0105.1+3929_daily_bin1240.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 9.53
user 0.34
sys 8.77

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/341212/ft1_filtered_4FGL_J0105.1+3929_daily_bin1240.fits" evtable="EVENTS" scfile=/scratch/kocevski/341212/ft2_4FGL_J0105.1+3929_daily_bin1240.fits sctable="SC_DATA" outfile=/scratch/kocevski/341212/ltcube_560736001_560995201_4FGL_J0105.1+3929_daily_bin1240.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/341212/ft2_4FGL_J0105.1+3929_daily_bin1240.fits
.....................!
real 22.21
user 12.93
sys 9.14

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/341212/ft1_filtered_4FGL_J0105.1+3929_daily_bin1240.fits evtable="EVENTS" scfile=/scratch/kocevski/341212/ft2_4FGL_J0105.1+3929_daily_bin1240.fits sctable="SC_DATA" expcube=/scratch/kocevski/341212/ltcube_560736001_560995201_4FGL_J0105.1+3929_daily_bin1240.fits outfile=/scratch/kocevski/341212/expmap_560736001_560995201_4FGL_J0105.1+3929_daily_bin1240.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/341212/ltcube_560736001_560995201_4FGL_J0105.1+3929_daily_bin1240.fits
.....................!
real 200.67
user 185.61
sys 14.41

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

Setting source of interest to:
4FGL J0105.1+3929 @ 16.2913 39.4963

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/341212/ft1_filtered_4FGL_J0105.1+3929_daily_bin1240.fits scfile=/scratch/kocevski/341212/ft2_4FGL_J0105.1+3929_daily_bin1240.fits outfile=/scratch/kocevski/341212/cmap_560736001_560995201_4FGL_J0105.1+3929_daily_bin1240.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.2913 yref=39.4963 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 8.41
user 0.38
sys 7.96

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/341212/ft1_filtered_4FGL_J0105.1+3929_daily_bin1240.fits scfile=/scratch/kocevski/341212/ft2_4FGL_J0105.1+3929_daily_bin1240.fits outfile=/scratch/kocevski/341212/cmap_HighResolution_560736001_560995201_4FGL_J0105.1+3929_daily_bin1240.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.2913 yref=39.4963 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 8.49
user 0.39
sys 8.07

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/341212/ft1_filtered_4FGL_J0105.1+3929_daily_bin1240.fits evtable="EVENTS" scfile=/scratch/kocevski/341212/ft2_4FGL_J0105.1+3929_daily_bin1240.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/341212/Model_4FGL_J0105.1+3929_daily_bin1240.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/341212/ft1_filtered_4FGL_J0105.1+3929_daily_bin1240.fits......................!
real 35.48
user 23.72
sys 11.58

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/341212/ft1_filtered_4FGL_J0105.1+3929_daily_bin1240.fits', '/scratch/kocevski/341212/ft2_4FGL_J0105.1+3929_daily_bin1240.fits', expMap='/scratch/kocevski/341212/expmap_560736001_560995201_4FGL_J0105.1+3929_daily_bin1240.fits', expCube='/scratch/kocevski/341212/ltcube_560736001_560995201_4FGL_J0105.1+3929_daily_bin1240.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/341212/Model_4FGL_J0105.1+3929_daily_bin1240.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0105.1+3929'

4FGL J0105.1+3929
   Spectrum: PowerLaw
194    Prefactor:  5.058e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
195        Index:  2.304e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
196        Scale:  1.083e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/341212/ft1_filtered_4FGL_J0105.1+3929_daily_bin1240.fits
Spacecraft file(s): /scratch/kocevski/341212/ft2_4FGL_J0105.1+3929_daily_bin1240.fits
Exposure map: /scratch/kocevski/341212/expmap_560736001_560995201_4FGL_J0105.1+3929_daily_bin1240.fits
Exposure cube: /scratch/kocevski/341212/ltcube_560736001_560995201_4FGL_J0105.1+3929_daily_bin1240.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/341212/Model_4FGL_J0105.1+3929_daily_bin1240.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) = 1372.74671239

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    275.67       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    17.684       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.4755       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10882E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.533       1.0000         .10000E-03   10000.    
    22 'Prefactor '    190.59       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .98602       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .75791       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1371.869     FROM MIGRAD    STATUS=CONVERGED    548 CALLS     2869 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          275.29        213.91       -.22391E-05   -.27680E-04
   2  Prefactor     .10000E-03    139.86       -.15687E-04** at limit **
   3  Prefactor     .10000E-03    61.026       -.12170E-06** at limit **
   4  Prefactor     .10003E-03    1795.1       -.35835E-05** at limit **
   5  Prefactor     .10000E-03    89.621       -.11741E-05** at limit **
   6  Prefactor     .10000E-03    209.90        .61511E-07** at limit **
   7  norm          17.683        8.3080       -.21726E-06   -.59258E-04
   8  Prefactor     .10000E-03    15.275       -.13728E-06** at limit **
   9  Prefactor     4.4756        26.132        .10340E-04    .49956E-04
  10  Prefactor     .10000E-03    23.281       -.23795E-07** at limit **
  11  Prefactor     .10000E-03    511.37        .11017E-05** at limit **
  12  Prefactor     .10000E-03    178.55       -.43421E-07** at limit **
  13  norm          .10000E-03    1.9558        .59021E-06** at limit **
  14  norm          .10000E-03    367.06        .34382E-06** at limit **
  15  Prefactor     .10000E-03    19.901        .17503E-05** at limit **
  16  Prefactor     .10000E-03    488.27       -.21975E-06** at limit **
  17  Prefactor     .10000E-03    251.63        .21108E-06** at limit **
  18  norm          .10000E-03    1.5359        .58718E-07** at limit **
  19  norm          .10000E-03    3.8438       -.14107E-06** at limit **
  20  Prefactor     .10000E-03    39.271        .14425E-05** at limit **
  21  Prefactor     16.540        14.148        .46392E-06   -.43390E-04
  22  Prefactor     190.10        334.78       -.25239E-05   -.17311E-04
  23  Normalizat    .98509        .47552       -.14060E-04   -.78754E-05
  24  Prefactor     .75842        .26856        .60761E-05   -.20428E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 275.291
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.000100032
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.6834
  Prefactor  = 0.0001
  Prefactor  = 4.47561
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.5395
  Prefactor  = 190.102
  Normalizat = 0.985092
  Prefactor  = 0.758423
 **********
 **   18 **HESSE 
 **********

 FCN=   1371.869     FROM HESSE     STATUS=OK           383 CALLS     3252 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          275.29        213.59        .12215E-03   -1.2374    
   2  Prefactor     .10000E-03    141.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    61.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10003E-03    1799.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    89.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    209.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          17.683        8.3077        .70279E-04   -1.4867    
   8  Prefactor     .10000E-03    15.286        .14142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.4756        26.778        .95164E-03   -1.5285    
  10  Prefactor     .10000E-03    23.284        .17462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    524.19        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    178.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.0387        .10075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    367.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.228        .16158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    488.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    251.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.5384        .44832E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.8452        .70931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    39.370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     16.540        14.149        .98501E-04   -1.4894    
  22  Prefactor     190.10        336.02        .14627E-03   -1.2942    
  23  Normalizat    .98509        .51615        .31858E-03   -.93532    
  24  Prefactor     .75842        .29601        .20328E-03   -1.0128    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.8117e-10
Minuit parameter uncertainties:
  1  214.203
  2  0.00141812
  3  2.08822e-05
  4  0.0156758
  5  8.67958e-05
  6  0.000229012
  7  8.30821
  8  3.78197e-06
  9  21.9095
  10  7.84696e-06
  11  0.00191453
  12  8.5883e-05
  13  1.09015e-05
  14  0.000657362
  15  0.000188303
  16  0.000281896
  17  0.000602956
  18  1.14656e-06
  19  1.41346e-06
  20  0.00013975
  21  14.1521
  22  339.506
  23  0.518789
  24  0.296632
Done.

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

Extracting fit parameters...

4FGL J0105.1+3929
   Spectrum: PowerLaw
194    Prefactor:  1.000e-04  1.915e-03  1.000e-04  1.000e+04 ( 1.000e-13)
195        Index:  2.304e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
196        Scale:  1.083e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  7.584e-01  2.966e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  9.851e-01  5.188e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 16.291 39.496
Photon Flux Upper Limit: 3.75e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.88e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/341212/likelihoodResults_560736001_560995201_4FGL_J0105.1+3929_daily_bin1240.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) = 1371.86929731
delta logL = -8.9455681973e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1371.8692884
delta logL = -3.92344645661e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2845       1.0000          .0000       10.000    
     3 'Normalizat'    .98509       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75843       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5580E+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.

 FCN=   1371.547     FROM MIGRAD    STATUS=CONVERGED    151 CALLS      336 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.3059        53.245        .54711E-03   -.60993E-04
   2  Index         3.9887        3.3069        .46976E-02    .12185E-03
   3  Normalizat    .88443        .51705        .33347E-03   -.30521E-04
   4  Prefactor     .78574        .29133        .19967E-03   -.23857E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.30594
  Index      = 3.98871
  Normalizat = 0.884434
  Prefactor  = 0.785741
 **********
 **   18 **HESSE 
 **********

 FCN=   1371.547     FROM HESSE     STATUS=OK            25 CALLS      361 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.3059        16.297        .21884E-04   -1.5293    
   2  Index         3.9887        1.9014        .93952E-03   -.20366    
   3  Normalizat    .88443        .51770        .13339E-04   -.97009    
   4  Prefactor     .78574        .29140        .79866E-05   -1.0026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64816e-11
Minuit parameter uncertainties:
  1  16.3143
  2  1.9528
  3  0.520647
  4  0.291973
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/341212': 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) = 1371.54740018
delta logL = 0.321888182705

Extracting fit parameters...

4FGL J0105.1+3929
   Spectrum: PowerLaw
194    Prefactor:  4.306e+00  1.631e+01  1.000e-04  1.000e+04 ( 1.000e-13)
195        Index:  3.989e+00  1.953e+00  0.000e+00  1.000e+01 (-1.000e+00)
196        Scale:  1.083e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
555    Prefactor:  7.857e-01  2.920e-01  0.000e+00  1.000e+01 ( 1.000e+00)
556        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
557        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
554   Normalization:  8.844e-01  5.206e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 16.291 39.496

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/341212/cmap_HighResolution_560736001_560995201_4FGL_J0105.1+3929_daily_bin1240.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.88e-02', job_status='DONE', photon_flux_upper_limit='3.75e-07', time_completed='2021-08-13 12:25:57.366723', job_id='341212', GAL2='0.79', fit_tolerance='1e-08', EG2='0.88', EG='0.99', time_epoch_completed='1628882757.37', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='3.22e-01', ts2='0.67', photon_index_error='0.00', photon_index='2.30' WHERE bin_id='1240' AND source_name='4FGL J0105.1+3929' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 13 12:25:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 341212: <4FGL_J0105.1+3929_daily_bin1240> in cluster <slac> Done

Job <4FGL_J0105.1+3929_daily_bin1240> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 13 12:10:20 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 13 12:11:40 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:11:40 2021
Terminated at Fri Aug 13 12:25:59 2021
Results reported at Fri Aug 13 12:25:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0105.1+3929_daily_bin1240 16.2913 39.4963 560736001 560995201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0105.1+3929 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   640.23 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             188.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   39 MB
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   861 sec.
    Turnaround time :                            939 sec.

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

