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


Performing analysis on: 4FGL_J1044.6+8053_monthly_bin17
RA = 161.164, Dec = 80.8941
tmin = 281059201, tmax = 283651201
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='200818', job_status='RUN', time_executed='2021-10-21 23:48:28.752017', time_epoch_executed='1634885308.75' WHERE source_name='4FGL J1044.6+8053' and cadence='monthly' and bin_id='17'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/200818

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/200818/ft1_4FGL_J1044.6+8053_monthly_bin17.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/200818/ft2_4FGL_J1044.6+8053_monthly_bin17.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/200818/ft1_4FGL_J1044.6+8053_monthly_bin17.fits outfile=/scratch/kocevski/200818/ft1_filteredMKT_4FGL_J1044.6+8053_monthly_bin17.fits ra=161.164 dec=80.8941 rad=12.0 tmin=281059201.0 tmax=283651201.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 32.01
user 31.10
sys 0.80

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/200818/ft2_4FGL_J1044.6+8053_monthly_bin17.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/200818/ft1_filteredMKT_4FGL_J1044.6+8053_monthly_bin17.fits evtable="EVENTS" outfile="/scratch/kocevski/200818/ft1_filtered_4FGL_J1044.6+8053_monthly_bin17.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.65
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/200818/ft1_filtered_4FGL_J1044.6+8053_monthly_bin17.fits" evtable="EVENTS" scfile=/scratch/kocevski/200818/ft2_4FGL_J1044.6+8053_monthly_bin17.fits sctable="SC_DATA" outfile=/scratch/kocevski/200818/ltcube_281059201_283651201_4FGL_J1044.6+8053_monthly_bin17.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/200818/ft2_4FGL_J1044.6+8053_monthly_bin17.fits
.....................!
real 119.55
user 118.79
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/200818/ft1_filtered_4FGL_J1044.6+8053_monthly_bin17.fits evtable="EVENTS" scfile=/scratch/kocevski/200818/ft2_4FGL_J1044.6+8053_monthly_bin17.fits sctable="SC_DATA" expcube=/scratch/kocevski/200818/ltcube_281059201_283651201_4FGL_J1044.6+8053_monthly_bin17.fits outfile=/scratch/kocevski/200818/expmap_281059201_283651201_4FGL_J1044.6+8053_monthly_bin17.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/200818/ltcube_281059201_283651201_4FGL_J1044.6+8053_monthly_bin17.fits
.....................!
real 191.21
user 185.73
sys 5.12

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/200818/ft1_filtered_4FGL_J1044.6+8053_monthly_bin17.fits scfile=/scratch/kocevski/200818/ft2_4FGL_J1044.6+8053_monthly_bin17.fits outfile=/scratch/kocevski/200818/cmap_281059201_283651201_4FGL_J1044.6+8053_monthly_bin17.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.79
user 0.61
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/200818/ft1_filtered_4FGL_J1044.6+8053_monthly_bin17.fits scfile=/scratch/kocevski/200818/ft2_4FGL_J1044.6+8053_monthly_bin17.fits outfile=/scratch/kocevski/200818/cmap_HighResolution_281059201_283651201_4FGL_J1044.6+8053_monthly_bin17.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.79
user 0.61
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/200818/ft1_filtered_4FGL_J1044.6+8053_monthly_bin17.fits', '/scratch/kocevski/200818/ft2_4FGL_J1044.6+8053_monthly_bin17.fits', expMap='/scratch/kocevski/200818/expmap_281059201_283651201_4FGL_J1044.6+8053_monthly_bin17.fits', expCube='/scratch/kocevski/200818/ltcube_281059201_283651201_4FGL_J1044.6+8053_monthly_bin17.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/200818/Model_4FGL_J1044.6+8053_monthly_bin17.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/200818/ft1_filtered_4FGL_J1044.6+8053_monthly_bin17.fits
Spacecraft file(s): /scratch/kocevski/200818/ft2_4FGL_J1044.6+8053_monthly_bin17.fits
Exposure map: /scratch/kocevski/200818/expmap_281059201_283651201_4FGL_J1044.6+8053_monthly_bin17.fits
Exposure cube: /scratch/kocevski/200818/ltcube_281059201_283651201_4FGL_J1044.6+8053_monthly_bin17.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/200818/Model_4FGL_J1044.6+8053_monthly_bin17.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) = 91028.9265321

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1699       1.0000         .10000E-03   10000.    
     2 'norm      '    .10163E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.5234       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.8802       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .36542E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.742       1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.818       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6872       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .79041       1.0000         .10000E-03   10000.    
    14 'norm      '    .72126       1.0000         .10000E-03   10000.    
    15 'norm      '    .97352E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.2536       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4019       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.6319       1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.8934       1.0000         .10000E-03   10000.    
    21 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.8520       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.7064       1.0000         .10000E-03   10000.    
    25 'Prefactor '    13.115       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.7331       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .91754       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0162       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=   91027.84     FROM MIGRAD    STATUS=CONVERGED    735 CALLS     3248 TOTAL
                     EDM=   .50E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1700        4.1896         .0000        .31481E-01
   2  norm          .10000E-03    .86440         .0000    ** at limit **
   3  norm          .10000E-03    1.7760         .0000    ** at limit **
   4  Prefactor     .10001E-03    6.6671         .0000    ** at limit **
   5  Prefactor     1.5235        .80880         .0000        .39108E-02
   6  Prefactor     .10000E-03    1.2611         .0000    ** at limit **
   7  Prefactor     4.8802        2.1474         .0000        .39666E-01
   8  Prefactor     .10006E-03    .65280         .0000    ** at limit **
   9  Prefactor     .10000E-03    1.8057         .0000    ** at limit **
  10  Prefactor     15.743        7.6556         .0000       -.22805E-03
  11  Prefactor     11.815        10.248         .0000        .12884E-02
  12  norm          1.6881        1.8651         .0000        .12757E-01
  13  Prefactor     .79095        .76533         .0000        .55079E-02
  14  norm          .72124        .18551         .0000        .96107E-02
  15  norm          .97422E-01    .19691         .0000        .12139E-01
  16  Prefactor     2.2524        3.9681         .0000        .42562E-02
  17  Prefactor     .10000E-03    .29778         .0000    ** at limit **
  18  Prefactor     1.4019        .73308         .0000        .21725E-02
  19  Prefactor     7.6320        3.2495         .0000        .13404E-02
  20  Prefactor     9.8934        8.9122         .0000        .11137E-03
  21  norm          .10000E-03    .24950         .0000    ** at limit **
  22  norm          2.8520        .92843         .0000        .55254E-02
  23  Prefactor     .10000E-03    3.1021         .0000    ** at limit **
  24  Prefactor     4.7064        3.1620         .0000        .11988E-02
  25  Prefactor     13.115        4.5782         .0000        .51509E-02
  26  Prefactor     6.7323        12.180         .0000        .65826E-03
  27  Prefactor     .10001E-03    8.4092         .0000    ** at limit **
  28  Normalizat    .91753        .47190E-01     .0000        .46436E-03
  29  Prefactor     1.0162        .30634E-01     .0000        .44203E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.17001
  norm       = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 1.52352
  Prefactor  = 0.0001
  Prefactor  = 4.88024
  Prefactor  = 0.000100055
  Prefactor  = 0.0001
  Prefactor  = 15.7425
  Prefactor  = 11.815
  norm       = 1.68809
  Prefactor  = 0.790953
  norm       = 0.721244
  norm       = 0.0974218
  Prefactor  = 2.25237
  Prefactor  = 0.0001
  Prefactor  = 1.4019
  Prefactor  = 7.63201
  Prefactor  = 9.89342
  norm       = 0.0001
  norm       = 2.85203
  Prefactor  = 0.0001
  Prefactor  = 4.70643
  Prefactor  = 13.1155
  Prefactor  = 6.73234
  Prefactor  = 0.000100014
  Normalizat = 0.917526
  Prefactor  = 1.01619
 **********
 **   18 **HESSE 
 **********

 FCN=   91027.84     FROM HESSE     STATUS=OK           579 CALLS     3827 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1700        4.1933        .13978E-02   -1.5413    
   2  norm          .10000E-03    .79330        .10082       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.7971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    6.7842        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.5235        .80339        .19222E-03   -1.5461    
   6  Prefactor     .10000E-03    1.2714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.8802        2.1478        .91041E-03   -1.5266    
   8  Prefactor     .10006E-03    5.5460        .39659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.8560        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.743        6.8086        .10095E-03   -1.4914    
  11  Prefactor     11.815        10.003        .11653E-03   -1.5020    
  12  norm          1.6881        1.5935        .25674E-03   -1.5448    
  13  Prefactor     .79095        .73464        .22842E-03   -1.5530    
  14  norm          .72124        .17442        .56297E-03   -1.5538    
  15  norm          .97422E-01    .44251        .16277E-02   -1.5646    
  16  Prefactor     2.2524        3.3896        .27369E-03   -1.5408    
  17  Prefactor     .10000E-03    .67632        .28889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.4019        .73281        .18164E-03   -1.5471    
  19  Prefactor     7.6320        3.1984        .14516E-03   -1.5155    
  20  Prefactor     9.8934        8.9135        .12740E-03   -1.5079    
  21  norm          .10000E-03    1.1570        .29220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.8520        .92100        .15065E-03   -1.5370    
  23  Prefactor     .10000E-03    3.1167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     4.7064        3.1560        .18549E-03   -1.5274    
  25  Prefactor     13.115        4.5806        .55302E-03   -1.4984    
  26  Prefactor     6.7323        12.174        .15464E-03   -1.5189    
  27  Prefactor     .10001E-03    8.5252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .91753        .51441E-01    .28403E-03   -.95847    
  29  Prefactor     1.0162        .33997E-01    .18514E-03   -.92192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78541e-08
