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


Performing analysis on: 4FGL_J1044.6+8053_monthly_bin48
RA = 161.164, Dec = 80.8941
tmin = 361411201, tmax = 364003201
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='201899', job_status='RUN', time_executed='2021-10-21 23:49:04.148803', time_epoch_executed='1634885344.15' WHERE source_name='4FGL J1044.6+8053' and cadence='monthly' and bin_id='48'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/201899

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

Retrieving the FT1 file...

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

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

Retrieving 462 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/201899/ft1_4FGL_J1044.6+8053_monthly_bin48.fits


Retrieving the FT1 file...

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

Retrieving 462 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/201899/ft2_4FGL_J1044.6+8053_monthly_bin48.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/201899/ft1_4FGL_J1044.6+8053_monthly_bin48.fits outfile=/scratch/kocevski/201899/ft1_filteredMKT_4FGL_J1044.6+8053_monthly_bin48.fits ra=161.164 dec=80.8941 rad=12.0 tmin=361411201.0 tmax=364003201.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 35.52
user 34.60
sys 0.79

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/201899/ft1_filtered_4FGL_J1044.6+8053_monthly_bin48.fits" evtable="EVENTS" scfile=/scratch/kocevski/201899/ft2_4FGL_J1044.6+8053_monthly_bin48.fits sctable="SC_DATA" outfile=/scratch/kocevski/201899/ltcube_361411201_364003201_4FGL_J1044.6+8053_monthly_bin48.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/201899/ft2_4FGL_J1044.6+8053_monthly_bin48.fits
.....................!
real 111.19
user 110.23
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/201899/ft1_filtered_4FGL_J1044.6+8053_monthly_bin48.fits evtable="EVENTS" scfile=/scratch/kocevski/201899/ft2_4FGL_J1044.6+8053_monthly_bin48.fits sctable="SC_DATA" expcube=/scratch/kocevski/201899/ltcube_361411201_364003201_4FGL_J1044.6+8053_monthly_bin48.fits outfile=/scratch/kocevski/201899/expmap_361411201_364003201_4FGL_J1044.6+8053_monthly_bin48.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/201899/ltcube_361411201_364003201_4FGL_J1044.6+8053_monthly_bin48.fits
.....................!
real 157.34
user 151.93
sys 4.96

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/201899/ft1_filtered_4FGL_J1044.6+8053_monthly_bin48.fits scfile=/scratch/kocevski/201899/ft2_4FGL_J1044.6+8053_monthly_bin48.fits outfile=/scratch/kocevski/201899/cmap_361411201_364003201_4FGL_J1044.6+8053_monthly_bin48.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.68
user 0.50
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/201899/ft1_filtered_4FGL_J1044.6+8053_monthly_bin48.fits scfile=/scratch/kocevski/201899/ft2_4FGL_J1044.6+8053_monthly_bin48.fits outfile=/scratch/kocevski/201899/cmap_HighResolution_361411201_364003201_4FGL_J1044.6+8053_monthly_bin48.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.68
user 0.53
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .87104       1.0000         .10000E-03   10000.    
     2 'norm      '    12.875       1.0000         .10000E-03   10000.    
     3 'norm      '    2.6526       1.0000         .10000E-03   10000.    
     4 'Prefactor '    31.897       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .78325       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10367E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.2543       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.7004       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8620       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .55746       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.295       1.0000         .10000E-03   10000.    
    12 'norm      '    3.1231       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2429       1.0000         .10000E-03   10000.    
    14 'norm      '    .90005       1.0000         .10000E-03   10000.    
    15 'norm      '    .22639       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .20640E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4890       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.4140       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.3931       1.0000         .10000E-03   10000.    
    21 'norm      '    3.6736       1.0000         .10000E-03   10000.    
    22 'norm      '    1.3734       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.944       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .87461       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.4462       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .16272E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10389E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .94056       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0405       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=   96503.48     FROM MIGRAD    STATUS=CONVERGED    745 CALLS     3849 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .87268        2.8434         .0000        .12950    
   2  norm          12.878        3.8785         .0000       -.11607E-02
   3  norm          2.6518        2.6952         .0000       -.49398E-03
   4  Prefactor     31.903        9.6833         .0000        .55708E-03
   5  Prefactor     .78319        .78491         .0000        .14566E-02
   6  Prefactor     .10000E-03    2.1580         .0000    ** at limit **
   7  Prefactor     5.2537        2.3546         .0000        .22996E-02
   8  Prefactor     1.7104        3.0704         .0000        .12195    
   9  Prefactor     4.8657        2.7620         .0000        .25679E-01
  10  Prefactor     .53736        2.1649         .0000        .52632E-02
  11  Prefactor     14.264        10.386         .0000        .89219E-03
  12  norm          3.1231        1.3520         .0000        .71055E-02
  13  Prefactor     2.2437        1.1562         .0000        .68360E-02
  14  norm          .90007        .18774         .0000        .58855E-02
  15  norm          .22639        .50837         .0000        .34867E-01
  16  Prefactor     .10000E-03    .55749         .0000    ** at limit **
  17  Prefactor     .10000E-03    .39753         .0000    ** at limit **
  18  Prefactor     1.4890        .74709         .0000        .27004E-02
  19  Prefactor     4.4111        3.1549         .0000        .22564E-02
  20  Prefactor     5.3940        5.6213         .0000       -.12879E-03
  21  norm          3.6736        1.1666         .0000        .15732E-02
  22  norm          1.3737        .90612         .0000        .12059E-01
  23  Prefactor     11.966        8.2083         .0000        .25667E-02
  24  Prefactor     .87852        1.4194         .0000        .38937E-02
  25  Prefactor     3.4451        3.9830         .0000        .10649E-02
  26  Prefactor     .10000E-03    10.365         .0000    ** at limit **
  27  Prefactor     .10000E-03    3.7112         .0000    ** at limit **
  28  Normalizat    .94055        .47874E-01     .0000        .28487E-03
  29  Prefactor     1.0405        .30591E-01     .0000        .17563E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.872676
  norm       = 12.8776
  norm       = 2.65177
  Prefactor  = 31.9026
  Prefactor  = 0.783192
  Prefactor  = 0.0001
  Prefactor  = 5.25368
  Prefactor  = 1.71035
  Prefactor  = 4.86572
  Prefactor  = 0.537361
  Prefactor  = 14.2637
  norm       = 3.12309
  Prefactor  = 2.2437
  norm       = 0.900066
  norm       = 0.226388
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.48896
  Prefactor  = 4.41108
  Prefactor  = 5.39396
  norm       = 3.67363
  norm       = 1.37366
  Prefactor  = 11.9663
  Prefactor  = 0.878518
  Prefactor  = 3.44511
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.940547
  Prefactor  = 1.04054
 **********
 **   18 **HESSE 
 **********

 FCN=   96503.48     FROM HESSE     STATUS=OK           585 CALLS     4434 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .87268        2.7786        .25404E-02   -1.5521    
   2  norm          12.878        3.8783        .11163E-03   -1.4990    
   3  norm          2.6518        2.6943        .25029E-03   -1.5382    
   4  Prefactor     31.903        9.6104        .70947E-04   -1.4578    
   5  Prefactor     .78319        .62954        .26283E-02   -1.5531    
   6  Prefactor     .10000E-03    2.2029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.2537        2.3536        .17535E-03   -1.5250    
   8  Prefactor     1.7104        3.9196        .16129E-02   -1.5446    
   9  Prefactor     4.8657        2.7486        .91215E-03   -1.5267    
  10  Prefactor     .53736        19.812        .68760E-02   -1.5561    
  11  Prefactor     14.264        10.228        .10594E-03   -1.4952    
  12  norm          3.1231        1.3621        .19188E-03   -1.5355    
  13  Prefactor     2.2437        1.1473        .20185E-03   -1.5408    
  14  norm          .90007        .18155        .52201E-04   -1.5518    
  15  norm          .22639        .40584        .25110E-03   -1.5613    
  16  Prefactor     .10000E-03    .80438        .66772E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    .80541        .30360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.4890        .74336        .18496E-03   -1.5464    
  19  Prefactor     4.4111        3.0575        .19168E-03   -1.5288    
  20  Prefactor     5.3940        5.6241        .17304E-03   -1.5243    
  21  norm          3.6736        1.1670        .18351E-03   -1.5325    
  22  norm          1.3737        .87606        .21220E-03   -1.5474    
  23  Prefactor     11.966        8.2042        .11591E-03   -1.5016    
  24  Prefactor     .87852        3.3645        .44188E-02   -1.5521    
  25  Prefactor     3.4451        3.9785        .21787E-03   -1.5337    
  26  Prefactor     .10000E-03    10.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    3.7231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .94055        .53041E-01    .29201E-03   -.95050    
  29  Prefactor     1.0405        .34278E-01    .18974E-03   -.91390    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34638e-07
