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


Performing analysis on: 4FGL_J0442.6-0017_daily_bin166
RA = 70.6612, Dec = -0.2961
tmin = 282355201, tmax = 282614401
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='652339', job_status='RUN', time_executed='2021-08-21 02:52:41.281277', time_epoch_executed='1629539561.28' WHERE source_name='4FGL J0442.6-0017' and cadence='daily' and bin_id='166'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/652339

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/652339/ft1_4FGL_J0442.6-0017_daily_bin166.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/652339/ft2_4FGL_J0442.6-0017_daily_bin166.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/652339/ft1_4FGL_J0442.6-0017_daily_bin166.fits outfile=/scratch/kocevski/652339/ft1_filteredMKT_4FGL_J0442.6-0017_daily_bin166.fits ra=70.6612 dec=-0.2961 rad=12.0 tmin=282355201.0 tmax=282614401.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 7.63
user 3.42
sys 4.08

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/652339/ft2_4FGL_J0442.6-0017_daily_bin166.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/652339/ft1_filteredMKT_4FGL_J0442.6-0017_daily_bin166.fits evtable="EVENTS" outfile="/scratch/kocevski/652339/ft1_filtered_4FGL_J0442.6-0017_daily_bin166.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 4.48
user 0.34
sys 4.00

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/652339/ft1_filtered_4FGL_J0442.6-0017_daily_bin166.fits" evtable="EVENTS" scfile=/scratch/kocevski/652339/ft2_4FGL_J0442.6-0017_daily_bin166.fits sctable="SC_DATA" outfile=/scratch/kocevski/652339/ltcube_282355201_282614401_4FGL_J0442.6-0017_daily_bin166.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/652339/ft2_4FGL_J0442.6-0017_daily_bin166.fits
.....................!
real 16.74
user 11.89
sys 4.73

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/652339/ft1_filtered_4FGL_J0442.6-0017_daily_bin166.fits evtable="EVENTS" scfile=/scratch/kocevski/652339/ft2_4FGL_J0442.6-0017_daily_bin166.fits sctable="SC_DATA" expcube=/scratch/kocevski/652339/ltcube_282355201_282614401_4FGL_J0442.6-0017_daily_bin166.fits outfile=/scratch/kocevski/652339/expmap_282355201_282614401_4FGL_J0442.6-0017_daily_bin166.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/652339/ltcube_282355201_282614401_4FGL_J0442.6-0017_daily_bin166.fits
.....................!
real 197.37
user 186.00
sys 10.36

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/652339/ft1_filtered_4FGL_J0442.6-0017_daily_bin166.fits scfile=/scratch/kocevski/652339/ft2_4FGL_J0442.6-0017_daily_bin166.fits outfile=/scratch/kocevski/652339/cmap_282355201_282614401_4FGL_J0442.6-0017_daily_bin166.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 4.40
user 0.37
sys 4.01

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/652339/ft1_filtered_4FGL_J0442.6-0017_daily_bin166.fits scfile=/scratch/kocevski/652339/ft2_4FGL_J0442.6-0017_daily_bin166.fits outfile=/scratch/kocevski/652339/cmap_HighResolution_282355201_282614401_4FGL_J0442.6-0017_daily_bin166.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 4.38
user 0.37
sys 3.99

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/652339/ft1_filtered_4FGL_J0442.6-0017_daily_bin166.fits evtable="EVENTS" scfile=/scratch/kocevski/652339/ft2_4FGL_J0442.6-0017_daily_bin166.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/652339/Model_4FGL_J0442.6-0017_daily_bin166.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/652339/ft1_filtered_4FGL_J0442.6-0017_daily_bin166.fits.....................!
real 134.93
user 128.12
sys 6.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/652339/ft1_filtered_4FGL_J0442.6-0017_daily_bin166.fits', '/scratch/kocevski/652339/ft2_4FGL_J0442.6-0017_daily_bin166.fits', expMap='/scratch/kocevski/652339/expmap_282355201_282614401_4FGL_J0442.6-0017_daily_bin166.fits', expCube='/scratch/kocevski/652339/ltcube_282355201_282614401_4FGL_J0442.6-0017_daily_bin166.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/652339/Model_4FGL_J0442.6-0017_daily_bin166.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/652339/ft1_filtered_4FGL_J0442.6-0017_daily_bin166.fits
Spacecraft file(s): /scratch/kocevski/652339/ft2_4FGL_J0442.6-0017_daily_bin166.fits
Exposure map: /scratch/kocevski/652339/expmap_282355201_282614401_4FGL_J0442.6-0017_daily_bin166.fits
Exposure cube: /scratch/kocevski/652339/ltcube_282355201_282614401_4FGL_J0442.6-0017_daily_bin166.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/652339/Model_4FGL_J0442.6-0017_daily_bin166.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) = 8068.32295817

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2505       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10538E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    42.190       1.0000         .10000E-03   10000.    
     8 'norm      '    7.6002       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.9467       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8696       1.0000         .10000E-03   10000.    
    13 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.5131       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.3195       1.0000         .10000E-03   10000.    
    17 'norm      '    3.6958       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14975E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    37.300       1.0000         .10000E-03   10000.    
    21 'norm      '    2.3637       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .29606       1.0000         .10000E-03   10000.    
    24 'norm      '    37.321       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.6827       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1817       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0125       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.

 FCN=   8068.305     FROM MIGRAD    STATUS=CONVERGED    709 CALLS     3535 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2516        21.565        .32271E-06   -.27072E-05
   2  norm          .10000E-03    10.523        .28785E-07** at limit **
   3  Prefactor     .10000E-03    69.153        .14308E-05** at limit **
   4  norm          .10000E-03    5.0176        .13972E-07** at limit **
   5  Prefactor     .10000E-03    11.710       -.14894E-07** at limit **
   6  norm          .10000E-03    3.1442        .14607E-07** at limit **
   7  norm          42.203        32.463        .10564E-06   -.12576E-04
   8  norm          7.6009        1.9217        .12221E-07   -.34913E-04
   9  Prefactor     .10000E-03    .66228       -.61042E-08** at limit **
  10  Prefactor     6.9511        25.509        .80310E-07   -.11850E-04
  11  Prefactor     .10000E-03    34.839       -.73636E-06** at limit **
  12  Prefactor     1.8705        6.3532        .42571E-06   -.77938E-05
  13  norm          .10000E-03    2.7954        .65843E-07** at limit **
  14  Prefactor     .10000E-03    25.117        .22473E-06** at limit **
  15  norm          8.5134        3.6781        .29158E-07    .13516E-04
  16  Prefactor     3.3095        7.6683        .21226E-05   -.22996E-04
  17  norm          3.6950        2.9317       -.23869E-07    .51074E-04
  18  Prefactor     .10000E-03    149.21       -.12578E-04** at limit **
  19  norm          .10000E-03    1.0897        .27098E-07** at limit **
  20  Prefactor     37.139        39.958        .48702E-05    .67257E-05
  21  norm          2.3637        .93758       -.72359E-07    .96303E-03
  22  Prefactor     .10000E-03    10.534       -.75289E-08** at limit **
  23  norm          .29830        2.1066        .22312E-07   -.38290E-03
  24  norm          37.322        50.597        .35816E-06   -.11719E-05
  25  Prefactor     .10000E-03    35.925        .51138E-06** at limit **
  26  Prefactor     4.6836        7.1763        .78027E-06   -.27202E-04
  27  Normalizat    1.1816        .26982       -.40495E-06    .47540E-04
  28  Prefactor     1.0125        .10078       -.36110E-06    .94640E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.25163
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 42.2029
  norm       = 7.6009
  Prefactor  = 0.0001
  Prefactor  = 6.9511
  Prefactor  = 0.0001
  Prefactor  = 1.87053
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 8.51341
  Prefactor  = 3.30947
  norm       = 3.695
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 37.1392
  norm       = 2.36371
  Prefactor  = 0.0001
  norm       = 0.298305
  norm       = 37.3215
  Prefactor  = 0.0001
  Prefactor  = 4.68364
  Normalizat = 1.18162
  Prefactor  = 1.01248
 **********
 **   18 **HESSE 
 **********

 FCN=   8068.305     FROM HESSE     STATUS=OK           521 CALLS     4056 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2516        21.590        .14896E-03   -1.5169    
   2  norm          .10000E-03    10.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    69.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    5.1234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.1490        .15554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          42.203        32.395        .61717E-04   -1.4408    
   8  norm          7.6009        1.9199        .59099E-04   -1.5157    
   9  Prefactor     .10000E-03    .66533        .71264E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.9511        25.178        .15221E-03   -1.5181    
  11  Prefactor     .10000E-03    34.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.8705        6.3158        .30463E-03   -1.5434    
  13  norm          .10000E-03    2.8585        .28969E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    25.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.5134        3.6929        .10547E-03   -1.5124    
  16  Prefactor     3.3095        7.6970        .11109E-02   -1.5344    
  17  norm          3.6950        2.9277        .13038E-03   -1.5323    
  18  Prefactor     .10000E-03    158.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.1084        .91452E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     37.139        40.407        .65623E-04   -1.4488    
  21  norm          2.3637        .92751        .46036E-04   -1.5400    
  22  Prefactor     .10000E-03    10.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .29830        8.0829        .23479E-02   -1.5599    
  24  norm          37.322        50.641        .65605E-04   -1.4485    
  25  Prefactor     .10000E-03    36.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     4.6836        7.1672        .92984E-03   -1.5275    
  27  Normalizat    1.1816        .30188        .42593E-03   -.87173    
  28  Prefactor     1.0125        .11367        .17894E-03   -.92315    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56391e-10
