/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 225 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 72950
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1044.6+8053_monthly_bin87
RA = 161.164, Dec = 80.8941
tmin = 462499201, tmax = 465091201
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='203144', job_status='RUN', time_executed='2021-10-21 23:50:21.022744', time_epoch_executed='1634885421.02' WHERE source_name='4FGL J1044.6+8053' and cadence='monthly' and bin_id='87'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/203144

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/203144/ft1_4FGL_J1044.6+8053_monthly_bin87.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/203144/ft2_4FGL_J1044.6+8053_monthly_bin87.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/203144/ft1_4FGL_J1044.6+8053_monthly_bin87.fits outfile=/scratch/kocevski/203144/ft1_filteredMKT_4FGL_J1044.6+8053_monthly_bin87.fits ra=161.164 dec=80.8941 rad=12.0 tmin=462499201.0 tmax=465091201.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.22
user 30.40
sys 0.71

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/203144/ft2_4FGL_J1044.6+8053_monthly_bin87.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/203144/ft1_filteredMKT_4FGL_J1044.6+8053_monthly_bin87.fits evtable="EVENTS" outfile="/scratch/kocevski/203144/ft1_filtered_4FGL_J1044.6+8053_monthly_bin87.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.87
user 0.65
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/203144/ft1_filtered_4FGL_J1044.6+8053_monthly_bin87.fits" evtable="EVENTS" scfile=/scratch/kocevski/203144/ft2_4FGL_J1044.6+8053_monthly_bin87.fits sctable="SC_DATA" outfile=/scratch/kocevski/203144/ltcube_462499201_465091201_4FGL_J1044.6+8053_monthly_bin87.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/203144/ft2_4FGL_J1044.6+8053_monthly_bin87.fits
.....................!
real 121.78
user 120.90
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/203144/ft1_filtered_4FGL_J1044.6+8053_monthly_bin87.fits evtable="EVENTS" scfile=/scratch/kocevski/203144/ft2_4FGL_J1044.6+8053_monthly_bin87.fits sctable="SC_DATA" expcube=/scratch/kocevski/203144/ltcube_462499201_465091201_4FGL_J1044.6+8053_monthly_bin87.fits outfile=/scratch/kocevski/203144/expmap_462499201_465091201_4FGL_J1044.6+8053_monthly_bin87.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/203144/ltcube_462499201_465091201_4FGL_J1044.6+8053_monthly_bin87.fits
.....................!
real 192.55
user 186.83
sys 4.99

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/203144/ft1_filtered_4FGL_J1044.6+8053_monthly_bin87.fits scfile=/scratch/kocevski/203144/ft2_4FGL_J1044.6+8053_monthly_bin87.fits outfile=/scratch/kocevski/203144/cmap_462499201_465091201_4FGL_J1044.6+8053_monthly_bin87.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.80
user 0.60
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/203144/ft1_filtered_4FGL_J1044.6+8053_monthly_bin87.fits scfile=/scratch/kocevski/203144/ft2_4FGL_J1044.6+8053_monthly_bin87.fits outfile=/scratch/kocevski/203144/cmap_HighResolution_462499201_465091201_4FGL_J1044.6+8053_monthly_bin87.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.64
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12470E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    7.0735       1.0000         .10000E-03   10000.    
     3 'norm      '    .10064E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11774E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8491       1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.622       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .48800       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1162       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.9120       1.0000         .10000E-03   10000.    
    10 'Prefactor '    68.159       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .35788E-01   1.0000         .10000E-03   10000.    
    12 'norm      '    1.4223       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .24565       1.0000         .10000E-03   10000.    
    14 'norm      '    .56986       1.0000         .10000E-03   10000.    
    15 'norm      '    .99761       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.9544       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.9256       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13867E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.7404       1.0000         .10000E-03   10000.    
    22 'norm      '    2.0822       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .72729       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.9078       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.8809       1.0000         .10000E-03   10000.    
    26 'Prefactor '    16.989       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .13294E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .96312       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .99550       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   93855.35     FROM MIGRAD    STATUS=CONVERGED    149 CALLS     2711 TOTAL
                     EDM=   .44E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8294       -.75768E-08** at limit **
   2  norm          7.0703        3.6766        .28318E-05   -.38514E-03
   3  norm          .10000E-03    1.0643        .17856E-06** at limit **
   4  Prefactor     .10000E-03    5.7147       -.78680E-07** at limit **
   5  Prefactor     1.8494        .85993        .14136E-07   -.26605E-04
   6  Prefactor     29.645        7.5677       -.82316E-07   -.36590E-04
   7  Prefactor     .49163        1.7190       -.64021E-07   -.10336E-04
   8  Prefactor     4.0930        5.0522        .42333E-06   -.87231E-04
   9  Prefactor     1.9127        2.1348       -.71767E-08    .79003E-05
  10  Prefactor     68.287        14.494       -.30975E-06   -.23632E-03
  11  Prefactor     .10002E-03    523.14       -.12130E-05** at limit **
  12  norm          1.4221        .94404       -.40992E-07    .43291E-05
  13  Prefactor     .24702        .94926       -.20543E-06   -.12740E-03
  14  norm          .56996        .15903        .10934E-07   -.49191E-03
  15  norm          .99742        .48561        .13571E-08   -.41321E-04
  16  Prefactor     .10000E-03    1.7656        .86226E-07** at limit **
  17  Prefactor     .10000E-03    .45413       -.97672E-07** at limit **
  18  Prefactor     1.9545        .89733        .15566E-07    .21704E-05
  19  Prefactor     2.9259        2.7123        .58499E-06   -.10521E-03
  20  Prefactor     .10000E-03    6.2001        .29794E-06** at limit **
  21  norm          2.7402        1.1067        .79840E-08   -.27467E-04
  22  norm          2.0823        .82270       -.65608E-07   -.99859E-04
  23  Prefactor     .74170        8.1760        .20237E-05   -.85502E-04
  24  Prefactor     1.9082        2.7616       -.63680E-06    .16628E-04
  25  Prefactor     3.8824        2.8357        .22963E-06    .25202E-04
  26  Prefactor     16.924        14.377       -.17706E-05    .23480E-04
  27  Prefactor     .10000E-03    3.7588        .16167E-06** at limit **
  28  Normalizat    .96309        .52712E-01   -.90115E-07   -.13458E-03
  29  Prefactor     .99550        .34161E-01   -.36345E-07   -.14115E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 7.07034
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.84944
  Prefactor  = 29.6454
  Prefactor  = 0.491627
  Prefactor  = 4.09295
  Prefactor  = 1.91268
  Prefactor  = 68.2872
  Prefactor  = 0.000100024
  norm       = 1.42214
  Prefactor  = 0.247017
  norm       = 0.569964
  norm       = 0.99742
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.95449
  Prefactor  = 2.92594
  Prefactor  = 0.0001
  norm       = 2.74018
  norm       = 2.08231
  Prefactor  = 0.741699
  Prefactor  = 1.90824
  Prefactor  = 3.88241
  Prefactor  = 16.9238
  Prefactor  = 0.0001
  Normalizat = 0.963094
  Prefactor  = 0.995502
 **********
 **   18 **HESSE 
 **********

 FCN=   93855.35     FROM HESSE     STATUS=OK           645 CALLS     3356 TOTAL
                     EDM=   .96E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.7948        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          7.0703        3.6788        .37708E-02   -1.5176    
   3  norm          .10000E-03    1.0562        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.5981        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.8494        .86171        .76654E-02   -1.5436    
   6  Prefactor     29.645        7.5693        .18403E-02   -1.4618    
   7  Prefactor     .49163        .95182        .70705E-01   -1.5568    
   8  Prefactor     4.0930        5.3576        .49674E-02   -1.5303    
   9  Prefactor     1.9127        2.1690        .75156E-02   -1.5431    
  10  Prefactor     68.287        15.284        .12154E-02   -1.4053    
  11  Prefactor     .10002E-03    3.0847        .14504       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.4221        1.0658        .90662E-02   -1.5469    
  13  Prefactor     .24702        .44588        .65753E-01   -1.5609    
  14  norm          .56996        .16639        .11553E-01   -1.5557    
  15  norm          .99742        .56936        .32644E-01   -1.5508    
  16  Prefactor     .10000E-03    .45835        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .44307        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.9545        .90333        .74199E-02   -1.5428    
  19  Prefactor     2.9259        2.8165        .59375E-02   -1.5366    
  20  Prefactor     .10000E-03    6.1669        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.7402        1.1082        .61487E-02   -1.5377    
  22  norm          2.0823        .83852        .71543E-02   -1.5419    
  23  Prefactor     .74170        7.8336        .12166E-01   -1.5536    
  24  Prefactor     1.9082        2.7771        .75254E-02   -1.5432    
  25  Prefactor     3.8824        2.8414        .51206E-02   -1.5314    
  26  Prefactor     16.924        14.394        .24293E-02   -1.4885    
  27  Prefactor     .10000E-03    3.7464        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .96309        .47729E-01    .45703E-01   -.94277    
  29  Prefactor     .99550        .30519E-01    .46211E-01   -.92880    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.6317e-06
