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


Performing analysis on: 4FGL_J0442.6-0017_daily_bin1276
RA = 70.6612, Dec = -0.2961
tmin = 570067201, tmax = 570326401
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='660319', job_status='RUN', time_executed='2021-08-21 03:16:16.685444', time_epoch_executed='1629540976.69' WHERE source_name='4FGL J0442.6-0017' and cadence='daily' and bin_id='1276'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/660319

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/660319/ft1_4FGL_J0442.6-0017_daily_bin1276.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/660319/ft2_4FGL_J0442.6-0017_daily_bin1276.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/660319/ft1_4FGL_J0442.6-0017_daily_bin1276.fits outfile=/scratch/kocevski/660319/ft1_filteredMKT_4FGL_J0442.6-0017_daily_bin1276.fits ra=70.6612 dec=-0.2961 rad=12.0 tmin=570067201.0 tmax=570326401.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.27
user 3.38
sys 0.86

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/660319/ft2_4FGL_J0442.6-0017_daily_bin1276.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/660319/ft2_4FGL_J0442.6-0017_daily_bin1276.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/660319/ft1_filteredMKT_4FGL_J0442.6-0017_daily_bin1276.fits evtable="EVENTS" outfile="/scratch/kocevski/660319/ft1_filtered_4FGL_J0442.6-0017_daily_bin1276.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.16
user 0.33
sys 0.82

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/660319/ft1_filtered_4FGL_J0442.6-0017_daily_bin1276.fits" evtable="EVENTS" scfile=/scratch/kocevski/660319/ft2_4FGL_J0442.6-0017_daily_bin1276.fits sctable="SC_DATA" outfile=/scratch/kocevski/660319/ltcube_570067201_570326401_4FGL_J0442.6-0017_daily_bin1276.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/660319/ft2_4FGL_J0442.6-0017_daily_bin1276.fits
.....................!
real 12.69
user 11.60
sys 1.06

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/660319/ft1_filtered_4FGL_J0442.6-0017_daily_bin1276.fits evtable="EVENTS" scfile=/scratch/kocevski/660319/ft2_4FGL_J0442.6-0017_daily_bin1276.fits sctable="SC_DATA" expcube=/scratch/kocevski/660319/ltcube_570067201_570326401_4FGL_J0442.6-0017_daily_bin1276.fits outfile=/scratch/kocevski/660319/expmap_570067201_570326401_4FGL_J0442.6-0017_daily_bin1276.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/660319/ltcube_570067201_570326401_4FGL_J0442.6-0017_daily_bin1276.fits
.....................!
real 191.56
user 185.41
sys 5.81

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

Setting source of interest to:
4FGL J0442.6-0017 @ 70.6612 -0.2961

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/660319/ft1_filtered_4FGL_J0442.6-0017_daily_bin1276.fits scfile=/scratch/kocevski/660319/ft2_4FGL_J0442.6-0017_daily_bin1276.fits outfile=/scratch/kocevski/660319/cmap_570067201_570326401_4FGL_J0442.6-0017_daily_bin1276.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=70.6612 yref=-0.2961 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.18
user 0.36
sys 0.79

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/660319/ft1_filtered_4FGL_J0442.6-0017_daily_bin1276.fits scfile=/scratch/kocevski/660319/ft2_4FGL_J0442.6-0017_daily_bin1276.fits outfile=/scratch/kocevski/660319/cmap_HighResolution_570067201_570326401_4FGL_J0442.6-0017_daily_bin1276.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=70.6612 yref=-0.2961 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.18
user 0.38
sys 0.79

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/660319/ft1_filtered_4FGL_J0442.6-0017_daily_bin1276.fits evtable="EVENTS" scfile=/scratch/kocevski/660319/ft2_4FGL_J0442.6-0017_daily_bin1276.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/660319/Model_4FGL_J0442.6-0017_daily_bin1276.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/660319/ft1_filtered_4FGL_J0442.6-0017_daily_bin1276.fits.....................!
real 113.34
user 111.08
sys 2.06

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/660319/ft1_filtered_4FGL_J0442.6-0017_daily_bin1276.fits', '/scratch/kocevski/660319/ft2_4FGL_J0442.6-0017_daily_bin1276.fits', expMap='/scratch/kocevski/660319/expmap_570067201_570326401_4FGL_J0442.6-0017_daily_bin1276.fits', expCube='/scratch/kocevski/660319/ltcube_570067201_570326401_4FGL_J0442.6-0017_daily_bin1276.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/660319/Model_4FGL_J0442.6-0017_daily_bin1276.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0442.6-0017'

4FGL J0442.6-0017
   Spectrum: LogParabola
