/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 105 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 = 7429
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0424.7+0036_daily_bin150
RA = 66.1945, Dec = 0.6028
tmin = 278208001, tmax = 278467201
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='410894', job_status='RUN', time_executed='2021-08-20 13:33:42.593682', time_epoch_executed='1629491622.59' WHERE source_name='4FGL J0424.7+0036' and cadence='daily' and bin_id='150'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/410894

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/410894/ft1_4FGL_J0424.7+0036_daily_bin150.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/410894/ft2_4FGL_J0424.7+0036_daily_bin150.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/410894/ft1_4FGL_J0424.7+0036_daily_bin150.fits outfile=/scratch/kocevski/410894/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin150.fits ra=66.1945 dec=0.6028 rad=12.0 tmin=278208001.0 tmax=278467201.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.62
user 5.31
sys 3.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/410894/ft2_4FGL_J0424.7+0036_daily_bin150.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/410894/ft1_filteredMKT_4FGL_J0424.7+0036_daily_bin150.fits evtable="EVENTS" outfile="/scratch/kocevski/410894/ft1_filtered_4FGL_J0424.7+0036_daily_bin150.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.48
user 0.34
sys 3.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/410894/ft1_filtered_4FGL_J0424.7+0036_daily_bin150.fits" evtable="EVENTS" scfile=/scratch/kocevski/410894/ft2_4FGL_J0424.7+0036_daily_bin150.fits sctable="SC_DATA" outfile=/scratch/kocevski/410894/ltcube_278208001_278467201_4FGL_J0424.7+0036_daily_bin150.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/410894/ft2_4FGL_J0424.7+0036_daily_bin150.fits
.....................!
real 16.54
user 12.73
sys 3.73

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/410894/ft1_filtered_4FGL_J0424.7+0036_daily_bin150.fits evtable="EVENTS" scfile=/scratch/kocevski/410894/ft2_4FGL_J0424.7+0036_daily_bin150.fits sctable="SC_DATA" expcube=/scratch/kocevski/410894/ltcube_278208001_278467201_4FGL_J0424.7+0036_daily_bin150.fits outfile=/scratch/kocevski/410894/expmap_278208001_278467201_4FGL_J0424.7+0036_daily_bin150.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/410894/ltcube_278208001_278467201_4FGL_J0424.7+0036_daily_bin150.fits
.....................!
real 196.08
user 186.23
sys 9.34

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/410894/ft1_filtered_4FGL_J0424.7+0036_daily_bin150.fits scfile=/scratch/kocevski/410894/ft2_4FGL_J0424.7+0036_daily_bin150.fits outfile=/scratch/kocevski/410894/cmap_278208001_278467201_4FGL_J0424.7+0036_daily_bin150.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.49
user 0.39
sys 3.07

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/410894/ft1_filtered_4FGL_J0424.7+0036_daily_bin150.fits scfile=/scratch/kocevski/410894/ft2_4FGL_J0424.7+0036_daily_bin150.fits outfile=/scratch/kocevski/410894/cmap_HighResolution_278208001_278467201_4FGL_J0424.7+0036_daily_bin150.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.59
user 0.40
sys 3.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/410894/ft1_filtered_4FGL_J0424.7+0036_daily_bin150.fits evtable="EVENTS" scfile=/scratch/kocevski/410894/ft2_4FGL_J0424.7+0036_daily_bin150.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/410894/Model_4FGL_J0424.7+0036_daily_bin150.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/410894/ft1_filtered_4FGL_J0424.7+0036_daily_bin150.fits.....................!
real 102.40
user 96.75
sys 5.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .20286       1.0000         .10000E-03   10000.    
     2 'Prefactor '    36.387       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7266       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.786       1.0000         .10000E-03   10000.    
     6 'norm      '    5.0292       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10839E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    3.2594       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0759       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .83334E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    4.4162       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.4867       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .97719E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    41.289       1.0000         .10000E-03   10000.    
    20 'norm      '    .14161E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10452E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .37836E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3206       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .87737       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=   6618.098     FROM MIGRAD    STATUS=CONVERGED    654 CALLS     3051 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20300        .71831        .31938E-06    .10069E-04
   2  Prefactor     36.390        47.750        .43934E-05    .74666E-05
   3  Prefactor     1.7287        4.7385        .39386E-05    .82781E-03
   4  norm          .10000E-03    6.3747        .23219E-07** at limit **
   5  Prefactor     24.796        32.250        .25319E-05   -.33585E-04
   6  norm          5.0301        6.3829        .19848E-06   -.32606E-03
   7  Prefactor     .10004E-03    136.48       -.95513E-05** at limit **
   8  norm          .10000E-03    9.7564        .12709E-06** at limit **
   9  norm          .10000E-03    7.6052        .15476E-06** at limit **
  10  norm          3.2607        1.7125        .56658E-07   -.15015E-02
  11  Prefactor     1.0748        2.0527        .46150E-06    .26518E-04
  12  Prefactor     .10000E-03    15.113        .20101E-05** at limit **
  13  Prefactor     .10000E-03    55.418       -.16351E-05** at limit **
  14  Prefactor     .10308E-03    15.141        .10642E-04** at limit **
  15  norm          4.4139        3.2220       -.76342E-06    .69628E-04
  16  Prefactor     .10000E-03    12.525       -.49729E-06** at limit **
  17  norm          5.4882        2.8799        .13302E-06   -.89071E-03
  18  Prefactor     .12172        84.734        .30684E-04   -.61859E-04
  19  Prefactor     41.124        43.645       -.13431E-05    .92401E-05
  20  norm          .10000E-03    1.0242        .13297E-06** at limit **
  21  Prefactor     .10000E-03    11.070        .18452E-05** at limit **
  22  norm          .38086E-01    .36525        .17064E-06   -.11449E-02
  23  Prefactor     .10000E-03    17.345       -.71987E-06** at limit **
  24  Normalizat    1.3203        .25637       -.62869E-05   -.33309E-03
  25  Prefactor     .87743        .93461E-01   -.10218E-05   -.80144E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.203004
  Prefactor  = 36.39
  Prefactor  = 1.72875
  norm       = 0.0001
  Prefactor  = 24.7959
  norm       = 5.03014
  Prefactor  = 0.000100041
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.26068
  Prefactor  = 1.07479
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000103078
  norm       = 4.41389
  Prefactor  = 0.0001
  norm       = 5.48818
  Prefactor  = 0.121723
  Prefactor  = 41.124
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0380861
  Prefactor  = 0.0001
  Normalizat = 1.32029
  Prefactor  = 0.877429
 **********
 **   18 **HESSE 
 **********

 FCN=   6618.098     FROM HESSE     STATUS=OK           451 CALLS     3502 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20300        .85418        .12626E-02   -1.5618    
   2  Prefactor     36.390        48.009        .66439E-04   -1.4501    
   3  Prefactor     1.7287        11.611        .15978E-02   -1.5445    
   4  norm          .10000E-03    6.3757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.796        32.058        .80460E-04   -1.4712    
   6  norm          5.0301        6.3675        .17931E-03   -1.5259    
   7  Prefactor     .10004E-03    136.46        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    9.9084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    7.6082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          3.2607        1.6893        .67854E-04   -1.5347    
  11  Prefactor     1.0748        1.9849        .14452E-03   -1.5501    
  12  Prefactor     .10000E-03    15.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    55.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10308E-03    11.049        .66187E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.4139        3.2145        .11670E-03   -1.5288    
  16  Prefactor     .10000E-03    12.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.4882        2.8809        .94743E-04   -1.5239    
  18  Prefactor     .12172        8.6614        .56954E-01   -1.5638    
  19  Prefactor     41.124        44.738        .62384E-04   -1.4425    
  20  norm          .10000E-03    25.783        .15698E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .38086E-01    1.0697        .94024E-03   -1.5669    
  23  Prefactor     .10000E-03    17.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.3203        .28975        .35888E-03   -.82963    
  25  Prefactor     .87743        .10684        .16784E-03   -.96934    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.24966e-09
