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


Performing analysis on: 4FGL_J1044.6+8053_monthly_bin163
RA = 161.164, Dec = 80.8941
tmin = 659491201, tmax = 662083201
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='504448', job_status='RUN', time_executed='2021-12-25 01:22:11.783757', time_epoch_executed='1640424131.78' WHERE source_name='4FGL J1044.6+8053' and cadence='monthly' and bin_id='163'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504448

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

Retrieving the FT1 file...

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

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

Retrieving 457 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504448/ft1_4FGL_J1044.6+8053_monthly_bin163.fits


Retrieving the FT1 file...

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

Retrieving 457 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504448/ft2_4FGL_J1044.6+8053_monthly_bin163.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504448/ft1_4FGL_J1044.6+8053_monthly_bin163.fits outfile=/scratch/kocevski/504448/ft1_filteredMKT_4FGL_J1044.6+8053_monthly_bin163.fits ra=161.164 dec=80.8941 rad=12.0 tmin=659491201.0 tmax=662083201.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 31.56
user 30.70
sys 0.75

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/504448/ft2_4FGL_J1044.6+8053_monthly_bin163.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/504448/ft2_4FGL_J1044.6+8053_monthly_bin163.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/504448/ft1_filteredMKT_4FGL_J1044.6+8053_monthly_bin163.fits evtable="EVENTS" outfile="/scratch/kocevski/504448/ft1_filtered_4FGL_J1044.6+8053_monthly_bin163.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.84
user 0.66
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/504448/ft1_filtered_4FGL_J1044.6+8053_monthly_bin163.fits" evtable="EVENTS" scfile=/scratch/kocevski/504448/ft2_4FGL_J1044.6+8053_monthly_bin163.fits sctable="SC_DATA" outfile=/scratch/kocevski/504448/ltcube_659491201_662083201_4FGL_J1044.6+8053_monthly_bin163.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/504448/ft2_4FGL_J1044.6+8053_monthly_bin163.fits
.....................!
real 134.40
user 133.69
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504448/ft1_filtered_4FGL_J1044.6+8053_monthly_bin163.fits evtable="EVENTS" scfile=/scratch/kocevski/504448/ft2_4FGL_J1044.6+8053_monthly_bin163.fits sctable="SC_DATA" expcube=/scratch/kocevski/504448/ltcube_659491201_662083201_4FGL_J1044.6+8053_monthly_bin163.fits outfile=/scratch/kocevski/504448/expmap_659491201_662083201_4FGL_J1044.6+8053_monthly_bin163.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/504448/ltcube_659491201_662083201_4FGL_J1044.6+8053_monthly_bin163.fits
.....................!
real 191.81
user 185.94
sys 5.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 219 point sources and 0 extended sources

Setting source of interest to:
4FGL J1044.6+8053 @ 161.164 80.8941

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/504448/ft1_filtered_4FGL_J1044.6+8053_monthly_bin163.fits scfile=/scratch/kocevski/504448/ft2_4FGL_J1044.6+8053_monthly_bin163.fits outfile=/scratch/kocevski/504448/cmap_659491201_662083201_4FGL_J1044.6+8053_monthly_bin163.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=161.164 yref=80.8941 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.81
user 0.62
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504448/ft1_filtered_4FGL_J1044.6+8053_monthly_bin163.fits scfile=/scratch/kocevski/504448/ft2_4FGL_J1044.6+8053_monthly_bin163.fits outfile=/scratch/kocevski/504448/cmap_HighResolution_659491201_662083201_4FGL_J1044.6+8053_monthly_bin163.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=161.164 yref=80.8941 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.80
user 0.61
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/504448/ft1_filtered_4FGL_J1044.6+8053_monthly_bin163.fits evtable="EVENTS" scfile=/scratch/kocevski/504448/ft2_4FGL_J1044.6+8053_monthly_bin163.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/504448/Model_4FGL_J1044.6+8053_monthly_bin163.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/504448/ft1_filtered_4FGL_J1044.6+8053_monthly_bin163.fits.....................!
real 1098.75
user 1094.65
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/504448/ft1_filtered_4FGL_J1044.6+8053_monthly_bin163.fits', '/scratch/kocevski/504448/ft2_4FGL_J1044.6+8053_monthly_bin163.fits', expMap='/scratch/kocevski/504448/expmap_659491201_662083201_4FGL_J1044.6+8053_monthly_bin163.fits', expCube='/scratch/kocevski/504448/ltcube_659491201_662083201_4FGL_J1044.6+8053_monthly_bin163.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/504448/Model_4FGL_J1044.6+8053_monthly_bin163.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1044.6+8053'

