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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin1517
RA = 66.1945, Dec = 0.6028
tmin = 632534401, tmax = 632793601
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='418276', job_status='RUN', time_executed='2021-08-20 13:56:09.430580', time_epoch_executed='1629492969.43' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='1517'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/418276

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/418276/ft1_4FGL_J0424.7+0036_daily_bin1517.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/418276/ft2_4FGL_J0424.7+0036_daily_bin1517.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/418276/ft1_4FGL_J0424.7+0036_daily_bin1517.fits outfile=/scratch/kocevski/418276/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin1517.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=632534401.0 tmax=632793601.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.23
user 3.35
sys 0.85

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/418276/ft2_4FGL_J0424.7+0036_daily_bin1517.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/418276/ft2_4FGL_J0424.7+0036_daily_bin1517.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/418276/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin1517.fits evtable="EVENTS" outfile="/scratch/kocevski/418276/ft1_filtered_4FGL_J0424.7+0036_daily_bin1517.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.12
user 0.31
sys 0.79

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/418276/ft1_filtered_4FGL_J0424.7+0036_daily_bin1517.fits" evtable="EVENTS" scfile=/scratch/kocevski/418276/ft2_4FGL_J0424.7+0036_daily_bin1517.fits sctable="SC_DATA" outfile=/scratch/kocevski/418276/ltcube_632534401_632793601_4FGL_J0424.7+0036_daily_bin1517.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/418276/ft2_4FGL_J0424.7+0036_daily_bin1517.fits
.....................!
real 12.49
user 11.45
sys 1.00

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/418276/ft1_filtered_4FGL_J0424.7+0036_daily_bin1517.fits evtable="EVENTS" scfile=/scratch/kocevski/418276/ft2_4FGL_J0424.7+0036_daily_bin1517.fits sctable="SC_DATA" expcube=/scratch/kocevski/418276/ltcube_632534401_632793601_4FGL_J0424.7+0036_daily_bin1517.fits outfile=/scratch/kocevski/418276/expmap_632534401_632793601_4FGL_J0424.7+0036_daily_bin1517.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/418276/ltcube_632534401_632793601_4FGL_J0424.7+0036_daily_bin1517.fits
.....................!
real 191.44
user 185.70
sys 5.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 142 point sources and 0 extended sources

