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


Performing analysis on: 4FGL_J0422.1-0644_daily_bin735
RA = 65.5343, Dec = -6.741
tmin = 429840001, tmax = 430099201
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='397620', job_status='RUN', time_executed='2021-08-20 12:51:14.405036', time_epoch_executed='1629489074.41' WHERE source_name='4FGL J0422.1-0644' and cadence='daily' and bin_id='735'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/397620

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/397620/ft1_4FGL_J0422.1-0644_daily_bin735.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/397620/ft2_4FGL_J0422.1-0644_daily_bin735.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/397620/ft1_4FGL_J0422.1-0644_daily_bin735.fits outfile=/scratch/kocevski/397620/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin735.fits ra=65.5343 dec=-6.741 rad=12.0 tmin=429840001.0 tmax=430099201.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 6.12
user 5.55
sys 0.56

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/397620/ft2_4FGL_J0422.1-0644_daily_bin735.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/397620/ft2_4FGL_J0422.1-0644_daily_bin735.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/397620/ft1_filteredMKT_4FGL_J0422.1-0644_daily_bin735.fits evtable="EVENTS" outfile="/scratch/kocevski/397620/ft1_filtered_4FGL_J0422.1-0644_daily_bin735.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.73
user 0.30
sys 0.43

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/397620/ft1_filtered_4FGL_J0422.1-0644_daily_bin735.fits" evtable="EVENTS" scfile=/scratch/kocevski/397620/ft2_4FGL_J0422.1-0644_daily_bin735.fits sctable="SC_DATA" outfile=/scratch/kocevski/397620/ltcube_429840001_430099201_4FGL_J0422.1-0644_daily_bin735.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/397620/ft2_4FGL_J0422.1-0644_daily_bin735.fits
.....................!
real 12.68
user 12.05
sys 0.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/397620/ft1_filtered_4FGL_J0422.1-0644_daily_bin735.fits evtable="EVENTS" scfile=/scratch/kocevski/397620/ft2_4FGL_J0422.1-0644_daily_bin735.fits sctable="SC_DATA" expcube=/scratch/kocevski/397620/ltcube_429840001_430099201_4FGL_J0422.1-0644_daily_bin735.fits outfile=/scratch/kocevski/397620/expmap_429840001_430099201_4FGL_J0422.1-0644_daily_bin735.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/397620/ltcube_429840001_430099201_4FGL_J0422.1-0644_daily_bin735.fits
.....................!
real 190.76
user 185.43
sys 5.03

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