Minuit parameter uncertainties:
  1  0.832645
  2  48.0599
  3  8.96283
  4  5.72606e-06
  5  32.0805
  6  6.3684
  7  0.00475025
  8  0.000115047
  9  1.06419e-05
  10  1.68934
  11  1.98503
  12  0.000179093
  13  9.55533e-05
  14  0.0116653
  15  3.21466
  16  2.23508e-05
  17  2.88097
  18  2.05304
  19  44.7745
  20  3.42298e-05
  21  7.21746e-05
  22  0.403156
  23  5.17876e-05
  24  0.290111
  25  0.106867
Done.

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

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.075e+00  1.985e+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

GAL_V02
   Spectrum: PowerLaw
459    Prefactor:  8.774e-01  1.069e-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.320e+00  2.901e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.38
Ra Dec: 66.195 0.603
Photon Flux Upper Limit: 1.41e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.08e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/410894/likelihoodResults_278208001_278467201_4FGL_J0424.7+0036_daily_bin150.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) = 6616.42239023
delta logL = 1.67582019709

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6616.34795698
delta logL = 1.75025344325

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     '    7.0871       1.0000          .0000       10.000    
     3 'Normalizat'    1.1821       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91402       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6616.348     FROM MIGRAD    STATUS=FAILED       227 CALLS      634 TOTAL
                     EDM=   .95E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .87741E-02    .18725E-03** at limit **
   2  Index         7.0870        3.0124        .37799E-02    .37037E-03
   3  Normalizat    1.1822        .14535        .37483E-03    .42832E-03
   4  Prefactor     .91398        .56422E-01    .16482E-03    .12714E-02
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6616.348     FROM SIMPLEX   STATUS=UNCHANGED    162 CALLS      796 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .87741E-02    .43658E-05** at limit **
   2  Index         7.0870        3.0124        .96615E-04    .37037E-03
   3  Normalizat    1.1822        .14535        .12257E-04    .42832E-03
   4  Prefactor     .91398        .56422E-01    .44620E-05    .12714E-02
                               ERR DEF=  .500    
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6616.348     FROM MIGRAD    STATUS=FAILED        63 CALLS      859 TOTAL
                     EDM=   .86E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .89386E-02    .18725E-03** at limit **
   2  Index         7.0870        3.0355        .11664E-04    .34464E-03
   3  Normalizat    1.1822        .14990        .14993E-04    .42765E-03
   4  Prefactor     .91398        .58312E-01    .65927E-05    .12712E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.08702
  Normalizat = 1.18224
  Prefactor  = 0.913979
 **********
 **   18 **HESSE 
 **********

 FCN=   6616.348     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      888 TOTAL
                     EDM=   .86E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .89364E-02    .18725E-03   -39.270    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.0870        3.0352        .58320E-04   -244.61    
   3  Normalizat    1.1822        .14986        .29987E-05   -7.1547    
   4  Prefactor     .91398        .58292E-01    .17261E-05   -7.2397    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.5835e-08