Setting source of interest to:
4FGL J0424.7+0036 @ 66.1945 0.6028

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/418276/ft1_filtered_4FGL_J0424.7+0036_daily_bin1517.fits scfile=/scratch/kocevski/418276/ft2_4FGL_J0424.7+0036_daily_bin1517.fits outfile=/scratch/kocevski/418276/cmap_632534401_632793601_4FGL_J0424.7+0036_daily_bin1517.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=66.1945 yref=0.6028 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 1.20
user 0.36
sys 0.79

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/418276/ft1_filtered_4FGL_J0424.7+0036_daily_bin1517.fits scfile=/scratch/kocevski/418276/ft2_4FGL_J0424.7+0036_daily_bin1517.fits outfile=/scratch/kocevski/418276/cmap_HighResolution_632534401_632793601_4FGL_J0424.7+0036_daily_bin1517.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=66.1945 yref=0.6028 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 1.15
user 0.38
sys 0.76

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/418276/ft1_filtered_4FGL_J0424.7+0036_daily_bin1517.fits evtable="EVENTS" scfile=/scratch/kocevski/418276/ft2_4FGL_J0424.7+0036_daily_bin1517.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/418276/Model_4FGL_J0424.7+0036_daily_bin1517.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/418276/ft1_filtered_4FGL_J0424.7+0036_daily_bin1517.fits.....................!
real 114.20
user 111.89
sys 2.04

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/418276/ft1_filtered_4FGL_J0424.7+0036_daily_bin1517.fits', '/scratch/kocevski/418276/ft2_4FGL_J0424.7+0036_daily_bin1517.fits', expMap='/scratch/kocevski/418276/expmap_632534401_632793601_4FGL_J0424.7+0036_daily_bin1517.fits', expCube='/scratch/kocevski/418276/ltcube_632534401_632793601_4FGL_J0424.7+0036_daily_bin1517.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/418276/Model_4FGL_J0424.7+0036_daily_bin1517.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0424.7+0036'

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.091e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  2.213e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  1.326e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/418276/ft1_filtered_4FGL_J0424.7+0036_daily_bin1517.fits
Spacecraft file(s): /scratch/kocevski/418276/ft2_4FGL_J0424.7+0036_daily_bin1517.fits
Exposure map: /scratch/kocevski/418276/expmap_632534401_632793601_4FGL_J0424.7+0036_daily_bin1517.fits
Exposure cube: /scratch/kocevski/418276/ltcube_632534401_632793601_4FGL_J0424.7+0036_daily_bin1517.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/418276/Model_4FGL_J0424.7+0036_daily_bin1517.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) = 7763.23916292

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.988       1.0000         .10000E-03   10000.    
     3 'Prefactor '    24.778       1.0000         .10000E-03   10000.    
     4 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.9905       1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.988       1.0000         .10000E-03   10000.    
     8 'norm      '    .10105E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    14.787       1.0000         .10000E-03   10000.    
    10 'norm      '    .45898       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13328E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    41.307       1.0000         .10000E-03   10000.    
    13 'Prefactor '    52.138       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.929       1.0000         .10000E-03   10000.    
    15 'norm      '    3.8673       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10432E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .56403       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.3790       1.0000         .10000E-03   10000.    
    22 'norm      '    .63652       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .50906       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1032       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7763.110     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     3058 TOTAL
                     EDM=   .85E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .52361        .76976E-07** at limit **
   2  Prefactor     18.979        55.343       -.14464E-07   -.11709E-04
   3  Prefactor     24.772        19.579        .55264E-06    .53768E-05
   4  norm          .10000E-03    8.3435        .38487E-07** at limit **
   5  Prefactor     7.9810        31.537        .44429E-05    .58140E-04
   6  norm          .10000E-03    1.3653        .24581E-07** at limit **
   7  Prefactor     12.004        34.306       -.80147E-06   -.29626E-04
   8  norm          .10000E-03    5.7469        .63994E-07** at limit **
   9  norm          14.778        28.143        .34662E-05    .12523E-03
  10  norm          .45980        .79709       -.10472E-05   -.10274E-02
  11  Prefactor     .10000E-03    1.0301       -.95333E-06** at limit **
  12  Prefactor     41.331        31.235       -.57002E-06   -.60938E-05
  13  Prefactor     52.045        50.628        .14573E-05    .14104E-03
  14  Prefactor     20.909        13.632        .58315E-06    .17696E-03
  15  norm          3.8673        3.5297        .21295E-06   -.88939E-04
  16  Prefactor     .10000E-03    17.697        .35579E-06** at limit **
  17  norm          .10000E-03    .63706       -.13299E-06** at limit **
  18  Prefactor     .10000E-03    6.1698       -.37220E-07** at limit **
  19  Prefactor     .10000E-03    17.017       -.34784E-06** at limit **
  20  norm          .56359        2.0946        .95384E-06   -.74386E-03
  21  Prefactor     5.3817        47.686       -.21753E-06   -.11776E-04
  22  norm          .63671        .67676        .24980E-07   -.27963E-03
  23  Prefactor     .10000E-03    10.465       -.17320E-07** at limit **
  24  Normalizat    .50935        .24924        .30514E-06    .76160E-04
  25  Prefactor     1.1030        .93461E-01   -.21296E-06    .30005E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 18.9791
  Prefactor  = 24.7717
  norm       = 0.0001
  Prefactor  = 7.98104
  norm       = 0.0001
  Prefactor  = 12.0043
  norm       = 0.0001
  norm       = 14.7777
  norm       = 0.459799
  Prefactor  = 0.000100001
  Prefactor  = 41.3306
  Prefactor  = 52.0454
  Prefactor  = 20.9091
  norm       = 3.86733
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.563594
  Prefactor  = 5.38172
  norm       = 0.636709
  Prefactor  = 0.0001
  Normalizat = 0.509346
  Prefactor  = 1.10303
 **********
 **   18 **HESSE 
 **********

 FCN=   7763.110     FROM HESSE     STATUS=OK           435 CALLS     3493 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .78942        .12405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.979        55.240        .91915E-04   -1.4836    
   3  Prefactor     24.772        19.533        .80474E-04   -1.4712    
   4  norm          .10000E-03    8.3490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.9810        31.441        .14184E-03   -1.5143    
   6  norm          .10000E-03    1.3679        .10052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.004        34.261        .11570E-03   -1.5015    
   8  norm          .10000E-03    5.7923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          14.778        27.854        .10416E-03   -1.4939    
  10  norm          .45980        .73789        .11119E-02   -1.5572    
  11  Prefactor     .10000E-03    1.3215        .15825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     41.331        31.011        .62370E-04   -1.4421    
  13  Prefactor     52.045        50.743        .55544E-04   -1.4264    
  14  Prefactor     20.909        13.572        .87553E-04   -1.4793    
  15  norm          3.8673        3.4922        .13499E-03   -1.5315    
  16  Prefactor     .10000E-03    17.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .64134        .68613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.2541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .56359        2.0625        .22148E-03   -1.5558    
  21  Prefactor     5.3817        45.114        .17327E-03   -1.5244    
  22  norm          .63671        .62965        .63022E-03   -1.5548    
  23  Prefactor     .10000E-03    10.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .50935        .24666        .51560E-03   -1.1198    
  25  Prefactor     1.1030        .97734E-01    .15064E-03   -.89370    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5226e-09
