/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 225 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 = 7431
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0442.6-0017_daily_bin78
RA = 70.6612, Dec = -0.2961
tmin = 259545601, tmax = 259804801
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='652151', job_status='RUN', time_executed='2021-08-21 02:55:08.543902', time_epoch_executed='1629539708.54' WHERE source_name='4FGL J0442.6-0017' and cadence='daily' and bin_id='78'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/652151

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/652151/ft1_4FGL_J0442.6-0017_daily_bin78.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/652151/ft2_4FGL_J0442.6-0017_daily_bin78.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/652151/ft1_4FGL_J0442.6-0017_daily_bin78.fits outfile=/scratch/kocevski/652151/ft1_filteredMKT_4FGL_J0442.6-0017_daily_bin78.fits ra=70.6612 dec=-0.2961 rad=12.0 tmin=259545601.0 tmax=259804801.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 1.78
user 1.13
sys 0.63

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/652151/ft2_4FGL_J0442.6-0017_daily_bin78.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/652151/ft1_filteredMKT_4FGL_J0442.6-0017_daily_bin78.fits evtable="EVENTS" outfile="/scratch/kocevski/652151/ft1_filtered_4FGL_J0442.6-0017_daily_bin78.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.92
user 0.26
sys 0.63

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/652151/ft1_filtered_4FGL_J0442.6-0017_daily_bin78.fits" evtable="EVENTS" scfile=/scratch/kocevski/652151/ft2_4FGL_J0442.6-0017_daily_bin78.fits sctable="SC_DATA" outfile=/scratch/kocevski/652151/ltcube_259545601_259804801_4FGL_J0442.6-0017_daily_bin78.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/652151/ft2_4FGL_J0442.6-0017_daily_bin78.fits
.....................!
real 10.07
user 9.21
sys 0.83

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/652151/ft1_filtered_4FGL_J0442.6-0017_daily_bin78.fits evtable="EVENTS" scfile=/scratch/kocevski/652151/ft2_4FGL_J0442.6-0017_daily_bin78.fits sctable="SC_DATA" expcube=/scratch/kocevski/652151/ltcube_259545601_259804801_4FGL_J0442.6-0017_daily_bin78.fits outfile=/scratch/kocevski/652151/expmap_259545601_259804801_4FGL_J0442.6-0017_daily_bin78.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/652151/ltcube_259545601_259804801_4FGL_J0442.6-0017_daily_bin78.fits
.....................!
real 145.96
user 141.64
sys 4.07

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/652151/ft1_filtered_4FGL_J0442.6-0017_daily_bin78.fits scfile=/scratch/kocevski/652151/ft2_4FGL_J0442.6-0017_daily_bin78.fits outfile=/scratch/kocevski/652151/cmap_259545601_259804801_4FGL_J0442.6-0017_daily_bin78.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 0.92
user 0.29
sys 0.62

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/652151/ft1_filtered_4FGL_J0442.6-0017_daily_bin78.fits scfile=/scratch/kocevski/652151/ft2_4FGL_J0442.6-0017_daily_bin78.fits outfile=/scratch/kocevski/652151/cmap_HighResolution_259545601_259804801_4FGL_J0442.6-0017_daily_bin78.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 0.95
user 0.30
sys 0.63

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/652151/ft1_filtered_4FGL_J0442.6-0017_daily_bin78.fits evtable="EVENTS" scfile=/scratch/kocevski/652151/ft2_4FGL_J0442.6-0017_daily_bin78.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/652151/Model_4FGL_J0442.6-0017_daily_bin78.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/652151/ft1_filtered_4FGL_J0442.6-0017_daily_bin78.fits.....................!
real 112.17
user 110.37
sys 1.56

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.190       1.0000         .10000E-03   10000.    
     2 'norm      '    4.1746       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.496       1.0000         .10000E-03   10000.    
     4 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.9499       1.0000         .10000E-03   10000.    
     7 'norm      '    39.601       1.0000         .10000E-03   10000.    
     8 'norm      '    3.7690       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .57729       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    3.1373       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .48932E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .47308       1.0000         .10000E-03   10000.    
    17 'norm      '    8.4703       1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.854       1.0000         .10000E-03   10000.    
    19 'norm      '    1.4491       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10839E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .85242       1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.328       1.0000         .10000E-03   10000.    
    23 'norm      '    2.9122       1.0000         .10000E-03   10000.    
    24 'norm      '    9.6256       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.5404       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0658       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .99290       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=   9246.778     FROM MIGRAD    STATUS=CONVERGED    695 CALLS     3527 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.195        15.814        .95236E-07   -.94732E-05
   2  norm          4.1764        9.7428        .41025E-05   -.29911E-03
   3  Prefactor     10.498        17.361        .50759E-07   -.11164E-04
   4  norm          .10000E-03    2.8429       -.78573E-07** at limit **
   5  Prefactor     .10000E-03    7.2840        .21084E-07** at limit **
   6  norm          2.9526        5.7353        .17386E-06   -.98229E-04
   7  norm          39.604        25.927        .21701E-06   -.21036E-04
   8  norm          3.7690        1.3122       -.13643E-07   -.47773E-03
   9  Prefactor     .57609        1.0255        .23291E-06    .71171E-03
  10  Prefactor     .10000E-03    18.816        .71165E-06** at limit **
  11  Prefactor     .10000E-03    30.588        .71997E-06** at limit **
  12  Prefactor     .10000E-03    13.061        .23317E-06** at limit **
  13  norm          3.1371        2.5783        .14207E-06   -.48074E-03
  14  Prefactor     .10000E-03    20.157       -.47182E-06** at limit **
  15  norm          .77282E-01    .87609        .18637E-06   -.68554E-03
  16  Prefactor     .47556        5.8877        .10153E-05   -.36394E-03
  17  norm          8.4704        3.3657        .10310E-06   -.39962E-03
  18  Prefactor     20.829        26.880       -.32036E-05   -.35764E-03
  19  norm          1.4485        1.5637        .10111E-06   -.26144E-03
  20  Prefactor     .10000E-03    43.089       -.19668E-06** at limit **
  21  norm          .85204        .61397        .63382E-07   -.12951E-03
  22  Prefactor     16.337        24.911        .95178E-06    .83684E-04
  23  norm          2.9117        2.4499        .15193E-07   -.46236E-04
  24  norm          9.6375        36.177        .39238E-05    .80236E-04
  25  Prefactor     .10000E-03    25.959       -.12983E-05** at limit **
  26  Prefactor     3.5409        4.8390        .14035E-06   -.95804E-04
  27  Normalizat    1.0651        .22259       -.25429E-06   -.22551E-03
  28  Prefactor     .99300        .86888E-01   -.20954E-06   -.33446E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.1946
  norm       = 4.17642
  Prefactor  = 10.4983
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.95258
  norm       = 39.6043
  norm       = 3.76905
  Prefactor  = 0.576091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.13708
  Prefactor  = 0.0001
  norm       = 0.0772817
  Prefactor  = 0.475564
  norm       = 8.4704
  Prefactor  = 20.8286
  norm       = 1.44849
  Prefactor  = 0.000100001
  norm       = 0.852036
  Prefactor  = 16.3374
  norm       = 2.91169
  norm       = 9.63754
  Prefactor  = 0.0001
  Prefactor  = 3.54087
  Normalizat = 1.06512
  Prefactor  = 0.993001
 **********
 **   18 **HESSE 
 **********

 FCN=   9246.778     FROM HESSE     STATUS=OK           535 CALLS     4062 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.195        15.817        .93908E-04   -1.4855    
   2  norm          4.1764        10.054        .98629E-03   -1.5299    
   3  Prefactor     10.498        17.349        .12367E-03   -1.5060    
   4  norm          .10000E-03    2.9689        .31645E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.2913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.9526        5.7265        .23646E-03   -1.5364    
   7  norm          39.604        25.638        .63695E-04   -1.4448    
   8  norm          3.7690        1.3030        .60848E-04   -1.5320    
   9  Prefactor     .57609        .76369        .12503E-02   -1.5556    
  10  Prefactor     .10000E-03    18.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    30.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.366        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          3.1371        2.5564        .13030E-03   -1.5354    
  14  Prefactor     .10000E-03    20.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .77282E-01    13.103        .16731E-02   -1.5652    
  16  Prefactor     .47556        27.057        .40679E-02   -1.5570    
  17  norm          8.4704        3.3555        .10469E-03   -1.5126    
  18  Prefactor     20.829        28.011        .87709E-04   -1.4795    
  19  norm          1.4485        1.5415        .11862E-03   -1.5467    
  20  Prefactor     .10000E-03    43.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .85204        .58664        .59184E-03   -1.5523    
  22  Prefactor     16.337        24.920        .99118E-04   -1.4899    
  23  norm          2.9117        2.4442        .13178E-03   -1.5367    
  24  norm          9.6375        36.477        .12917E-03   -1.5087    
  25  Prefactor     .10000E-03    26.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     3.5409        4.8389        .21482E-03   -1.5332    
  27  Normalizat    1.0651        .25103        .39680E-03   -.90880    
  28  Prefactor     .99300        .98496E-01    .17016E-03   -.92963    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95379e-09
