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


Performing analysis on: 4FGL_J2244.2+4057_daily_bin594
RA = 341.061, Dec = 40.9597
tmin = 393292801, tmax = 393552001
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='456866', job_status='RUN', time_executed='2021-09-28 19:40:49.312752', time_epoch_executed='1632883249.31' WHERE source_name='4FGL J2244.2+4057' and cadence='daily' and bin_id='594'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/456866

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/456866/ft1_4FGL_J2244.2+4057_daily_bin594.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/456866/ft2_4FGL_J2244.2+4057_daily_bin594.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/456866/ft1_4FGL_J2244.2+4057_daily_bin594.fits outfile=/scratch/kocevski/456866/ft1_filteredMKT_4FGL_J2244.2+4057_daily_bin594.fits ra=341.061 dec=40.9597 rad=12.0 tmin=393292801.0 tmax=393552001.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 4.71
user 4.40
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/456866/ft2_4FGL_J2244.2+4057_daily_bin594.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/456866/ft2_4FGL_J2244.2+4057_daily_bin594.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/456866/ft1_filteredMKT_4FGL_J2244.2+4057_daily_bin594.fits evtable="EVENTS" outfile="/scratch/kocevski/456866/ft1_filtered_4FGL_J2244.2+4057_daily_bin594.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.54
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/456866/ft1_filtered_4FGL_J2244.2+4057_daily_bin594.fits" evtable="EVENTS" scfile=/scratch/kocevski/456866/ft2_4FGL_J2244.2+4057_daily_bin594.fits sctable="SC_DATA" outfile=/scratch/kocevski/456866/ltcube_393292801_393552001_4FGL_J2244.2+4057_daily_bin594.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/456866/ft2_4FGL_J2244.2+4057_daily_bin594.fits
.....................!
real 11.72
user 11.38
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/456866/ft1_filtered_4FGL_J2244.2+4057_daily_bin594.fits evtable="EVENTS" scfile=/scratch/kocevski/456866/ft2_4FGL_J2244.2+4057_daily_bin594.fits sctable="SC_DATA" expcube=/scratch/kocevski/456866/ltcube_393292801_393552001_4FGL_J2244.2+4057_daily_bin594.fits outfile=/scratch/kocevski/456866/expmap_393292801_393552001_4FGL_J2244.2+4057_daily_bin594.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/456866/ltcube_393292801_393552001_4FGL_J2244.2+4057_daily_bin594.fits
.....................!
real 190.98
user 185.96
sys 4.70

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source FHES J2304.0+5406 in ROI with RadialGaussian spatial model.
Extended source FHES J2129.9+5833 in ROI with RadialGaussian spatial model.
Extended source CTB 109 in ROI with RadialDisk spatial model.
Added 174 point sources and 3 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J2244.2+4057 @ 341.061 40.9597

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/456866/ft1_filtered_4FGL_J2244.2+4057_daily_bin594.fits scfile=/scratch/kocevski/456866/ft2_4FGL_J2244.2+4057_daily_bin594.fits outfile=/scratch/kocevski/456866/cmap_393292801_393552001_4FGL_J2244.2+4057_daily_bin594.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=341.061 yref=40.9597 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/456866/ft1_filtered_4FGL_J2244.2+4057_daily_bin594.fits scfile=/scratch/kocevski/456866/ft2_4FGL_J2244.2+4057_daily_bin594.fits outfile=/scratch/kocevski/456866/cmap_HighResolution_393292801_393552001_4FGL_J2244.2+4057_daily_bin594.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=341.061 yref=40.9597 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/456866/ft1_filtered_4FGL_J2244.2+4057_daily_bin594.fits evtable="EVENTS" scfile=/scratch/kocevski/456866/ft2_4FGL_J2244.2+4057_daily_bin594.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/456866/Model_4FGL_J2244.2+4057_daily_bin594.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 CTB 109
adding source EG_v02
adding source FHES J2129.9+5833
adding source FHES J2304.0+5406
adding source GAL_V02
Working on...
/scratch/kocevski/456866/ft1_filtered_4FGL_J2244.2+4057_daily_bin594.fits.....................!
real 165.92
user 164.40
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/456866/ft1_filtered_4FGL_J2244.2+4057_daily_bin594.fits', '/scratch/kocevski/456866/ft2_4FGL_J2244.2+4057_daily_bin594.fits', expMap='/scratch/kocevski/456866/expmap_393292801_393552001_4FGL_J2244.2+4057_daily_bin594.fits', expCube='/scratch/kocevski/456866/ltcube_393292801_393552001_4FGL_J2244.2+4057_daily_bin594.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/456866/Model_4FGL_J2244.2+4057_daily_bin594.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2244.2+4057'

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  8.060e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
388        alpha:  2.026e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
389         beta:  9.648e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
390           Eb:  1.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/456866/ft1_filtered_4FGL_J2244.2+4057_daily_bin594.fits
Spacecraft file(s): /scratch/kocevski/456866/ft2_4FGL_J2244.2+4057_daily_bin594.fits
Exposure map: /scratch/kocevski/456866/expmap_393292801_393552001_4FGL_J2244.2+4057_daily_bin594.fits
Exposure cube: /scratch/kocevski/456866/ltcube_393292801_393552001_4FGL_J2244.2+4057_daily_bin594.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/456866/Model_4FGL_J2244.2+4057_daily_bin594.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) = 13604.1638841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.2091       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10319E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.5988       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11096E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10246E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .11668E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .77033E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.953       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7549       1.0000         .10000E-03   10000.    
    11 'norm      '    .10140E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4066       1.0000         .10000E-03   10000.    
    13 'norm      '    34.367       1.0000         .10000E-03   10000.    
    14 'norm      '    .10232E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.3954       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .90046       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5980E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   13604.03     FROM MIGRAD    STATUS=CONVERGED    348 CALLS     1419 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.2092        .86640       -.73291E-07   -.37759E-03
   2  Prefactor     .10000E-03    8.7245        .16724E-06** at limit **
   3  Prefactor     9.5876        9.3688        .13539E-05   -.30390E-03
   4  Prefactor     .10000E-03    22.713       -.19368E-05** at limit **
   5  Prefactor     .10007E-03    2.1102        .84391E-07** at limit **
   6  Prefactor     .10001E-03    29.901        .99888E-05** at limit **
   7  norm          .10000E-03    2.0414        .15121E-05** at limit **
   8  Prefactor     .10001E-03    51.766       -.63049E-05** at limit **
   9  Prefactor     10.952        6.6937       -.40978E-05    .82982E-03
  10  Prefactor     2.7647        44.391        .11039E-04   -.12601E-03
  11  norm          .10000E-03    .45707       -.75148E-07** at limit **
  12  Prefactor     1.3993        7.1192       -.75173E-05   -.35474E-03
  13  norm          34.365        9.5641        .50285E-07    .51843E-07
  14  norm          .10000E-03    3.8941        .45598E-07** at limit **
  15  norm          .10000E-03    .55729        .18572E-07** at limit **
  16  Normalizat    1.3954        .21265        .11655E-05   -.16032E-03
  17  Prefactor     .90045        .60184E-01    .35482E-07   -.30470E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.2092
  Prefactor  = 0.0001
  Prefactor  = 9.58761
  Prefactor  = 0.0001
  Prefactor  = 0.000100066
  Prefactor  = 0.000100008
  norm       = 0.000100004
  Prefactor  = 0.000100012
  Prefactor  = 10.9515
  Prefactor  = 2.76472
  norm       = 0.0001
  Prefactor  = 1.39934
  norm       = 34.3649
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.39537
  Prefactor  = 0.90045
 **********
 **   18 **HESSE 
 **********

 FCN=   13604.03     FROM HESSE     STATUS=OK           225 CALLS     1644 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.2092        .86620        .53084E-04   -1.5350    
   2  Prefactor     .10000E-03    8.7433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.5876        9.3459        .12935E-03   -1.5089    
   4  Prefactor     .10000E-03    22.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10007E-03    22.997        .31118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    29.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.6503        .30260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    53.420        .37083E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.952        6.5460        .12106E-03   -1.5046    
  10  Prefactor     2.7647        43.649        .24525E-03   -1.5375    
  11  norm          .10000E-03    4.3376        .15079E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.3993        7.9487        .36550E-03   -1.5471    
  13  norm          34.365        9.5352        .68357E-04   -1.4535    
  14  norm          .10000E-03    3.9090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .55921        .85021E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.3954        .23421        .43346E-03   -.80763    
  17  Prefactor     .90045        .67249E-01    .15113E-03   -.96125    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.8992e-09