Minuit parameter uncertainties:
  1  4.1939
  2  0.00010103
  3  4.84078e-05
  4  0.000435864
  5  0.803399
  6  6.63893e-06
  7  2.14786
  8  0.0011078
  9  4.1633e-05
  10  6.80897
  11  10.004
  12  1.59358
  13  0.734645
  14  0.174419
  15  0.415052
  16  3.38989
  17  2.03056e-07
  18  0.732814
  19  3.19849
  20  8.91466
  21  3.64937e-06
  22  0.921005
  23  5.50586e-05
  24  3.15609
  25  4.58073
  26  12.1787
  27  0.000697715
  28  0.0514438
  29  0.0339975
Done.

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

Extracting fit parameters...

4FGL J1044.6+8053
   Spectrum: LogParabola
343         norm:  1.688e+00  1.594e+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:  1.016e+00  3.400e-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.175e-01  5.144e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.58
Ra Dec: 161.164 80.894
Photon Index (Fixed Index): 2.82 +/- 0.00
Photon Flux (Fixed Index): 1.34e-08 +/- 1.26e-08
Energy Flux (Fixed Index): 3.30e-06 +/- 3.11e-06

TS (Fixed Index): 2.58
Ra Dec: 161.164 80.894
Photon Flux Upper Limit: 3.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.41e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/200818/likelihoodResults_281059201_283651201_4FGL_J1044.6+8053_monthly_bin17.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) = 91026.7574511
delta logL = 1.08425935345

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 91026.7306643
delta logL = 1.11104617239

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .58634       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.0682       1.0000          .0000       5.0000    
     3 'Normalizat'    .90037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0231       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=   91026.73     FROM MIGRAD    STATUS=FAILED        95 CALLS      268 TOTAL
                     EDM=   .54E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58635        6.4550        .10566E-03    .46482E-03
   2  alpha         4.0683        4.5327        .46267E-01    .32036E-02
   3  Normalizat    .90037        .40940E-01    .28668E-03    .63450E-06
   4  Prefactor     1.0231        .27125E-01    .18460E-03    .19708E-06
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   91026.73     FROM SIMPLEX   STATUS=UNCHANGED     86 CALLS      354 TOTAL
                     EDM=   .92E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58635        6.4550        .36289E-04    .46482E-03
   2  alpha         4.0683        4.5327        .16164E-02    .32036E-02
   3  Normalizat    .90037        .40940E-01    .83534E-04    .63450E-06
   4  Prefactor     1.0231        .27125E-01    .37212E-04    .19708E-06
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   91026.73     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      384 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .58634        1.4167        .42264E-05    .60255E-04
   2  alpha         4.0683        1.4462        .92535E-02    .71749E-05
   3  Normalizat    .90037        .50755E-01    .11467E-04   -.19035E-04
   4  Prefactor     1.0231        .33814E-01    .36919E-04   -.38430E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.586341
  alpha      = 4.06826
  Normalizat = 0.90037
  Prefactor  = 1.02313
 **********
 **   18 **HESSE 
 **********

 FCN=   91026.73     FROM HESSE     STATUS=OK            25 CALLS      409 TOTAL
                     EDM=   .26E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .58634        .87564        .84527E-06   -1.5555    
   2  alpha         4.0683        .96215        .37014E-03    .67809    
   3  Normalizat    .90037        .50529E-01    .22935E-05   -.96447    
   4  Prefactor     1.0231        .33627E-01    .73838E-05   -.91962    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63064e-13