4FGL J1044.6+8053
   Spectrum: LogParabola
343         norm:  2.944e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
344        alpha:  2.821e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
345         beta:  2.167e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
346           Eb:  6.821e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/504448/ft1_filtered_4FGL_J1044.6+8053_monthly_bin163.fits
Spacecraft file(s): /scratch/kocevski/504448/ft2_4FGL_J1044.6+8053_monthly_bin163.fits
Exposure map: /scratch/kocevski/504448/expmap_659491201_662083201_4FGL_J1044.6+8053_monthly_bin163.fits
Exposure cube: /scratch/kocevski/504448/ltcube_659491201_662083201_4FGL_J1044.6+8053_monthly_bin163.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/504448/Model_4FGL_J1044.6+8053_monthly_bin163.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) = 98077.921857

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10134E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.9964       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.051       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2240       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.253       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4368       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.9736       1.0000         .10000E-03   10000.    
    11 'Prefactor '    28.887       1.0000         .10000E-03   10000.    
    12 'norm      '    6.1118       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.2672       1.0000         .10000E-03   10000.    
    15 'norm      '    2.1262       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11228E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.1234       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .95057       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.6472       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.6252       1.0000         .10000E-03   10000.    
    21 'norm      '    1.2436       1.0000         .10000E-03   10000.    
    22 'norm      '    3.1495       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14707E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.8099       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .38550E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.4573       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .98277       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .97106       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   98077.92     FROM MIGRAD    STATUS=CONVERGED    745 CALLS     3911 TOTAL
                     EDM=   .39E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5999         .0000    ** at limit **
   2  norm          .10000E-03    .90940         .0000    ** at limit **
   3  norm          2.9986        3.5230         .0000        .16353E-01
   4  Prefactor     20.047        9.2638         .0000       -.64107E-03
   5  Prefactor     2.2237        .88402         .0000        .26113E-02
   6  Prefactor     .10000E-03    1.0749         .0000    ** at limit **
   7  Prefactor     14.252        2.5634         .0000       -.45105E-03
   8  Prefactor     1.4353        5.5663         .0000        .11184    
   9  Prefactor     .10000E-03    .59324         .0000    ** at limit **
  10  Prefactor     4.9735        10.269         .0000        .86959E-02
  11  Prefactor     28.903        13.050         .0000        .14707E-02
  12  norm          6.1125        1.4502         .0000        .50783E-02
  13  Prefactor     .10000E-03    .30725         .0000    ** at limit **
  14  norm          2.2672        .26540         .0000        .37685E-02
  15  norm          2.1259        2.4402         .0000        .80367E-02
  16  Prefactor     .10000E-03    .46766         .0000    ** at limit **
  17  Prefactor     1.1232        8.4465         .0000        .47276    
  18  Prefactor     .95067        .82092         .0000       -.22633E-02
  19  Prefactor     4.6466        2.7649         .0000        .24176E-02
  20  Prefactor     7.6358        8.8580         .0000        .15424E-02
  21  norm          1.2435        1.0084         .0000        .11787E-01
  22  norm          3.1497        .90806         .0000        .37634E-02
  23  Prefactor     .10011E-03    2.0228         .0000    ** at limit **
  24  Prefactor     1.8101        2.2501         .0000        .59146E-02
  25  Prefactor     .10000E-03    1.1426         .0000    ** at limit **
  26  Prefactor     .10051E-03    2.6458         .0000    ** at limit **
  27  Prefactor     2.4793        7.8699         .0000       -.25364E-02
  28  Normalizat    .98278        .49090E-01     .0000        .11186E-02
  29  Prefactor     .97105        .30285E-01     .0000        .92987E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.99864
  Prefactor  = 20.0469
  Prefactor  = 2.22373
  Prefactor  = 0.0001
  Prefactor  = 14.252
  Prefactor  = 1.43531
  Prefactor  = 0.0001
  Prefactor  = 4.97352
  Prefactor  = 28.9027
  norm       = 6.11253
  Prefactor  = 0.0001
  norm       = 2.26718
  norm       = 2.12591
  Prefactor  = 0.000100001
  Prefactor  = 1.12323
  Prefactor  = 0.950666
  Prefactor  = 4.64662
  Prefactor  = 7.63585
  norm       = 1.24345
  norm       = 3.14969
  Prefactor  = 0.000100113
  Prefactor  = 1.81014
  Prefactor  = 0.0001
  Prefactor  = 0.00010051
  Prefactor  = 2.47928
  Normalizat = 0.982782
  Prefactor  = 0.97105
 **********
 **   18 **HESSE 
 **********

 FCN=   98077.92     FROM HESSE     STATUS=OK           595 CALLS     4506 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .91847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.9986        3.5134        .11725E-02   -1.5362    
   4  Prefactor     20.047        9.2585        .89447E-04   -1.4812    
   5  Prefactor     2.2237        .88221        .17981E-03   -1.5410    
   6  Prefactor     .10000E-03    1.0797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.252        2.5607        .10609E-03   -1.4953    
   8  Prefactor     1.4353        4.6072        .18004E-02   -1.5468    
   9  Prefactor     .10000E-03    2.4399        .45186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.9735        8.6196        .90164E-03   -1.5262    
  11  Prefactor     28.903        12.421        .74543E-04   -1.4632    
  12  norm          6.1125        1.4713        .15226E-03   -1.5213    
  13  Prefactor     .10000E-03    .59529        .29730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.2672        .24584        .44751E-04   -1.5407    
  15  norm          2.1259        1.3349        .13595E-03   -1.5416    
  16  Prefactor     .10000E-03    .85203        .64171E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.1232        3.3444        .22121E-02   -1.5496    
  18  Prefactor     .95067        .58336        .24986E-02   -1.5513    
  19  Prefactor     4.6466        2.7299        .18669E-03   -1.5277    
  20  Prefactor     7.6358        8.8553        .14523E-03   -1.5155    
  21  norm          1.2435        .99335        .27395E-03   -1.5485    
  22  norm          3.1497        .90033        .14635E-03   -1.5353    
  23  Prefactor     .10011E-03    2.1078        .15385       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.8101        2.2330        .31057E-03   -1.5439    
  25  Prefactor     .10000E-03    1.1505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10051E-03    2.6858        .17909       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     2.4793        7.8697        .26091E-03   -1.5393    
  28  Normalizat    .98278        .53140E-01    .28639E-03   -.93610    
  29  Prefactor     .97105        .33606E-01    .19369E-03   -.93701    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.90198e-08