Minuit parameter uncertainties:
  1  6.91752e-06
  2  55.3898
  3  19.5376
  4  1.17198e-06
  5  31.5059
  6  1.50089e-06
  7  34.3172
  8  9.46941e-06
  9  27.8781
  10  0.737904
  11  8.26529e-05
  12  31.0228
  13  50.7853
  14  13.5745
  15  3.49242
  16  2.17861e-05
  17  3.30522e-06
  18  2.76364e-06
  19  1.52596e-06
  20  2.0628
  21  31.195
  22  0.629654
  23  8.70146e-06
  24  0.247187
  25  0.0977496
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  8.265e-05  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  2.213e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
221        Scale:  1.326e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
459    Prefactor:  1.103e+00  9.775e-02  0.000e+00  1.000e+01 ( 1.000e+00)
460        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
461        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
458   Normalization:  5.093e-01  2.472e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 66.195 0.603
Photon Flux Upper Limit: 9.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.29e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/418276/likelihoodResults_632534401_632793601_4FGL_J0424.7+0036_daily_bin1517.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) = 7763.11399164
delta logL = -0.00360791733419

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7763.11038503
delta logL = -1.30313674163e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2241       1.0000          .0000       10.000    
     3 'Normalizat'    .50967       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1030       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4620E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7763.110     FROM MIGRAD    STATUS=FAILED        93 CALLS      254 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10032E-03    10.022        .15767E-02** at limit **
   2  Index         2.2523        6.2444        .50000       -.55596E-04
   3  Normalizat    .50935        .15992E-01    .51558E-03    .36453E-03
   4  Prefactor     1.1030        .67513E-02    .15064E-03    .96109E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7763.110     FROM SIMPLEX   STATUS=UNCHANGED    125 CALLS      379 TOTAL
                     EDM=   .99E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10032E-03    10.022        .18147E-03** at limit **
   2  Index         2.2523        6.2444        .59303E-02   -.55596E-04
   3  Normalizat    .50935        .15992E-01    .38016E-04    .36453E-03
   4  Prefactor     1.1030        .67513E-02    .16606E-05    .96109E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7763.110     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      412 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10020E-03    52.274        .31534E-03** at limit **
   2  Index         2.2494        8.8117        .50000       -.56590E-04
   3  Normalizat    .50935        .37859E-01    .20623E-04    .36239E-03
   4  Prefactor     1.1030        .15979E-01    .30127E-04    .95516E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100196
  Index      = 2.24936
  Normalizat = 0.509349
  Prefactor  = 1.10303
 **********
 **   18 **HESSE 
 **********

 FCN=   7763.110     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      441 TOTAL
                     EDM=   .81E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10020E-03    238.12        .63067E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2494        5.2132        .50000       -.58252    
   3  Normalizat    .50935        .10936        .41247E-05   -1.1198    
   4  Prefactor     1.1030        .45751E-01    .60255E-05   -.89370    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.13056e-08
Minuit parameter uncertainties:
  1  0.0137096
  2  375.954
  3  0.109405
  4  0.0457525
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/418276': 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) = 7763.11038325
delta logL = 4.76090463053e-07

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.002e-04  1.371e-02  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  2.249e+00  3.760e+02  0.000e+00  1.000e+01 (-1.000e+00)
221        Scale:  1.326e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
459    Prefactor:  1.103e+00  4.575e-02  0.000e+00  1.000e+01 ( 1.000e+00)
460        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
461        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
458   Normalization:  5.093e-01  1.094e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 66.195 0.603

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/418276/cmap_HighResolution_632534401_632793601_4FGL_J0424.7+0036_daily_bin1517.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.29e-03', job_status='DONE', photon_flux_upper_limit='9.56e-08', time_completed='2021-08-20 14:09:06.317983', job_id='418276', GAL2='1.10', fit_tolerance='1e-08', EG2='0.51', EG='0.51', time_epoch_completed='1629493746.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='4.76e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='1517' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 14:09:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 418276: <4FGL_J0424.7+0036_daily_bin1517> in cluster <slac> Done

Job <4FGL_J0424.7+0036_daily_bin1517> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Aug 20 13:55:48 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 13:55:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 13:55:49 2021
Terminated at Fri Aug 20 14:09:07 2021
Results reported at Fri Aug 20 14:09:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin1517 66.1945 0.6028 632534401 632793601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0424.7+0036 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   784.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             354.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            799 sec.

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

