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


Performing analysis on: 4FGL_J2044.0+1036_daily_bin1340
RA = 311.002, Dec = 10.6079
tmin = 586656001, tmax = 586915201
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='146069', job_status='RUN', time_executed='2021-09-25 17:51:02.493834', time_epoch_executed='1632617462.49' WHERE source_name='4FGL J2044.0+1036' and cadence='daily' and bin_id='1340'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/146069

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/146069/ft1_4FGL_J2044.0+1036_daily_bin1340.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/146069/ft2_4FGL_J2044.0+1036_daily_bin1340.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/146069/ft1_4FGL_J2044.0+1036_daily_bin1340.fits outfile=/scratch/kocevski/146069/ft1_filteredMKT_4FGL_J2044.0+1036_daily_bin1340.fits ra=311.002 dec=10.6079 rad=12.0 tmin=586656001.0 tmax=586915201.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 3.70
user 3.48
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/146069/ft2_4FGL_J2044.0+1036_daily_bin1340.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/146069/ft2_4FGL_J2044.0+1036_daily_bin1340.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/146069/ft1_filteredMKT_4FGL_J2044.0+1036_daily_bin1340.fits evtable="EVENTS" outfile="/scratch/kocevski/146069/ft1_filtered_4FGL_J2044.0+1036_daily_bin1340.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.51
user 0.37
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/146069/ft1_filtered_4FGL_J2044.0+1036_daily_bin1340.fits" evtable="EVENTS" scfile=/scratch/kocevski/146069/ft2_4FGL_J2044.0+1036_daily_bin1340.fits sctable="SC_DATA" outfile=/scratch/kocevski/146069/ltcube_586656001_586915201_4FGL_J2044.0+1036_daily_bin1340.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/146069/ft2_4FGL_J2044.0+1036_daily_bin1340.fits
.....................!
real 14.29
user 13.95
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/146069/ft1_filtered_4FGL_J2044.0+1036_daily_bin1340.fits evtable="EVENTS" scfile=/scratch/kocevski/146069/ft2_4FGL_J2044.0+1036_daily_bin1340.fits sctable="SC_DATA" expcube=/scratch/kocevski/146069/ltcube_586656001_586915201_4FGL_J2044.0+1036_daily_bin1340.fits outfile=/scratch/kocevski/146069/expmap_586656001_586915201_4FGL_J2044.0+1036_daily_bin1340.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/146069/ltcube_586656001_586915201_4FGL_J2044.0+1036_daily_bin1340.fits
.....................!
real 191.19
user 186.55
sys 4.26

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
Extended source W 51C in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W51C.fits is the correct path to the extended template.
Extended source Cygnus Loop in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CygnusLoop.fits is the correct path to the extended template.
Added 213 point sources and 2 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2044.0+1036 @ 311.002 10.6079

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/146069/ft1_filtered_4FGL_J2044.0+1036_daily_bin1340.fits scfile=/scratch/kocevski/146069/ft2_4FGL_J2044.0+1036_daily_bin1340.fits outfile=/scratch/kocevski/146069/cmap_586656001_586915201_4FGL_J2044.0+1036_daily_bin1340.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=311.002 yref=10.6079 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.55
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/146069/ft1_filtered_4FGL_J2044.0+1036_daily_bin1340.fits scfile=/scratch/kocevski/146069/ft2_4FGL_J2044.0+1036_daily_bin1340.fits outfile=/scratch/kocevski/146069/cmap_HighResolution_586656001_586915201_4FGL_J2044.0+1036_daily_bin1340.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=311.002 yref=10.6079 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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/146069/ft1_filtered_4FGL_J2044.0+1036_daily_bin1340.fits evtable="EVENTS" scfile=/scratch/kocevski/146069/ft2_4FGL_J2044.0+1036_daily_bin1340.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/146069/Model_4FGL_J2044.0+1036_daily_bin1340.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 Cygnus Loop
adding source EG_v02
adding source GAL_V02
adding source W 51C
Working on...
/scratch/kocevski/146069/ft1_filtered_4FGL_J2044.0+1036_daily_bin1340.fits.....................!
real 206.46
user 204.96
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/146069/ft1_filtered_4FGL_J2044.0+1036_daily_bin1340.fits', '/scratch/kocevski/146069/ft2_4FGL_J2044.0+1036_daily_bin1340.fits', expMap='/scratch/kocevski/146069/expmap_586656001_586915201_4FGL_J2044.0+1036_daily_bin1340.fits', expCube='/scratch/kocevski/146069/ltcube_586656001_586915201_4FGL_J2044.0+1036_daily_bin1340.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/146069/Model_4FGL_J2044.0+1036_daily_bin1340.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2044.0+1036'