Minuit parameter uncertainties:
  1  21.6128
  2  9.4181e-07
  3  0.00014254
  4  2.7283e-06
  5  2.88332e-07
  6  6.99822e-07
  7  32.4089
  8  1.91994
  9  1.74793e-07
  10  25.2167
  11  4.19816e-05
  12  6.31802
  13  9.34596e-06
  14  5.44632e-06
  15  3.69303
  16  7.69934
  17  2.92783
  18  0.00125927
  19  5.66503e-07
  20  40.4371
  21  0.927515
  22  1.99554e-06
  23  3.10553
  24  50.6998
  25  1.93886e-05
  26  7.16851
  27  0.302329
  28  0.113694
Done.

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

Extracting fit parameters...

4FGL J0442.6-0017
   Spectrum: LogParabola
199         norm:  8.513e+00  3.693e+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

GAL_V02
   Spectrum: PowerLaw
482    Prefactor:  1.012e+00  1.137e-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.182e+00  3.023e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.12
Ra Dec: 70.661 -0.296
Photon Index (Fixed Index): 2.36 +/- 0.00
Photon Flux (Fixed Index): 1.78e-07 +/- 7.70e-08
Energy Flux (Fixed Index): 5.52e-05 +/- 2.39e-05

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) = 8067.78495421
delta logL = 0.519970113354

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8067.7838198
delta logL = 0.521104527662

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.0375       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8139       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1076       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0311       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.

 FCN=   8067.784     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      237 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.0375        51.062        .35356E-02    .62416E-03
   2  alpha         2.8139        3.8502        .31091        .17951E-04
   3  Normalizat    1.1076        .15970        .98759E-01   -.85941E-05
   4  Prefactor     1.0311        .69175E-01    .41176E-01   -.12305E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 8.03751
  alpha      = 2.81389
  Normalizat = 1.10759
  Prefactor  = 1.03105
 **********
 **   18 **HESSE 
 **********

 FCN=   8067.784     FROM HESSE     STATUS=OK            31 CALLS      268 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.0375        3.6292        .91778E-04   -1.5141    
   2  alpha         2.8139        .47073        .12843E-01    .12589    
   3  Normalizat    1.1076        .29555        .43760E-03   -.89508    
   4  Prefactor     1.0311        .11247        .17750E-03   -.91701    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.84286e-11
