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


Performing analysis on: 4FGL_J0107.4+0334_daily_bin1652
RA = 16.8508, Dec = 3.5691
tmin = 667526401, tmax = 667785601
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='727056', job_status='RUN', time_executed='2022-03-01 00:10:33.158243', time_epoch_executed='1646122233.16' WHERE source_name='4FGL J0107.4+0334' and cadence='daily' and bin_id='1652'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/727056

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/727056/ft1_4FGL_J0107.4+0334_daily_bin1652.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/727056/ft2_4FGL_J0107.4+0334_daily_bin1652.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/727056/ft1_4FGL_J0107.4+0334_daily_bin1652.fits outfile=/scratch/kocevski/727056/ft1_filteredMKT_4FGL_J0107.4+0334_daily_bin1652.fits ra=16.8508 dec=3.5691 rad=12.0 tmin=667526401.0 tmax=667785601.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.58
user 4.28
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/727056/ft2_4FGL_J0107.4+0334_daily_bin1652.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/727056/ft1_filteredMKT_4FGL_J0107.4+0334_daily_bin1652.fits evtable="EVENTS" outfile="/scratch/kocevski/727056/ft1_filtered_4FGL_J0107.4+0334_daily_bin1652.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.52
user 0.33
sys 0.17
Number of photons that survived the gtmktime cut: 717

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/727056/ft1_filtered_4FGL_J0107.4+0334_daily_bin1652.fits" evtable="EVENTS" scfile=/scratch/kocevski/727056/ft2_4FGL_J0107.4+0334_daily_bin1652.fits sctable="SC_DATA" outfile=/scratch/kocevski/727056/ltcube_667526401_667785601_4FGL_J0107.4+0334_daily_bin1652.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/727056/ft2_4FGL_J0107.4+0334_daily_bin1652.fits
.....................!
real 15.21
user 14.80
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/727056/ft1_filtered_4FGL_J0107.4+0334_daily_bin1652.fits evtable="EVENTS" scfile=/scratch/kocevski/727056/ft2_4FGL_J0107.4+0334_daily_bin1652.fits sctable="SC_DATA" expcube=/scratch/kocevski/727056/ltcube_667526401_667785601_4FGL_J0107.4+0334_daily_bin1652.fits outfile=/scratch/kocevski/727056/expmap_667526401_667785601_4FGL_J0107.4+0334_daily_bin1652.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/727056/ltcube_667526401_667785601_4FGL_J0107.4+0334_daily_bin1652.fits
.....................!
real 192.39
user 186.85
sys 4.91

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/727056/ft1_filtered_4FGL_J0107.4+0334_daily_bin1652.fits scfile=/scratch/kocevski/727056/ft2_4FGL_J0107.4+0334_daily_bin1652.fits outfile=/scratch/kocevski/727056/cmap_667526401_667785601_4FGL_J0107.4+0334_daily_bin1652.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 0.56
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/727056/ft1_filtered_4FGL_J0107.4+0334_daily_bin1652.fits scfile=/scratch/kocevski/727056/ft2_4FGL_J0107.4+0334_daily_bin1652.fits outfile=/scratch/kocevski/727056/cmap_HighResolution_667526401_667785601_4FGL_J0107.4+0334_daily_bin1652.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 0.55
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3129       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    16.185       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.0340       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .84022       1.0000         .10000E-03   10000.    
     8 'norm      '    1.5667       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11714E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.693       1.0000         .10000E-03   10000.    
    12 'Prefactor '    47.892       1.0000         .10000E-03   10000.    
    13 'norm      '    35.325       1.0000         .10000E-03   10000.    
    14 'Prefactor '    82.149       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.312       1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.046       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.9893       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.8412       1.0000         .10000E-03   10000.    
    20 'Normalizat'    .79170       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.3778       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=   7793.237     FROM MIGRAD    STATUS=CONVERGED    435 CALLS     2204 TOTAL
                     EDM=   .41E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3126        5.0014        .15074E-06   -.40623E-04
   2  Prefactor     .10000E-03    3.9303        .19926E-07** at limit **
   3  norm          16.185        10.711        .13349E-07   -.34234E-05
   4  Prefactor     9.0323        17.584        .23529E-05   -.38118E-04
   5  Prefactor     .10000E-03    6.1204       -.97497E-07** at limit **
   6  Prefactor     .10000E-03    1.1135        .56276E-07** at limit **
   7  Prefactor     .83799        2.9356        .10520E-05   -.87178E-04
   8  norm          1.5655        6.7601        .94834E-06   -.98611E-04
   9  Prefactor     .10000E-03    62.694       -.59666E-06** at limit **
  10  norm          .10000E-03    4.4567        .14290E-07** at limit **
  11  Prefactor     28.665        44.454       -.30132E-05   -.76971E-04
  12  Prefactor     47.886        92.251       -.49041E-06   -.68580E-05
  13  norm          35.325        4.0501        .16376E-07   -.39541E-04
  14  Prefactor     82.138        60.256       -.90330E-06   -.40160E-04
  15  Prefactor     11.312        9.5174       -.26380E-08   -.18228E-04
  16  Prefactor     22.046        11.493        .66525E-07   -.21893E-04
  17  Prefactor     6.9888        9.3841       -.97771E-08   -.23575E-04
  18  Prefactor     .10000E-03    40.013        .11325E-06** at limit **
  19  Prefactor     4.8413        6.1896        .13895E-06   -.32964E-04
  20  Normalizat    .79155        .21133       -.49787E-06   -.20287E-04
  21  Prefactor     1.3779        .16735        .25342E-07   -.37806E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.31256
  Prefactor  = 0.0001
  norm       = 16.185
  Prefactor  = 9.03228
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.837985
  norm       = 1.56553
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 28.6646
  Prefactor  = 47.8857
  norm       = 35.3248
  Prefactor  = 82.1385
  Prefactor  = 11.3117
  Prefactor  = 22.046
  Prefactor  = 6.98884
  Prefactor  = 0.0001
  Prefactor  = 4.8413
  Normalizat = 0.791552
  Prefactor  = 1.37789
 **********
 **   18 **HESSE 
 **********

 FCN=   7793.237     FROM HESSE     STATUS=OK           317 CALLS     2521 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3126        5.0018        .19398E-03   -1.5293    
   2  Prefactor     .10000E-03    3.9356        .17090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          16.185        10.710        .99555E-04   -1.4903    
   4  Prefactor     9.0323        17.799        .66674E-03   -1.5107    
   5  Prefactor     .10000E-03    6.3382        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.1301        .90942E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .83799        2.8773        .26466E-03   -1.5525    
   8  norm          1.5655        6.5495        .33976E-03   -1.5458    
   9  Prefactor     .10000E-03    63.296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    4.4575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     28.665        46.161        .74794E-04   -1.4637    
  12  Prefactor     47.886        92.386        .57942E-04   -1.4323    
  13  norm          35.325        4.0548        .53852E-04   -1.4519    
  14  Prefactor     82.138        60.503        .44316E-04   -1.3893    
  15  Prefactor     11.312        9.5179        .11911E-03   -1.5035    
  16  Prefactor     22.046        11.489        .85308E-04   -1.4769    
  17  Prefactor     6.9888        9.3848        .15175E-03   -1.5179    
  18  Prefactor     .10000E-03    40.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.8413        6.1954        .18283E-03   -1.5268    
  20  Normalizat    .79155        .24164        .38921E-03   -1.0038    
  21  Prefactor     1.3779        .19345        .24385E-03   -.81020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.85596e-11