Minuit parameter uncertainties:
  1  15.8203
  2  10.0578
  3  17.3575
  4  3.51775e-06
  5  8.93534e-07
  6  5.72759
  7  25.6447
  8  1.30302
  9  0.763702
  10  6.24491e-05
  11  9.29264e-05
  12  1.82205e-05
  13  2.55646
  14  5.835e-05
  15  2.01171
  16  7.17686
  17  3.35559
  18  28.0284
  19  1.54151
  20  0.000395598
  21  0.586646
  22  24.9363
  23  2.44426
  24  36.562
  25  0.000167084
  26  4.83943
  27  0.251314
  28  0.0985134
Done.

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

Extracting fit parameters...

4FGL J0442.6-0017
   Spectrum: LogParabola
199         norm:  7.728e-02  2.012e+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:  9.930e-01  9.851e-02  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.065e+00  2.513e-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: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.24e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/652151/likelihoodResults_259545601_259804801_4FGL_J0442.6-0017_daily_bin78.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) = 9246.62195122
delta logL = 0.155791999727

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9246.41602282
delta logL = 0.361720397377

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .58180       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9554       1.0000          .0000       5.0000    
     3 'Normalizat'    .99483       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0093       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=   9246.416     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      240 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58294        16.290        .11600E-01    .20762E-02
   2  alpha         3.9551        2.5534        .50000        .54897E-04
   3  Normalizat    .99462        .57473E-01    .92380E-01    .31432E-04
   4  Prefactor     1.0094        .23857E-01    .43430E-01   -.14967E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.582944
  alpha      = 3.95514
  Normalizat = 0.994623
  Prefactor  = 1.00935
 **********
 **   18 **HESSE 
 **********

 FCN=   9246.416     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      273 TOTAL
                     EDM=   .24E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .58294        43.063        .86167E-04   -1.5555    
   2  alpha         3.9551        3.3904        .47395E-01    .62126    
   3  Normalizat    .99462        .22608        .40915E-03   -.93211    
   4  Prefactor     1.0094        .90237E-01    .16893E-03   -.92418    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.40969e-06
