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


Performing analysis on: 4FGL_J2044.0+1036_daily_bin1205
RA = 311.002, Dec = 10.6079
tmin = 551664001, tmax = 551923201
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='144787', job_status='RUN', time_executed='2021-09-25 17:51:02.757436', time_epoch_executed='1632617462.76' WHERE source_name='4FGL J2044.0+1036' and cadence='daily' and bin_id='1205'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/144787

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/144787/ft1_4FGL_J2044.0+1036_daily_bin1205.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/144787/ft2_4FGL_J2044.0+1036_daily_bin1205.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/144787/ft1_4FGL_J2044.0+1036_daily_bin1205.fits outfile=/scratch/kocevski/144787/ft1_filteredMKT_4FGL_J2044.0+1036_daily_bin1205.fits ra=311.002 dec=10.6079 rad=12.0 tmin=551664001.0 tmax=551923201.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.89
user 3.63
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/144787/ft2_4FGL_J2044.0+1036_daily_bin1205.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/144787/ft1_filteredMKT_4FGL_J2044.0+1036_daily_bin1205.fits evtable="EVENTS" outfile="/scratch/kocevski/144787/ft1_filtered_4FGL_J2044.0+1036_daily_bin1205.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/144787/ft1_filtered_4FGL_J2044.0+1036_daily_bin1205.fits" evtable="EVENTS" scfile=/scratch/kocevski/144787/ft2_4FGL_J2044.0+1036_daily_bin1205.fits sctable="SC_DATA" outfile=/scratch/kocevski/144787/ltcube_551664001_551923201_4FGL_J2044.0+1036_daily_bin1205.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/144787/ft2_4FGL_J2044.0+1036_daily_bin1205.fits
.....................!
real 15.54
user 15.12
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/144787/ft1_filtered_4FGL_J2044.0+1036_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/144787/ft2_4FGL_J2044.0+1036_daily_bin1205.fits sctable="SC_DATA" expcube=/scratch/kocevski/144787/ltcube_551664001_551923201_4FGL_J2044.0+1036_daily_bin1205.fits outfile=/scratch/kocevski/144787/expmap_551664001_551923201_4FGL_J2044.0+1036_daily_bin1205.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/144787/ltcube_551664001_551923201_4FGL_J2044.0+1036_daily_bin1205.fits
.....................!
real 191.25
user 185.61
sys 5.10

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/144787/ft1_filtered_4FGL_J2044.0+1036_daily_bin1205.fits scfile=/scratch/kocevski/144787/ft2_4FGL_J2044.0+1036_daily_bin1205.fits outfile=/scratch/kocevski/144787/cmap_551664001_551923201_4FGL_J2044.0+1036_daily_bin1205.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/144787/ft1_filtered_4FGL_J2044.0+1036_daily_bin1205.fits scfile=/scratch/kocevski/144787/ft2_4FGL_J2044.0+1036_daily_bin1205.fits outfile=/scratch/kocevski/144787/cmap_HighResolution_551664001_551923201_4FGL_J2044.0+1036_daily_bin1205.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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/144787/ft1_filtered_4FGL_J2044.0+1036_daily_bin1205.fits evtable="EVENTS" scfile=/scratch/kocevski/144787/ft2_4FGL_J2044.0+1036_daily_bin1205.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/144787/Model_4FGL_J2044.0+1036_daily_bin1205.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/144787/ft1_filtered_4FGL_J2044.0+1036_daily_bin1205.fits......................!
real 57.53
user 55.56
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/144787/ft1_filtered_4FGL_J2044.0+1036_daily_bin1205.fits', '/scratch/kocevski/144787/ft2_4FGL_J2044.0+1036_daily_bin1205.fits', expMap='/scratch/kocevski/144787/expmap_551664001_551923201_4FGL_J2044.0+1036_daily_bin1205.fits', expCube='/scratch/kocevski/144787/ltcube_551664001_551923201_4FGL_J2044.0+1036_daily_bin1205.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/144787/Model_4FGL_J2044.0+1036_daily_bin1205.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/144787/ft1_filtered_4FGL_J2044.0+1036_daily_bin1205.fits
Spacecraft file(s): /scratch/kocevski/144787/ft2_4FGL_J2044.0+1036_daily_bin1205.fits
Exposure map: /scratch/kocevski/144787/expmap_551664001_551923201_4FGL_J2044.0+1036_daily_bin1205.fits
Exposure cube: /scratch/kocevski/144787/ltcube_551664001_551923201_4FGL_J2044.0+1036_daily_bin1205.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/144787/Model_4FGL_J2044.0+1036_daily_bin1205.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) = 2343.78329099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8091       1.0000         .10000E-03   10000.    
     2 'norm      '    .10149E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10264E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    15.709       1.0000         .10000E-03   10000.    
     8 'norm      '    .11767E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15024E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.857       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.030       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.369       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .48891       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.805       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .10002E-01   1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98847       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=   2343.775     FROM MIGRAD    STATUS=CONVERGED    412 CALLS     1922 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8090        19.939        .17530E-06    .24777E-04
   2  norm          .10000E-03    26.425        .97298E-07** at limit **
   3  Prefactor     .10000E-03    18.172        .45446E-06** at limit **
   4  Prefactor     .10000E-03    21.784        .42458E-06** at limit **
   5  norm          .10000E-03    .59116       -.10375E-06** at limit **
   6  Prefactor     .10000E-03    53.876       -.59027E-06** at limit **
   7  norm          15.711        17.041        .36167E-06    .69341E-04
   8  norm          .10000E-03    224.87       -.37289E-05** at limit **
   9  Prefactor     .10000E-03    95.707       -.13684E-04** at limit **
  10  Prefactor     .10000E-03    89.823        .19484E-04** at limit **
  11  Prefactor     .10000E-03    75.467       -.48942E-05** at limit **
  12  Prefactor     17.771        47.173        .20565E-04    .63609E-04
  13  Prefactor     .10000E-03    31.407       -.36558E-06** at limit **
  14  Prefactor     34.017        35.757        .18194E-05    .89680E-04
  15  Prefactor     15.369        39.721       -.14760E-05    .14046E-04
  16  Prefactor     .24150        61.089       -.32386E-05    .13167E-03
  17  Prefactor     20.814        17.298       -.11945E-05    .15514E-03
  18  Normalizat    .10000E-01    .31674       -.55722E-05** at limit **
  19  Prefactor     .98877        .11176       -.26107E-06    .81160E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.80896
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 15.7106
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.7714
  Prefactor  = 0.0001
  Prefactor  = 34.0171
  Prefactor  = 15.3691
  Prefactor  = 0.241495
  Prefactor  = 20.8145
  Normalizat = 0.01
  Prefactor  = 0.988774
 **********
 **   18 **HESSE 
 **********

 FCN=   2343.775     FROM HESSE     STATUS=OK           270 CALLS     2192 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8090        19.962        .15376E-03   -1.5186    
   2  norm          .10000E-03    26.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    18.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .60336        .36333E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    53.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          15.711        17.041        .10105E-03   -1.4915    
   8  norm          .10000E-03    224.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    96.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    88.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    75.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.771        47.121        .94780E-04   -1.4865    
  13  Prefactor     .10000E-03    31.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     34.017        35.765        .68694E-04   -1.4541    
  15  Prefactor     15.369        39.721        .10217E-03   -1.4924    
  16  Prefactor     .24150        79.486        .93182E-01   -1.5610    
  17  Prefactor     20.814        17.145        .87812E-04   -1.4795    
  18  Normalizat    .10000E-01    .73030        .12274E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .98877        .92405E-01    .12833E-03   -.93105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58656e-09