4FGL J2044.0+1036
   Spectrum: PowerLaw
460    Prefactor:  3.385e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
461        Index:  2.180e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
462        Scale:  2.453e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/146069/ft1_filtered_4FGL_J2044.0+1036_daily_bin1340.fits
Spacecraft file(s): /scratch/kocevski/146069/ft2_4FGL_J2044.0+1036_daily_bin1340.fits
Exposure map: /scratch/kocevski/146069/expmap_586656001_586915201_4FGL_J2044.0+1036_daily_bin1340.fits
Exposure cube: /scratch/kocevski/146069/ltcube_586656001_586915201_4FGL_J2044.0+1036_daily_bin1340.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/146069/Model_4FGL_J2044.0+1036_daily_bin1340.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) = 8928.74941034

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.4972       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .62060E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .39232       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .27189E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.512       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .79924       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.0331       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.221       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.0835       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .90311       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .94327       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7480E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8928.709     FROM MIGRAD    STATUS=CONVERGED    396 CALLS     1925 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.1451        .37737E-07** at limit **
   2  norm          .10000E-03    5.8249        .14057E-06** at limit **
   3  Prefactor     4.4975        13.323       -.13707E-05   -.10459E-02
   4  Prefactor     .10047E-03    13.707        .53562E-05** at limit **
   5  norm          .39233        .76510       -.25233E-06   -.41372E-02
   6  Prefactor     .10000E-03    11.164       -.40718E-06** at limit **
   7  norm          .10000E-03    3.3322       -.93570E-07** at limit **
   8  norm          .10000E-03    30.880       -.36215E-05** at limit **
   9  Prefactor     .10000E-03    7.7602        .47810E-07** at limit **
  10  Prefactor     .10001E-03    8.0316        .40006E-06** at limit **
  11  Prefactor     13.537        51.110        .43093E-04   -.42728E-06
  12  Prefactor     .79910        1.1843        .99609E-07   -.70000E-03
  13  Prefactor     6.0322        17.515        .68741E-06   -.21542E-04
  14  Prefactor     .10000E-03    8.9917        .31630E-06** at limit **
  15  Prefactor     14.220        21.285        .44427E-06   -.94233E-05
  16  Prefactor     .10000E-03    17.451        .67465E-06** at limit **
  17  Prefactor     4.0833        6.5864        .34438E-06   -.18791E-03
  18  Normalizat    .90312        .25934       -.24885E-05   -.46514E-03
  19  Prefactor     .94328        .79097E-01   -.11413E-06   -.12501E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.49746
  Prefactor  = 0.000100468
  norm       = 0.392326
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  Prefactor  = 13.5366
  Prefactor  = 0.799099
  Prefactor  = 6.03216
  Prefactor  = 0.0001
  Prefactor  = 14.2202
  Prefactor  = 0.0001
  Prefactor  = 4.08327
  Normalizat = 0.903119
  Prefactor  = 0.943275
 **********
 **   18 **HESSE 
 **********

 FCN=   8928.709     FROM HESSE     STATUS=OK           270 CALLS     2195 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.1612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.9241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.4975        12.064        .94928E-03   -1.5284    
   4  Prefactor     .10047E-03    49.327        .53129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .39233        .72130        .43292E-04   -1.5583    
   6  Prefactor     .10000E-03    11.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.3434        .16842E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    30.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.7798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10001E-03    127.66        .51405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.537        50.539        .10897E-03   -1.4972    
  12  Prefactor     .79910        10.352        .24874E-02   -1.5529    
  13  Prefactor     6.0322        17.522        .16347E-03   -1.5217    
  14  Prefactor     .10000E-03    8.9926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.220        21.289        .10621E-03   -1.4954    
  16  Prefactor     .10000E-03    17.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.0833        6.6504        .99756E-03   -1.5304    
  18  Normalizat    .90312        .29069        .44777E-03   -.96351    
  19  Prefactor     .94328        .89696E-01    .13974E-03   -.94645    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35637e-08