Setting source of interest to:
4FGL J0422.1-0644 @ 65.5343 -6.741

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/397620/ft1_filtered_4FGL_J0422.1-0644_daily_bin735.fits scfile=/scratch/kocevski/397620/ft2_4FGL_J0422.1-0644_daily_bin735.fits outfile=/scratch/kocevski/397620/cmap_429840001_430099201_4FGL_J0422.1-0644_daily_bin735.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=65.5343 yref=-6.741 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.76
user 0.36
sys 0.39

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/397620/ft1_filtered_4FGL_J0422.1-0644_daily_bin735.fits scfile=/scratch/kocevski/397620/ft2_4FGL_J0422.1-0644_daily_bin735.fits outfile=/scratch/kocevski/397620/cmap_HighResolution_429840001_430099201_4FGL_J0422.1-0644_daily_bin735.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=65.5343 yref=-6.741 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.78
user 0.37
sys 0.40

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/397620/ft1_filtered_4FGL_J0422.1-0644_daily_bin735.fits evtable="EVENTS" scfile=/scratch/kocevski/397620/ft2_4FGL_J0422.1-0644_daily_bin735.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/397620/Model_4FGL_J0422.1-0644_daily_bin735.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/397620/ft1_filtered_4FGL_J0422.1-0644_daily_bin735.fits.....................!
real 82.33
user 80.70
sys 1.49

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/397620/ft1_filtered_4FGL_J0422.1-0644_daily_bin735.fits', '/scratch/kocevski/397620/ft2_4FGL_J0422.1-0644_daily_bin735.fits', expMap='/scratch/kocevski/397620/expmap_429840001_430099201_4FGL_J0422.1-0644_daily_bin735.fits', expCube='/scratch/kocevski/397620/ltcube_429840001_430099201_4FGL_J0422.1-0644_daily_bin735.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/397620/Model_4FGL_J0422.1-0644_daily_bin735.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0422.1-0644'

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  8.015e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  2.445e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
229         beta:  8.202e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
230           Eb:  5.764e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/397620/ft1_filtered_4FGL_J0422.1-0644_daily_bin735.fits
Spacecraft file(s): /scratch/kocevski/397620/ft2_4FGL_J0422.1-0644_daily_bin735.fits
Exposure map: /scratch/kocevski/397620/expmap_429840001_430099201_4FGL_J0422.1-0644_daily_bin735.fits
Exposure cube: /scratch/kocevski/397620/ltcube_429840001_430099201_4FGL_J0422.1-0644_daily_bin735.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/397620/Model_4FGL_J0422.1-0644_daily_bin735.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) = 5819.28809905

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9856       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13452E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.1097       1.0000         .10000E-03   10000.    
     8 'norm      '    .70190       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1818       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .14342E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    16.096       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4684       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11595E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .37883       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    5.0372       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .78020       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1860       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5818.415     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     1825 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9857        2.0675        .58738E-02    .14095E-03
   2  Prefactor     .10000E-03    33.725        .90712E-02** at limit **
   3  Prefactor     .10000E-03    11.307        .90712E-02** at limit **
   4  norm          .10000E-03    5.5420        .90712E-02** at limit **
   5  Prefactor     .10000E-03    64.322        .90712E-02** at limit **
   6  norm          .10000E-03    4.9064        .90712E-02** at limit **
   7  norm          8.1113        11.961        .35197E-02    .12156E-02
   8  norm          .69027        28.876        .12069       -.16968E-03
   9  norm          .10000E-03    .50594        .28009E-01** at limit **
  10  Prefactor     1.1815        1.7768        .10508E-01    .50095E-03
  11  Prefactor     .10083E-03    27.672        .11926    ** at limit **
  12  Prefactor     16.096        51.894        .24957E-02   -.19375E-03
  13  Prefactor     1.4708        11.732        .88680E-02    .72398E-03
  14  Prefactor     .10063E-03    24.959        .11661    ** at limit **
  15  norm          .37879        1.8691        .10766E-01    .17590E-02
  16  Prefactor     .10000E-03    3.0126        .90712E-02** at limit **
  17  norm          5.0374        2.4635        .44791E-02    .82568E-04
  18  Prefactor     .10000E-03    10.131        .90712E-02** at limit **
  19  Normalizat    .78019        .22989        .84291E-01    .24273E-04
  20  Prefactor     1.1859        .12257        .34971E-01   -.32526E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.98575
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.11127
  norm       = 0.690274
  norm       = 0.0001
  Prefactor  = 1.18149
  Prefactor  = 0.000100827
  Prefactor  = 16.0959
  Prefactor  = 1.47083
  Prefactor  = 0.000100629
  norm       = 0.378789
  Prefactor  = 0.0001
  norm       = 5.03741
  Prefactor  = 0.0001
  Normalizat = 0.780189
  Prefactor  = 1.18594
 **********
 **   18 **HESSE 
 **********

 FCN=   5818.415     FROM HESSE     STATUS=OK           313 CALLS     2138 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9857        2.0652        .88212E-04   -1.5362    
   2  Prefactor     .10000E-03    33.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.5427        .17538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    66.236        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.0513        .16480E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          8.1113        11.942        .14079E-03   -1.5138    
   8  norm          .69027        293.33        .71219E-02   -1.5542    
   9  norm          .10000E-03    .75016        .10125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1815        1.6907        .10571E-03   -1.5491    
  11  Prefactor     .10083E-03    30.966        .11013       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     16.096        49.702        .99829E-04   -1.4905    
  13  Prefactor     1.4708        11.558        .35472E-03   -1.5465    
  14  Prefactor     .10063E-03    28.616        .10614       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .37879        1.8117        .19642E-03   -1.5585    
  16  Prefactor     .10000E-03    3.0169        .12930E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          5.0374        2.4613        .80736E-04   -1.5259    
  18  Prefactor     .10000E-03    10.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .78019        .25190        .37328E-03   -1.0081    
  20  Prefactor     1.1859        .13672        .17071E-03   -.86765    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44683e-08