Minuit parameter uncertainties:
  1  0.866203
  2  3.59418e-05
  3  9.34734
  4  0.000155148
  5  0.00246064
  6  0.000974615
  7  0.00031558
  8  0.00157593
  9  6.54641
  10  21.9893
  11  1.85917e-05
  12  6.67131
  13  9.53559
  14  1.71662e-06
  15  2.029e-06
  16  0.234394
  17  0.0672548
Done.

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

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  1.000e-04  3.156e-04  1.000e-04  1.000e+04 ( 1.000e-12)
388        alpha:  2.026e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
389         beta:  9.648e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
390           Eb:  1.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  9.005e-01  6.725e-02  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
587   Normalization:  1.395e+00  2.344e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 341.061 40.960
Photon Flux Upper Limit: 6.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.83e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/456866/likelihoodResults_393292801_393552001_4FGL_J2244.2+4057_daily_bin594.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) = 13604.0343171
delta logL = -0.000839784588607

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 13604.033476
delta logL = 1.26755185192e-06

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   13604.01     FROM MIGRAD    STATUS=FAILED       143 CALLS      314 TOTAL
                     EDM=   .86E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .29530        2.6338        .20358E-02   -.61326E-03
   2  alpha         2.8447        1.9718        .60861E-01    .33043E-03
   3  Normalizat    1.3891        .23155        .43424E-03    .68070E-05
   4  Prefactor     .90062        .66622E-01    .15111E-03   -.34064E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   13604.01     FROM SIMPLEX   STATUS=UNCHANGED     72 CALLS      386 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .29530        2.6338        .15160E-03   -1.5817    
   2  alpha         2.8447        1.9718        .32021E-02    .13831    
   3  Normalizat    1.3891        .23155        .18298E-03   -.80944    
   4  Prefactor     .90062        .66622E-01    .99641E-04   -.96119    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   13604.01     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      426 TOTAL
                     EDM=   .18E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .29529        2.5581        .81433E-04    .10889E-04
   2  alpha         2.8447        1.9519        .12172E-01    .79015E-06
   3  Normalizat    1.3891        .23173        .17370E-04   -.99487E-05
   4  Prefactor     .90062        .66635E-01    .30221E-04   -.63198E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.295286
  alpha      = 2.84469
  Normalizat = 1.38911
  Prefactor  = 0.900621
 **********
 **   18 **HESSE 
 **********

 FCN=   13604.01     FROM HESSE     STATUS=OK            25 CALLS      451 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .29529        2.3581        .32573E-05   -1.5817    
   2  alpha         2.8447        1.8950        .48689E-03    .13832    
   3  Normalizat    1.3891        .23171        .34739E-05   -.80944    
   4  Prefactor     .90062        .66619E-01    .60443E-05   -.96119    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1134e-12