Minuit parameter uncertainties:
  1  2.77897
  2  3.8784
  3  2.69445
  4  9.6109
  5  0.62955
  6  4.91478e-07
  7  2.35367
  8  3.92015
  9  2.74863
  10  6.52738
  11  10.229
  12  1.36214
  13  1.14734
  14  0.181545
  15  0.405845
  16  4.22709e-06
  17  5.92666e-07
  18  0.743363
  19  3.05762
  20  5.62466
  21  1.16704
  22  0.876068
  23  8.20492
  24  3.36527
  25  3.97884
  26  9.41612e-07
  27  2.12997e-07
  28  0.0530438
  29  0.034279
Done.

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

Extracting fit parameters...

4FGL J1044.6+8053
   Spectrum: LogParabola
343         norm:  3.123e+00  1.362e+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.041e+00  3.428e-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.405e-01  5.304e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.35
Ra Dec: 161.164 80.894
Photon Index (Fixed Index): 2.82 +/- 0.00
Photon Flux (Fixed Index): 2.48e-08 +/- 1.08e-08
Energy Flux (Fixed Index): 6.10e-06 +/- 2.66e-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): 102
logL (Free Index) = 96503.1226703
delta logL = 0.357120766581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 96502.9925686
delta logL = 0.487222423268

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5127       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.6461       1.0000          .0000       5.0000    
     3 'Normalizat'    .92347       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0480       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=   96502.99     FROM MIGRAD    STATUS=FAILED        98 CALLS      271 TOTAL
                     EDM=   .28E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5118        7.7704        .11998E-03   -.40933E-04
   2  alpha         3.6465        4.2097        .28200E-01    .32752E-02
   3  Normalizat    .92348        .56907E-01    .29444E-03   -.10379E-03
   4  Prefactor     1.0480        .33591E-01    .18917E-03    .48078E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   96502.99     FROM SIMPLEX   STATUS=UNCHANGED     85 CALLS      356 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5118        7.7704        .33632E-04   -.40933E-04
   2  alpha         3.6465        4.2097        .92158E-03    .32752E-02
   3  Normalizat    .92348        .56907E-01    .99355E-04   -.10379E-03
   4  Prefactor     1.0480        .33591E-01    .56717E-04    .48078E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   96502.99     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      387 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5118        2.4578        .47993E-05   -.60641E-04
   2  alpha         3.6465        1.2221        .56399E-02    .12661E-03
   3  Normalizat    .92348        .53591E-01    .11778E-04   -.10193E-03
   4  Prefactor     1.0480        .34981E-01    .75668E-05    .48078E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.51176
  alpha      = 3.64652
  Normalizat = 0.923477
  Prefactor  = 1.04802
 **********
 **   18 **HESSE 
 **********

 FCN=   96502.99     FROM HESSE     STATUS=OK            25 CALLS      412 TOTAL
                     EDM=   .43E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5118        1.8034        .95987E-06   -1.5462    
   2  alpha         3.6465        .92020        .11280E-02    .47643    
   3  Normalizat    .92348        .52326E-01    .23555E-05   -.95640    
   4  Prefactor     1.0480        .34437E-01    .15134E-05   -.91145    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.3159e-12
