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


Performing analysis on: 4FGL_J0424.7+0036_daily_bin943
RA = 66.1945, Dec = 0.6028
tmin = 483753601, tmax = 484012801
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='415256', job_status='RUN', time_executed='2021-08-20 13:49:50.230286', time_epoch_executed='1629492590.23' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='943'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/415256

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/415256/ft1_4FGL_J0424.7+0036_daily_bin943.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/415256/ft2_4FGL_J0424.7+0036_daily_bin943.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/415256/ft1_4FGL_J0424.7+0036_daily_bin943.fits outfile=/scratch/kocevski/415256/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin943.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=483753601.0 tmax=484012801.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 8.67
user 5.26
sys 3.38

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/415256/ft2_4FGL_J0424.7+0036_daily_bin943.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/415256/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin943.fits evtable="EVENTS" outfile="/scratch/kocevski/415256/ft1_filtered_4FGL_J0424.7+0036_daily_bin943.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.67
user 0.33
sys 3.32

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/415256/ft1_filtered_4FGL_J0424.7+0036_daily_bin943.fits" evtable="EVENTS" scfile=/scratch/kocevski/415256/ft2_4FGL_J0424.7+0036_daily_bin943.fits sctable="SC_DATA" outfile=/scratch/kocevski/415256/ltcube_483753601_484012801_4FGL_J0424.7+0036_daily_bin943.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/415256/ft2_4FGL_J0424.7+0036_daily_bin943.fits
.....................!
real 15.18
user 11.59
sys 3.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/415256/ft1_filtered_4FGL_J0424.7+0036_daily_bin943.fits evtable="EVENTS" scfile=/scratch/kocevski/415256/ft2_4FGL_J0424.7+0036_daily_bin943.fits sctable="SC_DATA" expcube=/scratch/kocevski/415256/ltcube_483753601_484012801_4FGL_J0424.7+0036_daily_bin943.fits outfile=/scratch/kocevski/415256/expmap_483753601_484012801_4FGL_J0424.7+0036_daily_bin943.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/415256/ltcube_483753601_484012801_4FGL_J0424.7+0036_daily_bin943.fits
.....................!
real 196.07
user 187.34
sys 8.40

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/415256/ft1_filtered_4FGL_J0424.7+0036_daily_bin943.fits scfile=/scratch/kocevski/415256/ft2_4FGL_J0424.7+0036_daily_bin943.fits outfile=/scratch/kocevski/415256/cmap_483753601_484012801_4FGL_J0424.7+0036_daily_bin943.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 3.68
user 0.39
sys 3.27

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/415256/ft1_filtered_4FGL_J0424.7+0036_daily_bin943.fits scfile=/scratch/kocevski/415256/ft2_4FGL_J0424.7+0036_daily_bin943.fits outfile=/scratch/kocevski/415256/cmap_HighResolution_483753601_484012801_4FGL_J0424.7+0036_daily_bin943.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 3.65
user 0.39
sys 3.25

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/415256/ft1_filtered_4FGL_J0424.7+0036_daily_bin943.fits evtable="EVENTS" scfile=/scratch/kocevski/415256/ft2_4FGL_J0424.7+0036_daily_bin943.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/415256/Model_4FGL_J0424.7+0036_daily_bin943.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/415256/ft1_filtered_4FGL_J0424.7+0036_daily_bin943.fits.....................!
real 92.94
user 87.45
sys 5.33

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/415256/ft1_filtered_4FGL_J0424.7+0036_daily_bin943.fits', '/scratch/kocevski/415256/ft2_4FGL_J0424.7+0036_daily_bin943.fits', expMap='/scratch/kocevski/415256/expmap_483753601_484012801_4FGL_J0424.7+0036_daily_bin943.fits', expCube='/scratch/kocevski/415256/ltcube_483753601_484012801_4FGL_J0424.7+0036_daily_bin943.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/415256/Model_4FGL_J0424.7+0036_daily_bin943.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/415256/ft1_filtered_4FGL_J0424.7+0036_daily_bin943.fits
Spacecraft file(s): /scratch/kocevski/415256/ft2_4FGL_J0424.7+0036_daily_bin943.fits
Exposure map: /scratch/kocevski/415256/expmap_483753601_484012801_4FGL_J0424.7+0036_daily_bin943.fits
Exposure cube: /scratch/kocevski/415256/ltcube_483753601_484012801_4FGL_J0424.7+0036_daily_bin943.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/415256/Model_4FGL_J0424.7+0036_daily_bin943.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) = 5843.60609362

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0957       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.440       1.0000         .10000E-03   10000.    
     4 'norm      '    .54762E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.823       1.0000         .10000E-03   10000.    
     6 'norm      '    .12113E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14639E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    28.401       1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .94907       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    54.853       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.8905       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10333E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.8450       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.902       1.0000         .10000E-03   10000.    
    17 'norm      '    1.9703       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12741E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    84.157       1.0000         .10000E-03   10000.    
    20 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    68.950       1.0000         .10000E-03   10000.    
    22 'norm      '    .48750       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .17879E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1238       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .89615       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=   5842.840     FROM MIGRAD    STATUS=CONVERGED    669 CALLS     2701 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0936        2.4831        .93326E-07   -.44965E-04
   2  Prefactor     .10000E-03    22.544       -.95146E-07** at limit **
   3  Prefactor     29.483        20.474        .25243E-06   -.42282E-04
   4  norm          .10000E-03    79.595       -.38227E-06** at limit **
   5  Prefactor     28.620        24.469       -.25784E-06   -.34872E-04
   6  norm          .10000E-03    4.4924       -.43734E-06** at limit **
   7  Prefactor     .10000E-03    18.603        .70337E-07** at limit **
   8  norm          28.376        14.387        .92007E-07   -.13209E-04
   9  norm          .10000E-03    6.9458        .10549E-07** at limit **
  10  norm          .95165        1.3665        .59610E-06    .40419E-03
  11  Prefactor     .10000E-03    .77724        .27690E-06** at limit **
  12  Prefactor     56.726        41.096       -.65139E-05   -.13107E-03
  13  Prefactor     5.7263        158.40        .49544E-05    .45487E-04
  14  Prefactor     .10000E-03    13.372       -.79651E-07** at limit **
  15  norm          5.6972        5.5726        .41546E-05   -.11399E-02
  16  Prefactor     12.064        73.626        .17653E-04    .15529E-03
  17  norm          1.9655        3.7182        .39381E-06   -.22564E-03
  18  Prefactor     .10000E-03    10.067        .23250E-06** at limit **
  19  Prefactor     83.797        66.000        .34815E-05    .78301E-04
  20  norm          .10000E-03    1.2063       -.58444E-07** at limit **
  21  Prefactor     66.324        63.863       -.24828E-05   -.18232E-03
  22  norm          .50319        .95687       -.48257E-06   -.54918E-03
  23  Prefactor     .10000E-03    22.720       -.12817E-06** at limit **
  24  Normalizat    1.1241        .29182       -.24160E-06   -.75163E-04
  25  Prefactor     .89658        .10652       -.12380E-05    .77491E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.0936
  Prefactor  = 0.0001
  Prefactor  = 29.4829
  norm       = 0.0001
  Prefactor  = 28.6201
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 28.3763
  norm       = 0.0001
  norm       = 0.951647
  Prefactor  = 0.0001
  Prefactor  = 56.726
  Prefactor  = 5.72626
  Prefactor  = 0.0001
  norm       = 5.69722
  Prefactor  = 12.0637
  norm       = 1.9655
  Prefactor  = 0.000100001
  Prefactor  = 83.7972
  norm       = 0.0001
  Prefactor  = 66.3238
  norm       = 0.503189
  Prefactor  = 0.0001
  Normalizat = 1.12407
  Prefactor  = 0.896581
 **********
 **   18 **HESSE 
 **********

 FCN=   5842.840     FROM HESSE     STATUS=OK           425 CALLS     3126 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0936        2.4823        .90474E-04   -1.5303    
   2  Prefactor     .10000E-03    22.554        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     29.483        20.482        .73841E-04   -1.4621    
   4  norm          .10000E-03    81.310        .19074E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     28.620        24.457        .74625E-04   -1.4637    
   6  norm          .10000E-03    23.584        .30681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          28.376        14.453        .75176E-04   -1.4642    
   9  norm          .10000E-03    6.9474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .95165        1.1954        .93722E-03   -1.5513    
  11  Prefactor     .10000E-03    .77879        .65536E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     56.726        41.153        .54159E-04   -1.4200    
  13  Prefactor     5.7263        150.74        .16546E-03   -1.5229    
  14  Prefactor     .10000E-03    13.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.6972        5.6575        .69398E-03   -1.5231    
  16  Prefactor     12.064        79.417        .11152E-03   -1.5013    
  17  norm          1.9655        3.6909        .18002E-03   -1.5428    
  18  Prefactor     .10000E-03    10.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     83.797        66.482        .43788E-04   -1.3875    
  20  norm          .10000E-03    1.2413        .16381E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     66.324        61.942        .48340E-04   -1.4077    
  22  norm          .50319        .83221        .86643E-03   -1.5566    
  23  Prefactor     .10000E-03    22.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1241        .32705        .39833E-03   -.88983    
  25  Prefactor     .89658        .12037        .17396E-03   -.96261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05428e-09