199         norm:  4.025e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
200        alpha:  2.359e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
201         beta:  6.686e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
202           Eb:  4.246e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/660319/ft1_filtered_4FGL_J0442.6-0017_daily_bin1276.fits
Spacecraft file(s): /scratch/kocevski/660319/ft2_4FGL_J0442.6-0017_daily_bin1276.fits
Exposure map: /scratch/kocevski/660319/expmap_570067201_570326401_4FGL_J0442.6-0017_daily_bin1276.fits
Exposure cube: /scratch/kocevski/660319/ltcube_570067201_570326401_4FGL_J0442.6-0017_daily_bin1276.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/660319/Model_4FGL_J0442.6-0017_daily_bin1276.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) = 7205.05423972

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    11.603       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.119       1.0000         .10000E-03   10000.    
     4 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    13.010       1.0000         .10000E-03   10000.    
     7 'norm      '    .10880E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10082E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10447E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    42.999       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10442E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10889E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.9518       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .28241E-02   1.0000         .10000E-03   10000.    
    15 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.0092       1.0000         .10000E-03   10000.    
    17 'norm      '    5.0092       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.9425       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .39020E-02   1.0000         .10000E-03   10000.    
    21 'norm      '    .74756       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.498       1.0000         .10000E-03   10000.    
    23 'norm      '    8.5023       1.0000         .10000E-03   10000.    
    24 'norm      '    46.372       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1239       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .94294       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4850E+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.

 FCN=   7205.044     FROM MIGRAD    STATUS=CONVERGED   1263 CALLS     4674 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.032        .18142E-02** at limit **
   2  norm          11.601        15.968        .11761E-03    .20300E-05
   3  Prefactor     17.016        40.300        .96801E-04   -.28069E-04
   4  norm          .10000E-03    3.6767        .15769E-02** at limit **
   5  Prefactor     .10000E-03    29.111        .18142E-02** at limit **
   6  norm          13.010        9.1291        .11105E-03   -.18632E-04
   7  norm          .10000E-03    32.623        .18142E-02** at limit **
   8  norm          .10000E-03    1.5138        .13389E-02** at limit **
   9  Prefactor     .10000E-03    .98113        .16057E-03** at limit **
  10  Prefactor     42.976        37.528        .61136E-04   -.29753E-05
  11  Prefactor     .10000E-03    29.937        .18142E-02** at limit **
  12  Prefactor     .10000E-03    11.631        .18142E-02** at limit **
  13  norm          1.9581        5.0472        .21402E-03    .36387E-04
  14  Prefactor     .10057E-03    38.219        .15348    ** at limit **
  15  norm          .10000E-03    1.6423        .20799E-03** at limit **
  16  Prefactor     6.0127        8.2609        .81898E-03    .99808E-05
  17  norm          5.0104        3.2418        .11727E-03    .82694E-04
  18  Prefactor     .10000E-03    14.737        .18142E-02** at limit **
  19  norm          3.9427        2.5010        .10042E-03    .13246E-04
  20  Prefactor     .10113E-03    38.844        .11943    ** at limit **
  21  norm          .74834        .67543        .56122E-04    .40737E-03
  22  Prefactor     11.500        21.151        .11814E-03   -.67360E-06
  23  norm          8.5036        4.5208        .11974E-03    .15732E-03
  24  norm          46.344        49.379        .58880E-04   -.18343E-04
  25  Prefactor     .10000E-03    19.696        .18142E-02** at limit **
  26  Prefactor     .10000E-03    5.2537        .18142E-02** at limit **
  27  Normalizat    1.1237        .25875        .37951E-03    .12192E-04
  28  Prefactor     .94314        .10665        .16867E-03    .10919E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 11.6011
  Prefactor  = 17.0163
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 13.0099
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.9757
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.95808
  Prefactor  = 0.000100575
  norm       = 0.0001
  Prefactor  = 6.01275
  norm       = 5.01036
  Prefactor  = 0.0001
  norm       = 3.94271
  Prefactor  = 0.000101128
  norm       = 0.748335
  Prefactor  = 11.4997
  norm       = 8.50356
  norm       = 46.3441
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.12372
  Prefactor  = 0.943141
 **********
 **   18 **HESSE 
 **********

 FCN=   7205.044     FROM HESSE     STATUS=OK           513 CALLS     5187 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.032        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.601        15.968        .47043E-05   -1.5027    
   3  Prefactor     17.016        40.303        .38721E-05   -1.4883    
   4  norm          .10000E-03    3.6784        .31539E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    29.121        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          13.010        9.1291        .44421E-05   -1.4986    
   7  norm          .10000E-03    32.637        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.5218        .26778E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    .98114        .32115E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     42.976        37.459        .24454E-05   -1.4396    
  11  Prefactor     .10000E-03    29.940        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.641        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.9581        5.0349        .85608E-05   -1.5428    
  14  Prefactor     .10057E-03    38.277        .15330       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.6423        .41598E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     6.0127        8.2549        .32759E-04   -1.5218    
  17  norm          5.0104        3.2416        .46908E-05   -1.5260    
  18  Prefactor     .10000E-03    14.738        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.9427        2.5009        .40167E-05   -1.5311    
  20  Prefactor     .10113E-03    37.695        .12168       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .74834        .67490        .22449E-05   -1.5535    
  22  Prefactor     11.500        21.148        .47257E-05   -1.5030    
  23  norm          8.5036        4.5206        .47896E-05   -1.5125    
  24  norm          46.344        49.381        .23552E-05   -1.4345    
  25  Prefactor     .10000E-03    19.698        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.2571        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1237        .25884        .15180E-04   -.88994    
  28  Prefactor     .94314        .10669        .33735E-04   -.94649    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.24647e-10