Minuit parameter uncertainties:
  1  7.78014e-08
  2  3.32377
  3  0.14991
  4  0.0582964
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/410894': 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): 1
logL (Free Index) = 6616.34795608
delta logL = 1.75025434225

Extracting fit parameters...

4FGL J0424.7+0036
   Spectrum: PowerLaw
219    Prefactor:  1.000e-04  7.780e-08  1.000e-04  1.000e+04 ( 1.000e-12)
220        Index:  7.087e+00  3.324e+00  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:  9.140e-01  5.830e-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:  1.182e+00  1.499e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.17
Ra Dec: 66.195 0.603
Photon Index (Free Index): 7.09 +/- 3.32
Photon Flux (Free Index): 1.51e-07 +/- 1.19e-06
Energy Flux (Free Index): 1.79e-05 +/- 1.41e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/410894/cmap_HighResolution_278208001_278467201_4FGL_J0424.7+0036_daily_bin150.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.08e-02', comment='SUCCESS', energy_flux2='1.79e-05', dlogl='1.75e+00', photon_flux2='1.51e-07', job_status='DONE', time_completed='2021-08-20 13:47:12.791517', photon_index_error2='3.32', photon_index2='7.09', ts='0.38', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', photon_flux_upper_limit='1.41e-07', energy_flux_error2='1.41e-04', EG='1.32', time_epoch_completed='1629492432.79', return_code='0', job_id='410894', GAL2='0.91', EG2='1.18', return_code2='1', photon_flux_error2='1.19e-06', ts2='4.17', photon_index='2.21' WHERE bin_id='150' AND source_name='4FGL J0424.7+0036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:47:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 410894: <4FGL_J0424.7+0036_daily_bin150> in cluster <slac> Done

Job <4FGL_J0424.7+0036_daily_bin150> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 13:30:55 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 13:30:57 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:30:57 2021
Terminated at Fri Aug 20 13:47:13 2021
Results reported at Fri Aug 20 13:47:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0424.7+0036_daily_bin150 66.1945 0.6028 278208001 278467201 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 :                                   853.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             302.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            978 sec.

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