Minuit parameter uncertainties:
  1  1.54886e-06
  2  3.67893
  3  6.24936e-07
  4  4.67039e-06
  5  0.861713
  6  7.56951
  7  0.951852
  8  5.3582
  9  2.16913
  10  15.2846
  11  0.000549699
  12  1.06577
  13  0.445886
  14  0.166391
  15  0.569363
  16  1.01594e-06
  17  4.21427e-07
  18  0.90334
  19  2.8166
  20  1.37339e-05
  21  1.10819
  22  0.83852
  23  4.82135
  24  2.77731
  25  2.84146
  26  14.3972
  27  6.9998e-06
  28  0.0477312
  29  0.0305191
Done.

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

Extracting fit parameters...

4FGL J1044.6+8053
   Spectrum: LogParabola
343         norm:  1.422e+00  1.066e+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.955e-01  3.052e-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.631e-01  4.773e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.15
Ra Dec: 161.164 80.894
Photon Index (Fixed Index): 2.82 +/- 0.00
Photon Flux (Fixed Index): 1.13e-08 +/- 8.45e-09
Energy Flux (Fixed Index): 2.78e-06 +/- 2.08e-06

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

Saving results to:
/scratch/kocevski/203144/likelihoodResults_462499201_465091201_4FGL_J1044.6+8053_monthly_bin87.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 93855.1413214
delta logL = 0.206417133799

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 93855.1331329
delta logL = 0.214605611356

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7392       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3331       1.0000          .0000       5.0000    
     3 'Normalizat'    .96766       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99374       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.

 FCN=   93855.13     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      247 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7386        1.1550        .25480E-03    .26414E-04
   2  alpha         2.3321        .72480        .67554E-01    .15151E-04
   3  Normalizat    .96767        .49882E-01    .28348E-03   -.64167E-06
   4  Prefactor     .99374        .33631E-01    .18979E-03    .19169E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 1.73861
  alpha      = 2.33208
  Normalizat = 0.967668
  Prefactor  = 0.993735
 **********
 **   18 **HESSE 
 **********

 FCN=   93855.13     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .73E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7386        1.1283        .10192E-04   -1.5444    
   2  alpha         2.3321        .71084        .27022E-02   -.67218E-01
   3  Normalizat    .96767        .49850E-01    .11339E-04   -.94122    
   4  Prefactor     .99374        .33629E-01    .37957E-04   -.92939    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.28089e-14