Minuit parameter uncertainties:
  1  19.982
  2  2.15519e-07
  3  4.62411e-06
  4  8.3904e-06
  5  4.63854e-07
  6  3.01481e-05
  7  17.0461
  8  0.00019111
  9  0.00101214
  10  0.000100646
  11  9.01935e-05
  12  47.2198
  13  6.21039e-05
  14  35.7874
  15  39.7894
  16  8.7725
  17  17.149
  18  2.52999e-05
  19  0.0924198
Done.

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

Extracting fit parameters...

4FGL J2044.0+1036
   Spectrum: PowerLaw
460    Prefactor:  1.000e-04  3.015e-05  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.888e-01  9.242e-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:  1.000e-02  2.530e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 311.002 10.608
Photon Flux Upper Limit: 1.92e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.46e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/144787/likelihoodResults_551664001_551923201_4FGL_J2044.0+1036_daily_bin1205.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) = 2343.77532027
delta logL = -9.46434097386e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2343.77523212
delta logL = -6.49673938824e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3376       1.0000          .0000       10.000    
     3 'Normalizat'    .10009E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98877       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=   2343.775     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      285 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10150E-03    174.99        .18142E-02** at limit **
   2  Index         2.2751        6.8684        .50000        .79670E-05
   3  Normalizat    .10000E-01    .57058E-02    .12304E-01** at limit **
   4  Prefactor     .98877        .70876E-02    .12833E-03   -.18073E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101499
  Index      = 2.2751
  Normalizat = 0.01
  Prefactor  = 0.988773
 **********
 **   18 **HESSE 
 **********

 FCN=   2343.775     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      314 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10150E-03    758.70        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2751        8.8591        .50000       -.57636    
   3  Normalizat    .10000E-01    .26040E-01    .24609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .98877        .15106E-01    .51331E-05   -.93105    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.25491e-09
Minuit parameter uncertainties:
  1  0.0683207
  2  412.231
  3  7.25256e-08
  4  0.0151064
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/144787': 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) = 2343.77522579
delta logL = -1.70011844602e-07

Extracting fit parameters...

4FGL J2044.0+1036
   Spectrum: PowerLaw
460    Prefactor:  1.015e-04  6.832e-02  1.000e-04  1.000e+04 ( 1.000e-14)
461        Index:  2.275e+00  4.122e+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.888e-01  1.511e-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:  1.000e-02  7.253e-08  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/144787/cmap_HighResolution_551664001_551923201_4FGL_J2044.0+1036_daily_bin1205.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.46e-02', job_status='DONE', photon_flux_upper_limit='1.92e-07', time_completed='2021-09-25 17:59:05.224731', job_id='144787', GAL2='0.99', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632617945.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='-1.70e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.18' WHERE bin_id='1205' AND source_name='4FGL J2044.0+1036' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 25 17:59:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 144787: <4FGL_J2044.0+1036_daily_bin1205> in cluster <slac> Done

Job <4FGL_J2044.0+1036_daily_bin1205> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep 25 17:45:32 2021
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 25 17:47:22 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:47:22 2021
Terminated at Sat Sep 25 17:59:06 2021
Results reported at Sat Sep 25 17:59:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2044.0+1036_daily_bin1205 311.002 10.6079 551664001 551923201 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 :                                   476.22 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             251.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            814 sec.

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