Minuit parameter uncertainties:
  1  2.48241
  2  8.28054e-06
  3  20.4868
  4  0.000188654
  5  24.4656
  6  0.000193045
  7  3.03589e-06
  8  14.4549
  9  4.58928e-06
  10  1.19541
  11  8.66921e-06
  12  41.174
  13  58.9257
  14  2.35445e-05
  15  5.65804
  16  62.0247
  17  3.69135
  18  0.000160908
  19  66.5409
  20  4.02835e-06
  21  62.0025
  22  0.832228
  23  1.13291e-05
  24  0.327641
  25  0.120407
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  8.669e-06  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:  8.966e-01  1.204e-01  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:  1.124e+00  3.276e-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.40e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/415256/likelihoodResults_483753601_484012801_4FGL_J0424.7+0036_daily_bin943.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) = 5842.84646094
delta logL = -0.0060280417274

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5842.84043301
delta logL = -1.06117113319e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2025       1.0000          .0000       10.000    
     3 'Normalizat'    1.1241       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89661       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=   5842.840     FROM MIGRAD    STATUS=FAILED        82 CALLS      230 TOTAL
                     EDM=   .23E-02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    140.63        .65872E-03** at limit **
   2  Index         2.1911        5.0097        .20000        .11479E-03
   3  Normalizat    1.1241        .14096        .39833E-03    .63161E-04
   4  Prefactor     .89658        .56028E-01    .17397E-03    .14450E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5842.840     FROM SIMPLEX   STATUS=UNCHANGED    162 CALLS      392 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    140.63        .16188E-03** at limit **
   2  Index         2.1911        5.0097        .75202E-05    .11479E-03
   3  Normalizat    1.1241        .14096        .60766E-06    .63161E-04
   4  Prefactor     .89658        .56028E-01    .25866E-06    .14450E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5842.840     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      434 TOTAL
                     EDM=   .76E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4806        .13174E-02** at limit **
   2  Index         1.7872        6.2378        .80000E-01   -.27853E-07
   3  Normalizat    1.1241        .29328        .15933E-04   -.42811E-06
   4  Prefactor     .89658        .11675        .34793E-04   -.80381E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.78715
  Normalizat = 1.12407
  Prefactor  = 0.89658
 **********
 **   18 **HESSE 
 **********

 FCN=   5842.840     FROM HESSE     STATUS=OK            23 CALLS      457 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .86914        .26349E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7872        7.0325        .32000E-02   -.69785    
   3  Normalizat    1.1241        .29325        .31867E-05   -.88983    
   4  Prefactor     .89658        .11674        .69586E-05   -.96261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00554e-12
Minuit parameter uncertainties:
  1  1.37681e-06
  2  106.305
  3  0.293679
  4  0.116775
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/415256': 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) = 5842.84042623
delta logL = 6.66997220833e-06

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  1.377e-06  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  1.787e+00  1.063e+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:  8.966e-01  1.168e-01  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:  1.124e+00  2.937e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/415256/cmap_HighResolution_483753601_484012801_4FGL_J0424.7+0036_daily_bin943.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.17e-03', job_status='DONE', photon_flux_upper_limit='9.40e-08', time_completed='2021-08-20 14:01:22.694657', job_id='415256', GAL2='0.90', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1629493282.69', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='6.67e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='943' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 14:01:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 415256: <4FGL_J0424.7+0036_daily_bin943> in cluster <slac> Done

Job <4FGL_J0424.7+0036_daily_bin943> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 13:45:39 2021
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 13:45:40 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:45:40 2021
Terminated at Fri Aug 20 14:01:24 2021
Results reported at Fri Aug 20 14:01:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin943 66.1945 0.6028 483753601 484012801 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 :                                   740.51 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             252.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            945 sec.

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