Minuit parameter uncertainties:
  1  1.12831
  2  0.72083
  3  0.0498522
  4  0.0336295
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/203144': 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) = 93855.1331317
delta logL = 0.214606817623

Extracting fit parameters...

4FGL J1044.6+8053
   Spectrum: LogParabola
343         norm:  1.739e+00  1.128e+00  1.000e-04  1.000e+04 ( 1.000e-12)
344        alpha:  2.332e+00  7.208e-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.937e-01  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.677e-01  4.985e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.56
Ra Dec: 161.164 80.894
Photon Index (Free Index): 2.33 +/- 0.72
Photon Flux (Free Index): 7.83e-09 +/- 7.50e-09
Energy Flux (Free Index): 2.72e-06 +/- 1.77e-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/203144/cmap_HighResolution_462499201_465091201_4FGL_J1044.6+8053_monthly_bin87.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.24e-06', comment='SUCCESS', photon_flux='1.13e-08', energy_flux2='2.72e-06', photon_flux_error='8.45e-09', dlogl='2.15e-01', energy_flux='2.78e-06', photon_flux2='7.83e-09', job_status='DONE', time_completed='2021-10-22 02:57:44.599712', photon_index_error2='0.72', photon_index2='2.33', ts='3.15', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='2.53e-08', energy_flux_error2='1.77e-06', EG='0.96', time_epoch_completed='1634896664.6', return_code='0', job_id='203144', GAL2='0.99', EG2='0.97', return_code2='0', energy_flux_error='2.08e-06', photon_flux_error2='7.50e-09', ts2='3.56', photon_index='2.82' WHERE bin_id='87' AND source_name='4FGL J1044.6+8053' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Fri Oct 22 02:57:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 203144: <4FGL_J1044.6+8053_monthly_bin87> in cluster <slac> Done

Job <4FGL_J1044.6+8053_monthly_bin87> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Oct 21 23:35:15 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Oct 21 23:46:27 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:46:27 2021
Terminated at Fri Oct 22 02:57:45 2021
Results reported at Fri Oct 22 02:57:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1044.6+8053_monthly_bin87 161.164 80.8941 462499201 465091201 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 :                                   9411.00 sec.
    Max Memory :                                 632 MB
    Average Memory :                             399.40 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   11481 sec.
    Turnaround time :                            12150 sec.

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