Minuit parameter uncertainties:
  1  3.62929
  2  0.473607
  3  0.295994
  4  0.1125
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/652339': 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) = 8067.78381979
delta logL = 0.521104528134

Extracting fit parameters...

4FGL J0442.6-0017
   Spectrum: LogParabola
199         norm:  8.038e+00  3.629e+00  1.000e-04  1.000e+04 ( 1.000e-11)
200        alpha:  2.814e+00  4.736e-01  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:  1.031e+00  1.125e-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.108e+00  2.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.53
Ra Dec: 70.661 -0.296
Photon Index (Free Index): 2.81 +/- 0.47
Photon Flux (Free Index): 2.41e-07 +/- 1.05e-07
Energy Flux (Free Index): 5.30e-05 +/- 2.11e-05

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/652339/cmap_HighResolution_282355201_282614401_4FGL_J0442.6-0017_daily_bin166.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.78e-07', energy_flux2='5.30e-05', photon_flux_error='7.70e-08', dlogl='5.21e-01', energy_flux='5.52e-05', photon_flux2='2.41e-07', job_status='DONE', time_completed='2021-08-21 03:06:43.037899', photon_index_error2='0.47', photon_index2='2.81', ts='10.12', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='2.11e-05', EG='1.18', time_epoch_completed='1629540403.04', return_code='0', job_id='652339', GAL2='1.03', EG2='1.11', return_code2='0', energy_flux_error='2.39e-05', photon_flux_error2='1.05e-07', ts2='11.53', photon_index='2.36' WHERE bin_id='166' AND source_name='4FGL J0442.6-0017' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 03:06:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 652339: <4FGL_J0442.6-0017_daily_bin166> in cluster <slac> Done

Job <4FGL_J0442.6-0017_daily_bin166> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 21 02:51:26 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 02:51:28 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Aug 21 02:51:28 2021
Terminated at Sat Aug 21 03:06:44 2021
Results reported at Sat Aug 21 03:06:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0442.6-0017_daily_bin166 70.6612 -0.2961 282355201 282614401 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 :                                   897.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            918 sec.

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