Minuit parameter uncertainties:
  1  5.00229
  2  5.59608e-08
  3  10.711
  4  17.8096
  5  1.86919e-05
  6  8.3115e-08
  7  2.87776
  8  6.40519
  9  0.000129758
  10  4.11386e-07
  11  46.2187
  12  92.6638
  13  4.05488
  14  60.548
  15  9.51913
  16  11.4903
  17  9.38678
  18  1.40656e-06
  19  6.19623
  20  0.241967
  21  0.19355
Done.

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

Extracting fit parameters...

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  4.789e+01  9.266e+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.378e+00  1.936e-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.916e-01  2.420e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.36
Ra Dec: 16.851 3.569
Photon Flux Upper Limit: 1.51e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.16e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/727056/likelihoodResults_667526401_667785601_4FGL_J0107.4+0334_daily_bin1652.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) = 7791.17885207
delta logL = 2.05783589339

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7790.60535194
delta logL = 2.63133602234

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    8.2941       1.0000          .0000       10.000    
     3 'Normalizat'    .61742       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4764       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=   7790.605     FROM MIGRAD    STATUS=CONVERGED    307 CALLS      708 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .96983E-03   -.12221E-07** at limit **
   2  Index         8.2939        .18558       -.34353E-06    .53646E-04
   3  Normalizat    .61769        .24441        .88708E-05   -.42874E-04
   4  Prefactor     1.4763        .19229        .28271E-05    .96156E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 8.29394
  Normalizat = 0.617692
  Prefactor  = 1.47629
 **********
 **   18 **HESSE 
 **********

 FCN=   7790.605     FROM HESSE     STATUS=NOT POSDEF    45 CALLS      753 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .15542E-02    .29435E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.2939        1.5776        .89132E-01   -11.847    
   3  Normalizat    .61769        .64205E-01    .97855E-01   -2.0692    
   4  Prefactor     1.4763        .50540E-01    .53572E-01   -.78206    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.27754e-08