Minuit parameter uncertainties:
  1  1.80347
  2  0.948778
  3  0.0523292
  4  0.0344376
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/201899': 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) = 96502.9925684
delta logL = 0.48722266953

Extracting fit parameters...

4FGL J1044.6+8053
   Spectrum: LogParabola
343         norm:  1.512e+00  1.803e+00  1.000e-04  1.000e+04 ( 1.000e-12)
344        alpha:  3.647e+00  9.488e-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:  1.048e+00  3.444e-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.235e-01  5.233e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.65
Ra Dec: 161.164 80.894
Photon Index (Free Index): 3.65 +/- 0.95
Photon Flux (Free Index): 3.72e-08 +/- 1.53e-08
Energy Flux (Free Index): 6.61e-06 +/- 2.21e-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/201899/cmap_HighResolution_361411201_364003201_4FGL_J1044.6+8053_monthly_bin48.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.48e-08', energy_flux2='6.61e-06', photon_flux_error='1.08e-08', dlogl='4.87e-01', energy_flux='6.10e-06', photon_flux2='3.72e-08', job_status='DONE', time_completed='2021-10-22 02:34:21.309745', photon_index_error2='0.95', photon_index2='3.65', ts='10.35', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='2.21e-06', EG='0.94', time_epoch_completed='1634895261.31', return_code='0', job_id='201899', GAL2='1.05', EG2='0.92', return_code2='0', energy_flux_error='2.66e-06', photon_flux_error2='1.53e-08', ts2='11.65', photon_index='2.82' WHERE bin_id='48' AND source_name='4FGL J1044.6+8053' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Fri Oct 22 02:34:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0026>
Subject: Job 201899: <4FGL_J1044.6+8053_monthly_bin48> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1044.6+8053_monthly_bin48 161.164 80.8941 361411201 364003201 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 :                                   8047.00 sec.
    Max Memory :                                 632 MB
    Average Memory :                             386.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10114 sec.
    Turnaround time :                            11041 sec.

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