Minuit parameter uncertainties:
  1  0.875661
  2  1.00637
  3  0.0505321
  4  0.0336273
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/200818': 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) = 91026.7306643
delta logL = 1.1110461893

Extracting fit parameters...

4FGL J1044.6+8053
   Spectrum: LogParabola
343         norm:  5.863e-01  8.757e-01  1.000e-04  1.000e+04 ( 1.000e-12)
344        alpha:  4.068e+00  1.006e+00  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:  1.023e+00  3.363e-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.004e-01  5.053e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.07
Ra Dec: 161.164 80.894
Photon Index (Free Index): 4.07 +/- 1.01
Photon Flux (Free Index): 2.71e-08 +/- 1.38e-08
Energy Flux (Free Index): 4.37e-06 +/- 2.17e-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/200818/cmap_HighResolution_281059201_283651201_4FGL_J1044.6+8053_monthly_bin17.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.41e-06', comment='SUCCESS', photon_flux='1.34e-08', energy_flux2='4.37e-06', photon_flux_error='1.26e-08', dlogl='1.11e+00', energy_flux='3.30e-06', photon_flux2='2.71e-08', job_status='DONE', time_completed='2021-10-22 03:03:38.869232', photon_index_error2='1.01', photon_index2='4.07', ts='2.58', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='3.01e-08', energy_flux_error2='2.17e-06', EG='0.92', time_epoch_completed='1634897018.87', return_code='0', job_id='200818', GAL2='1.02', EG2='0.90', return_code2='0', energy_flux_error='3.11e-06', photon_flux_error2='1.38e-08', ts2='5.07', photon_index='2.82' WHERE bin_id='17' AND source_name='4FGL J1044.6+8053' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Fri Oct 22 03:03:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0140>
Subject: Job 200818: <4FGL_J1044.6+8053_monthly_bin17> in cluster <slac> Done

Job <4FGL_J1044.6+8053_monthly_bin17> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Thu Oct 21 23:25:17 2021
Job was executed on host(s) <bullet0140>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct 21 23:44:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Oct 21 23:44:57 2021
Terminated at Fri Oct 22 03:03:40 2021
Results reported at Fri Oct 22 03:03:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1044.6+8053_monthly_bin17 161.164 80.8941 281059201 283651201 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 :                                   9941.00 sec.
    Max Memory :                                 632 MB
    Average Memory :                             398.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   11922 sec.
    Turnaround time :                            13103 sec.

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