Minuit parameter uncertainties:
  1  10.0272
  2  14.3014
  3  0.226302
  4  0.0902506
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/652151': 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): 102
logL (Free Index) = 9246.41602183
delta logL = 0.361721385885

Extracting fit parameters...

4FGL J0442.6-0017
   Spectrum: LogParabola
199         norm:  5.829e-01  1.003e+01  1.000e-04  1.000e+04 ( 1.000e-11)
200        alpha:  3.955e+00  1.430e+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.009e+00  9.025e-02  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:  9.946e-01  2.263e-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/652151/cmap_HighResolution_259545601_259804801_4FGL_J0442.6-0017_daily_bin78.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.24e-05', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-08-21 03:07:19.531096', job_id='652151', GAL2='1.01', fit_tolerance='1e-08', EG2='0.99', EG='1.07', time_epoch_completed='1629540439.53', return_code2='102', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='3.62e-01', ts2='0.81', photon_index_error='0.00', photon_index='2.36' WHERE bin_id='78' AND source_name='4FGL J0442.6-0017' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Aug 21 03:07:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 652151: <4FGL_J0442.6-0017_daily_bin78> in cluster <slac> Done

Job <4FGL_J0442.6-0017_daily_bin78> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Aug 21 02:51:02 2021
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Aug 21 02:51:08 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:08 2021
Terminated at Sat Aug 21 03:07:20 2021
Results reported at Sat Aug 21 03:07:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0442.6-0017_daily_bin78 70.6612 -0.2961 259545601 259804801 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 :                                   736.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             300.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            978 sec.

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