Minuit parameter uncertainties:
  1  4.09081e-09
  2  1.62795
  3  0.0642123
  4  0.050542
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/727056': 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) = 7790.60534954
delta logL = 2.63133841992

Extracting fit parameters...

4FGL J0107.4+0334
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  4.091e-09  1.000e-04  1.000e+04 ( 1.000e-14)
254        Index:  8.294e+00  1.628e+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.476e+00  5.054e-02  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.177e-01  6.421e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.20
Ra Dec: 16.851 3.569
Photon Index (Free Index): 8.29 +/- 1.63
Photon Flux (Free Index): 2.18e-07 +/- 9.35e-07
Energy Flux (Free Index): 2.51e-05 +/- 1.08e-04

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/727056/cmap_HighResolution_667526401_667785601_4FGL_J0107.4+0334_daily_bin1652.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', comment='SUCCESS', energy_flux2='2.51e-05', dlogl='2.63e+00', photon_flux2='2.18e-07', job_status='DONE', time_completed='2022-03-01 00:23:01.412083', photon_index_error2='1.63', photon_index2='8.29', ts='0.36', fit_tolerance='1e-08', GAL='1.38', photon_index_error='0.00', photon_flux_upper_limit='1.51e-07', energy_flux_error2='1.08e-04', EG='0.79', time_epoch_completed='1646122981.41', return_code='0', job_id='727056', GAL2='1.48', EG2='0.62', return_code2='102', photon_flux_error2='9.35e-07', ts2='6.20', photon_index='2.35' WHERE bin_id='1652' AND source_name='4FGL J0107.4+0334' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar  1 00:23:01 PST 2022




------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 726684: <4FGL_J0107.4+0334_daily_bin1652> in cluster <slac> Done

Job <4FGL_J0107.4+0334_daily_bin1652> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Mar  1 00:06:07 2022
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar  1 00:07:12 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar  1 00:07:12 2022
Terminated at Tue Mar  1 00:22:33 2022
Results reported at Tue Mar  1 00:22:33 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0107.4+0334_daily_bin1652 16.8508 3.5691 667526401 667785601 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 :                                   740.01 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   921 sec.
    Turnaround time :                            986 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 727056: <4FGL_J0107.4+0334_daily_bin1652> in cluster <slac> Done

Job <4FGL_J0107.4+0334_daily_bin1652> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Mar  1 00:06:39 2022
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar  1 00:10:09 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar  1 00:10:09 2022
Terminated at Tue Mar  1 00:23:02 2022
Results reported at Tue Mar  1 00:23:02 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0107.4+0334_daily_bin1652 16.8508 3.5691 667526401 667785601 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 :                                   745.11 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            983 sec.

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