Minuit parameter uncertainties:
  1  1.35796e-06
  2  15.9735
  3  40.3679
  4  8.32882e-07
  5  5.62892e-05
  6  9.13006
  7  8.92541e-05
  8  8.25011e-06
  9  8.74888e-07
  10  37.4791
  11  4.22034e-05
  12  6.90362e-07
  13  5.03602
  14  0.00938623
  15  3.93744e-07
  16  8.25646
  17  3.24172
  18  6.55531e-06
  19  2.50095
  20  0.013052
  21  0.674905
  22  21.162
  23  4.52074
  24  49.425
  25  3.29357e-05
  26  3.65413e-06
  27  0.259137
  28  0.106717
Done.

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

Extracting fit parameters...

4FGL J0442.6-0017
   Spectrum: LogParabola
199         norm:  1.000e-04  3.937e-07  1.000e-04  1.000e+04 ( 1.000e-11)
200        alpha:  2.359e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
201         beta:  6.686e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
202           Eb:  4.246e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
482    Prefactor:  9.431e-01  1.067e-01  0.000e+00  1.000e+01 ( 1.000e+00)
483        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
484        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
481   Normalization:  1.124e+00  2.591e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 70.661 -0.296
Photon Flux Upper Limit: 9.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.04e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/660319/likelihoodResults_570067201_570326401_4FGL_J0442.6-0017_daily_bin1276.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) = 7205.04703316
delta logL = -0.00290564670195

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7205.04411893
delta logL = 8.58219755173e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14478E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0984       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1237       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94317       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4850E+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=   7205.044     FROM MIGRAD    STATUS=FAILED        91 CALLS      267 TOTAL
                     EDM=   .13E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10393E-03    14.966        .14053E-02** at limit **
   2  alpha         3.5717        3.6280        .17100       -.51144E-05
   3  Normalizat    1.1237        .24786        .37951E-03    .30175E-03
   4  Prefactor     .94314        .10250        .16867E-03    .23749E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7205.044     FROM SIMPLEX   STATUS=PROGRESS     112 CALLS      379 TOTAL
                     EDM=   .84E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10352E-03    14.966        .22400E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.5716        3.6280        .82353E-03    .44301    
   3  Normalizat    1.1237        .24786        .12327E-03   -.88994    
   4  Prefactor     .94314        .10250        .47726E-04   -.94649    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7205.044     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      414 TOTAL
                     EDM=   .89E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.3455        .28107E-03** at limit **
   2  alpha         3.6613        4.3119        .34200E-01    .16621E-08
   3  Normalizat    1.1237        .24742        .15180E-04    .50926E-05
   4  Prefactor     .94314        .10249        .33735E-04    .66727E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.66127
  Normalizat = 1.12371
  Prefactor  = 0.943143
 **********
 **   18 **HESSE 
 **********

 FCN=   7205.044     FROM HESSE     STATUS=OK            23 CALLS      437 TOTAL
                     EDM=   .96E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.3339        .56213E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.6613        4.3306        .13680E-02    .48308    
   3  Normalizat    1.1237        .24748        .30361E-05   -.88994    
   4  Prefactor     .94314        .10252        .67469E-05   -.94649    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.55154e-14
Minuit parameter uncertainties:
  1  6.90591e-07
  2  199.274
  3  0.247741
  4  0.102537
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/660319': 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) = 7205.0441086
delta logL = 1.89114471141e-05

Extracting fit parameters...

4FGL J0442.6-0017
   Spectrum: LogParabola
199         norm:  1.000e-04  6.906e-07  1.000e-04  1.000e+04 ( 1.000e-11)
200        alpha:  3.661e+00  1.993e+02  0.000e+00  5.000e+00 ( 1.000e+00)
201         beta:  6.686e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
202           Eb:  4.246e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
482    Prefactor:  9.431e-01  1.025e-01  0.000e+00  1.000e+01 ( 1.000e+00)
483        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
484        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
481   Normalization:  1.124e+00  2.477e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 70.661 -0.296

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/660319/cmap_HighResolution_570067201_570326401_4FGL_J0442.6-0017_daily_bin1276.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.04e-05', job_status='DONE', photon_flux_upper_limit='9.77e-08', time_completed='2021-08-21 03:31:32.590413', job_id='660319', GAL2='0.94', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1629541892.59', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='1.89e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='1276' AND source_name='4FGL J0442.6-0017' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 03:31:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 660319: <4FGL_J0442.6-0017_daily_bin1276> in cluster <slac> Done

Job <4FGL_J0442.6-0017_daily_bin1276> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Aug 21 03:15:46 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 03:15:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 21 03:15:48 2021
Terminated at Sat Aug 21 03:31:33 2021
Results reported at Sat Aug 21 03:31:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0442.6-0017_daily_bin1276 70.6612 -0.2961 570067201 570326401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0442.6-0017 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   919.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             330.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            947 sec.

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