Minuit parameter uncertainties:
  1  9.35288e-06
  2  1.55831e-06
  3  3.51364
  4  9.25919
  5  0.882219
  6  8.88232e-06
  7  2.56072
  8  4.60834
  9  4.10996e-05
  10  8.62173
  11  12.422
  12  1.47134
  13  4.69962e-06
  14  0.245838
  15  1.33492
  16  6.01382e-05
  17  3.34495
  18  0.583361
  19  2.72999
  20  8.85686
  21  0.993368
  22  0.900331
  23  0.000977452
  24  2.23314
  25  1.48199e-07
  26  0.00234193
  27  7.87301
  28  0.0531426
  29  0.0336066
Done.

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

Extracting fit parameters...

4FGL J1044.6+8053
   Spectrum: LogParabola
343         norm:  6.113e+00  1.471e+00  1.000e-04  1.000e+04 ( 1.000e-12)
344        alpha:  2.821e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
345         beta:  2.167e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
346           Eb:  6.821e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  9.711e-01  3.361e-02  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  9.828e-01  5.314e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 41.58
Ra Dec: 161.164 80.894
Photon Index (Fixed Index): 2.82 +/- 0.00
Photon Flux (Fixed Index): 4.85e-08 +/- 1.17e-08
Energy Flux (Fixed Index): 1.19e-05 +/- 2.87e-06

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) = 98077.5220936
delta logL = 0.39336400677

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 98077.5195767
delta logL = 0.395880912023

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0471       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5788       1.0000          .0000       5.0000    
     3 'Normalizat'    .99139       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96762       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   98077.52     FROM MIGRAD    STATUS=FAILED        91 CALLS      260 TOTAL
                     EDM=   .63E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0471        1.8218        .75558E-03   -.73739E-03
   2  alpha         2.5788        .28614        .20994E-01    .21721E-02
   3  Normalizat    .99139        .50019E-01    .28530E-03    .15302E-03
   4  Prefactor     .96762        .33020E-01    .19398E-03   -.80642E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   98077.52     FROM SIMPLEX   STATUS=UNCHANGED     67 CALLS      327 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0471        1.8218        .32676E-04   -1.5177    
   2  alpha         2.5788        .28614        .36657E-03    .31533E-01
   3  Normalizat    .99139        .50019E-01    .87175E-04   -.93319    
   4  Prefactor     .96762        .33020E-01    .69388E-04   -.93817    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   98077.52     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      362 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0472        1.7316        .30223E-04   -.66204E-04
   2  alpha         2.5788        .27172        .41988E-02    .87528E-04
   3  Normalizat    .99139        .49977E-01    .11412E-04   -.63758E-05
   4  Prefactor     .96762        .33013E-01    .77593E-05   -.46885E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 7.04715
  alpha      = 2.57882
  Normalizat = 0.991393
  Prefactor  = 0.967623
 **********
 **   18 **HESSE 
 **********

 FCN=   98077.52     FROM HESSE     STATUS=OK            25 CALLS      387 TOTAL
                     EDM=   .12E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0472        1.7192        .12089E-05   -1.5177    
   2  alpha         2.5788        .26971        .83975E-03    .31534E-01
   3  Normalizat    .99139        .49958E-01    .22824E-05   -.93319    
   4  Prefactor     .96762        .32994E-01    .15519E-05   -.93817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24346e-13