Minuit parameter uncertainties:
  1  1.6687
  2  2.15794
  3  0.231885
  4  0.0666247
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/456866': 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) = 13604.0106449
delta logL = 0.0228324275886

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  2.953e-01  1.669e+00  1.000e-04  1.000e+04 ( 1.000e-12)
388        alpha:  2.845e+00  2.158e+00  0.000e+00  5.000e+00 ( 1.000e+00)
389         beta:  9.648e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
390           Eb:  1.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  9.006e-01  6.662e-02  0.000e+00  1.000e+01 ( 1.000e+00)
596        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
597        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
587   Normalization:  1.389e+00  2.319e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 341.061 40.960

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/456866/cmap_HighResolution_393292801_393552001_4FGL_J2244.2+4057_daily_bin594.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.83e-05', job_status='DONE', photon_flux_upper_limit='6.63e-08', time_completed='2021-09-28 19:56:28.315659', job_id='456866', GAL2='0.90', fit_tolerance='1e-08', EG2='1.39', EG='1.40', time_epoch_completed='1632884188.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='2.28e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.03' WHERE bin_id='594' AND source_name='4FGL J2244.2+4057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 19:56:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 456866: <4FGL_J2244.2+4057_daily_bin594> in cluster <slac> Done

Job <4FGL_J2244.2+4057_daily_bin594> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 19:40:33 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:40:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 19:40:33 2021
Terminated at Tue Sep 28 19:56:29 2021
Results reported at Tue Sep 28 19:56:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2244.2+4057_daily_bin594 341.061 40.9597 393292801 393552001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2244.2+4057 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   936.33 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             338.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            956 sec.

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