Minuit parameter uncertainties:
  1  2.06523
  2  1.81577e-05
  3  9.58491e-06
  4  2.22577e-07
  5  4.52158e-05
  6  4.19239e-08
  7  11.9459
  8  28.5991
  9  4.80647e-08
  10  1.69077
  11  0.0101246
  12  49.8301
  13  8.24825
  14  0.00849167
  15  1.65667
  16  1.75129e-07
  17  2.46138
  18  3.00791e-06
  19  0.252276
  20  0.136757
Done.

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

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  8.111e+00  1.195e+01  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  2.445e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
229         beta:  8.202e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
230           Eb:  5.764e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  1.186e+00  1.368e-01  0.000e+00  1.000e+01 ( 1.000e+00)
466        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
467        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  7.802e-01  2.523e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.56
Ra Dec: 65.534 -6.741
Photon Flux Upper Limit: 1.50e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.43e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/397620/likelihoodResults_429840001_430099201_4FGL_J0422.1-0644_daily_bin735.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) = 5818.1548997
delta logL = 0.260012307625

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5818.14266062
delta logL = 0.272251389347

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5300       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2421       1.0000          .0000       5.0000    
     3 'Normalizat'    .73837       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1982       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4680E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5818.143     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      209 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5346        183.46        .39262E-02    .32770E-03
   2  alpha         3.2422        3.4646        .43717        .45735E-04
   3  Normalizat    .73859        .83402E-01    .86436E-01   -.38889E-04
   4  Prefactor     1.1981        .43694E-01    .34674E-01   -.31968E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.53458
  alpha      = 3.24218
  Normalizat = 0.738592
  Prefactor  = 1.19809
 **********
 **   18 **HESSE 
 **********

 FCN=   5818.143     FROM HESSE     STATUS=OK            31 CALLS      240 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5346        11.083        .15705E-03   -1.5197    
   2  alpha         3.2422        1.2434        .20210E-01    .30142    
   3  Normalizat    .73859        .25034        .38285E-03   -1.0239    
   4  Prefactor     1.1981        .13430        .16993E-03   -.86390    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.88111e-11
Minuit parameter uncertainties:
  1  11.0865
  2  1.30786
  3  0.250727
  4  0.134334
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/397620': 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) = 5818.14265971
delta logL = 0.272252300575

Extracting fit parameters...

4FGL J0422.1-0644
   Spectrum: LogParabola
227         norm:  6.535e+00  1.109e+01  1.000e-04  1.000e+04 ( 1.000e-12)
228        alpha:  3.242e+00  1.308e+00  0.000e+00  5.000e+00 ( 1.000e+00)
229         beta:  8.202e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
230           Eb:  5.764e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
465    Prefactor:  1.198e+00  1.343e-01  0.000e+00  1.000e+01 ( 1.000e+00)
466        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
467        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
464   Normalization:  7.386e-01  2.507e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.17
Ra Dec: 65.534 -6.741
Photon Index (Free Index): 3.24 +/- 1.31
Photon Flux (Free Index): 7.33e-08 +/- 8.02e-08
Energy Flux (Free Index): 1.36e-05 +/- 1.43e-05

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/397620/cmap_HighResolution_429840001_430099201_4FGL_J0422.1-0644_daily_bin735.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.43e-05', comment='SUCCESS', energy_flux2='1.36e-05', dlogl='2.72e-01', photon_flux2='7.33e-08', job_status='DONE', time_completed='2021-08-20 13:00:31.720792', photon_index_error2='1.31', photon_index2='3.24', ts='0.56', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='1.50e-07', energy_flux_error2='1.43e-05', EG='0.78', time_epoch_completed='1629489631.72', return_code='0', job_id='397620', GAL2='1.20', EG2='0.74', return_code2='0', photon_flux_error2='8.02e-08', ts2='1.17', photon_index='2.45' WHERE bin_id='735' AND source_name='4FGL J0422.1-0644' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 13:00:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 397620: <4FGL_J0422.1-0644_daily_bin735> in cluster <slac> Done

Job <4FGL_J0422.1-0644_daily_bin735> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Fri Aug 20 12:51:00 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 12:51:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 12:51:01 2021
Terminated at Fri Aug 20 13:00:32 2021
Results reported at Fri Aug 20 13:00:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0422.1-0644_daily_bin735 65.5343 -6.741 429840001 430099201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0422.1-0644 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   558.27 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             359.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   571 sec.
    Turnaround time :                            572 sec.

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