Minuit parameter uncertainties:
  1  1.71917
  2  0.270236
  3  0.0499603
  4  0.0329949
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504448': 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) = 98077.5195767
delta logL = 0.395880912154

Extracting fit parameters...

4FGL J1044.6+8053
   Spectrum: LogParabola
343         norm:  7.047e+00  1.719e+00  1.000e-04  1.000e+04 ( 1.000e-12)
344        alpha:  2.579e+00  2.702e-01  0.000e+00  5.000e+00 ( 1.000e+00)
345         beta:  2.167e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
346           Eb:  6.821e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  9.676e-01  3.299e-02  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  9.914e-01  4.996e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 42.17
Ra Dec: 161.164 80.894
Photon Index (Free Index): 2.58 +/- 0.27
Photon Flux (Free Index): 4.17e-08 +/- 1.20e-08
Energy Flux (Free Index): 1.19e-05 +/- 2.54e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/504448/cmap_HighResolution_659491201_662083201_4FGL_J1044.6+8053_monthly_bin163.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.85e-08', energy_flux2='1.19e-05', photon_flux_error='1.17e-08', dlogl='3.96e-01', energy_flux='1.19e-05', photon_flux2='4.17e-08', job_status='DONE', time_completed='2021-12-25 04:04:04.536305', photon_index_error2='0.27', photon_index2='2.58', ts='41.58', fit_tolerance='1e-08', GAL='0.97', photon_index_error='0.00', energy_flux_error2='2.54e-06', EG='0.98', time_epoch_completed='1640433844.54', return_code='0', job_id='504448', GAL2='0.97', EG2='0.99', return_code2='0', energy_flux_error='2.87e-06', photon_flux_error2='1.20e-08', ts2='42.17', photon_index='2.82' WHERE bin_id='163' AND source_name='4FGL J1044.6+8053' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Dec 25 04:04:04 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 504448: <4FGL_J1044.6+8053_monthly_bin163> in cluster <slac> Done

Job <4FGL_J1044.6+8053_monthly_bin163> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Dec 25 01:15:49 2021
Job was executed on host(s) <bullet0296>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Dec 25 01:21:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Dec 25 01:21:59 2021
Terminated at Sat Dec 25 04:04:05 2021
Results reported at Sat Dec 25 04:04:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1044.6+8053_monthly_bin163 161.164 80.8941 659491201 662083201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1044.6+8053 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9678.00 sec.
    Max Memory :                                 1264 MB
    Average Memory :                             467.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   9726 sec.
    Turnaround time :                            10096 sec.

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