Minuit parameter uncertainties:
  1  5.03605e-06
  2  5.2782e-06
  3  12.0702
  4  0.00961537
  5  0.721321
  6  1.13849e-06
  7  2.60936e-06
  8  1.25727e-05
  9  1.09907e-05
  10  0.00252393
  11  50.6997
  12  5.75321
  13  17.5371
  14  2.56981e-06
  15  21.3002
  16  1.86235e-06
  17  6.65159
  18  0.291196
  19  0.0897096
Done.

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

Extracting fit parameters...

4FGL J2044.0+1036
   Spectrum: PowerLaw
460    Prefactor:  1.000e-04  1.138e-06  1.000e-04  1.000e+04 ( 1.000e-14)
461        Index:  2.180e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
462        Scale:  2.453e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
741    Prefactor:  9.433e-01  8.971e-02  0.000e+00  1.000e+01 ( 1.000e+00)
742        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
743        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
740   Normalization:  9.031e-01  2.912e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 311.002 10.608
Photon Flux Upper Limit: 5.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/146069/likelihoodResults_586656001_586915201_4FGL_J2044.0+1036_daily_bin1340.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) = 8928.70937006
delta logL = -0.00042419642341

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8928.70894623
delta logL = -3.72479917132e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11137E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1514       1.0000          .0000       10.000    
     3 'Normalizat'    .90306       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94329       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7480E+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=   8928.709     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      248 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10158E-03    76.472        .18142E-02** at limit **
   2  Index         2.0949        6.0099        .50000        .18612E-04
   3  Normalizat    .90312        .15466E-01    .44777E-03    .71598E-05
   4  Prefactor     .94328        .49652E-02    .13974E-03    .20664E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101577
  Index      = 2.09487
  Normalizat = 0.903122
  Prefactor  = 0.943275
 **********
 **   18 **HESSE 
 **********

 FCN=   8928.709     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      277 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10158E-03    332.21        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0949        5.0673        .50000       -.61999    
   3  Normalizat    .90312        .33127E-01    .17911E-04   -.96351    
   4  Prefactor     .94328        .10635E-01    .55897E-05   -.94645    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.22542e-08
Minuit parameter uncertainties:
  1  0.0460335
  2  434.808
  3  0.0331274
  4  0.0106347
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/146069': 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) = 8928.70894551
delta logL = 3.53358700522e-07

Extracting fit parameters...

4FGL J2044.0+1036
   Spectrum: PowerLaw
460    Prefactor:  1.016e-04  4.603e-02  1.000e-04  1.000e+04 ( 1.000e-14)
461        Index:  2.095e+00  4.348e+02  0.000e+00  1.000e+01 (-1.000e+00)
462        Scale:  2.453e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
741    Prefactor:  9.433e-01  1.063e-02  0.000e+00  1.000e+01 ( 1.000e+00)
742        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
743        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
740   Normalization:  9.031e-01  3.313e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 311.002 10.608

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/146069/cmap_HighResolution_586656001_586915201_4FGL_J2044.0+1036_daily_bin1340.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.20e-03', job_status='DONE', photon_flux_upper_limit='5.52e-08', time_completed='2021-09-25 18:06:59.482308', job_id='146069', GAL2='0.94', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1632618419.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='3.53e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1340' AND source_name='4FGL J2044.0+1036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 18:06:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 146069: <4FGL_J2044.0+1036_daily_bin1340> in cluster <slac> Done

Job <4FGL_J2044.0+1036_daily_bin1340> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep 25 17:50:21 2021
Job was executed on host(s) <bullet0106>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 17:50:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 25 17:50:49 2021
Terminated at Sat Sep 25 18:07:00 2021
Results reported at Sat Sep 25 18:07:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2044.0+1036_daily_bin1340 311.002 10.6079 586656001 586915201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2044.0+1036 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   951.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             358.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            999 sec.

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

