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


Performing analysis on: 4FGL_J2244.2+4057_daily_bin1076
RA = 341.061, Dec = 40.9597
tmin = 518227201, tmax = 518486401
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='459622', job_status='RUN', time_executed='2021-09-28 19:53:57.843987', time_epoch_executed='1632884037.84' WHERE source_name='4FGL J2244.2+4057' and cadence='daily' and bin_id='1076'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/459622

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/459622/ft1_4FGL_J2244.2+4057_daily_bin1076.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/459622/ft2_4FGL_J2244.2+4057_daily_bin1076.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/459622/ft1_4FGL_J2244.2+4057_daily_bin1076.fits outfile=/scratch/kocevski/459622/ft1_filteredMKT_4FGL_J2244.2+4057_daily_bin1076.fits ra=341.061 dec=40.9597 rad=12.0 tmin=518227201.0 tmax=518486401.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 3.63
user 3.39
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/459622/ft1_filtered_4FGL_J2244.2+4057_daily_bin1076.fits" evtable="EVENTS" scfile=/scratch/kocevski/459622/ft2_4FGL_J2244.2+4057_daily_bin1076.fits sctable="SC_DATA" outfile=/scratch/kocevski/459622/ltcube_518227201_518486401_4FGL_J2244.2+4057_daily_bin1076.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/459622/ft2_4FGL_J2244.2+4057_daily_bin1076.fits
.....................!
real 15.58
user 15.20
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/459622/ft1_filtered_4FGL_J2244.2+4057_daily_bin1076.fits evtable="EVENTS" scfile=/scratch/kocevski/459622/ft2_4FGL_J2244.2+4057_daily_bin1076.fits sctable="SC_DATA" expcube=/scratch/kocevski/459622/ltcube_518227201_518486401_4FGL_J2244.2+4057_daily_bin1076.fits outfile=/scratch/kocevski/459622/expmap_518227201_518486401_4FGL_J2244.2+4057_daily_bin1076.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/459622/ltcube_518227201_518486401_4FGL_J2244.2+4057_daily_bin1076.fits
.....................!
real 190.59
user 185.06
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
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/459622/ft1_filtered_4FGL_J2244.2+4057_daily_bin1076.fits scfile=/scratch/kocevski/459622/ft2_4FGL_J2244.2+4057_daily_bin1076.fits outfile=/scratch/kocevski/459622/cmap_518227201_518486401_4FGL_J2244.2+4057_daily_bin1076.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/459622/ft1_filtered_4FGL_J2244.2+4057_daily_bin1076.fits scfile=/scratch/kocevski/459622/ft2_4FGL_J2244.2+4057_daily_bin1076.fits outfile=/scratch/kocevski/459622/cmap_HighResolution_518227201_518486401_4FGL_J2244.2+4057_daily_bin1076.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.58
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/459622/ft1_filtered_4FGL_J2244.2+4057_daily_bin1076.fits evtable="EVENTS" scfile=/scratch/kocevski/459622/ft2_4FGL_J2244.2+4057_daily_bin1076.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/459622/Model_4FGL_J2244.2+4057_daily_bin1076.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/459622/ft1_filtered_4FGL_J2244.2+4057_daily_bin1076.fits.....................!
real 152.26
user 150.67
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/459622/ft1_filtered_4FGL_J2244.2+4057_daily_bin1076.fits', '/scratch/kocevski/459622/ft2_4FGL_J2244.2+4057_daily_bin1076.fits', expMap='/scratch/kocevski/459622/expmap_518227201_518486401_4FGL_J2244.2+4057_daily_bin1076.fits', expCube='/scratch/kocevski/459622/ltcube_518227201_518486401_4FGL_J2244.2+4057_daily_bin1076.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/459622/Model_4FGL_J2244.2+4057_daily_bin1076.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/459622/ft1_filtered_4FGL_J2244.2+4057_daily_bin1076.fits
Spacecraft file(s): /scratch/kocevski/459622/ft2_4FGL_J2244.2+4057_daily_bin1076.fits
Exposure map: /scratch/kocevski/459622/expmap_518227201_518486401_4FGL_J2244.2+4057_daily_bin1076.fits
Exposure cube: /scratch/kocevski/459622/ltcube_518227201_518486401_4FGL_J2244.2+4057_daily_bin1076.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/459622/Model_4FGL_J2244.2+4057_daily_bin1076.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) = 12842.6636723

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.9753       1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.485       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.2619       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    15.468       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.5585       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.9401       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.040       1.0000         .10000E-03   10000.    
    13 'norm      '    13.049       1.0000         .10000E-03   10000.    
    14 'norm      '    .16386E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0369       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .99879       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.

 FCN=   12842.61     FROM MIGRAD    STATUS=CONVERGED    319 CALLS     1355 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.9754        1.1781        .35494E-02   -.25595E-03
   2  Prefactor     24.486        18.122        .20238E-02   -.11608E-02
   3  Prefactor     .10000E-03    8.7857        .90712E-02** at limit **
   4  Prefactor     .10004E-03    20.691        .90712E-02** at limit **
   5  Prefactor     5.2618        9.1985        .43806E-02    .27394E-03
   6  Prefactor     .10011E-03    25.026        .90712E-02** at limit **
   7  norm          15.469        6.3993        .25459E-02    .15428E-03
   8  Prefactor     .10006E-03    28.238        .90712E-02** at limit **
   9  Prefactor     9.5594        6.7202        .32405E-02    .18368E-03
  10  Prefactor     .10000E-03    11.926        .90712E-02** at limit **
  11  norm          5.9403        1.9306        .41190E-02    .19799E-03
  12  Prefactor     12.040        11.919        .28862E-02    .14319E-02
  13  norm          13.050        6.9569        .27721E-02    .52626E-04
  14  norm          .10001E-03    4.5269        .90712E-01** at limit **
  15  norm          .10000E-03    1.0408        .90712E-02** at limit **
  16  Normalizat    1.0368        .23648        .11438        .50929E-04
  17  Prefactor     .99882        .68047E-01    .35059E-01   -.15364E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.97539
  Prefactor  = 24.4865
  Prefactor  = 0.0001
  Prefactor  = 0.000100043
  Prefactor  = 5.26177
  Prefactor  = 0.00010011
  norm       = 15.4687
  Prefactor  = 0.000100063
  Prefactor  = 9.55938
  Prefactor  = 0.0001
  norm       = 5.94031
  Prefactor  = 12.0404
  norm       = 13.0497
  norm       = 0.000100011
  norm       = 0.0001
  Normalizat = 1.03678
  Prefactor  = 0.998819
 **********
 **   18 **HESSE 
 **********

 FCN=   12842.61     FROM HESSE     STATUS=OK           225 CALLS     1580 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.9754        1.1792        .44731E-04   -1.5143    
   2  Prefactor     24.486        18.123        .80952E-04   -1.4718    
   3  Prefactor     .10000E-03    8.8190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10004E-03    20.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.2618        9.1367        .17522E-03   -1.5249    
   6  Prefactor     .10011E-03    25.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          15.469        6.3681        .10184E-03   -1.4921    
   8  Prefactor     .10006E-03    28.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.5594        6.7130        .12962E-03   -1.5090    
  10  Prefactor     .10000E-03    11.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.9403        1.9340        .84879E-04   -1.5220    
  12  Prefactor     12.040        11.953        .57724E-03   -1.5014    
  13  norm          13.050        6.9586        .11088E-03   -1.4985    
  14  norm          .10001E-03    21.450        .46940E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    1.0542        .11282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0368        .25680        .50720E-03   -.91808    
  17  Prefactor     .99882        .74341E-01    .15492E-03   -.92769    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09224e-08
Minuit parameter uncertainties:
  1  1.17919
  2  18.1268
  3  3.40917e-05
  4  0.00187836
  5  9.1391
  6  0.00333483
  7  6.3684
  8  0.00267796
  9  6.71355
  10  5.89595e-05
  11  1.93397
  12  11.9553
  13  6.95902
  14  0.000956499
  15  2.85039e-06
  16  0.257108
  17  0.0743484
Done.

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

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  1.547e+01  6.368e+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

GAL_V02
   Spectrum: PowerLaw
595    Prefactor:  9.988e-01  7.435e-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.037e+00  2.571e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 27.15
Ra Dec: 341.061 40.960
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 1.32e-07 +/- 5.42e-08
Energy Flux (Fixed Index): 7.62e-05 +/- 3.14e-05

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) = 12842.4094625
delta logL = 0.203061659196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 12842.4067843
delta logL = 0.205739894218

Fit tolerance = 1e-08

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

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

 FCN=   12842.41     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      238 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.167        96.451        .24903E-02   -.81139E-03
   2  alpha         1.8408        3.3955        .29258        .68130E-05
   3  Normalizat    1.0552        .48802        .11354        .34337E-03
   4  Prefactor     .99683        .10221        .35097E-01    .55771E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 16.1669
  alpha      = 1.84084
  Normalizat = 1.0552
  Prefactor  = 0.996833
 **********
 **   18 **HESSE 
 **********

 FCN=   12842.41     FROM HESSE     STATUS=OK            31 CALLS      269 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.167        5.5664        .99611E-04   -1.4904    
   2  alpha         1.8408        .28613        .11339E-01   -.26682    
   3  Normalizat    1.0552        .24200        .50349E-03   -.91203    
   4  Prefactor     .99683        .72947E-01    .15509E-03   -.92835    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.52961e-10
Minuit parameter uncertainties:
  1  5.56656
  2  0.286806
  3  0.24225
  4  0.0729539
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/459622': 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) = 12842.4067843
delta logL = 0.205739899513

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  1.617e+01  5.567e+00  1.000e-04  1.000e+04 ( 1.000e-12)
388        alpha:  1.841e+00  2.868e-01  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.968e-01  7.295e-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.055e+00  2.422e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.66
Ra Dec: 341.061 40.960
Photon Index (Free Index): 1.84 +/- 0.29
Photon Flux (Free Index): 1.11e-07 +/- 4.95e-08
Energy Flux (Free Index): 9.05e-05 +/- 4.12e-05

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/459622/cmap_HighResolution_518227201_518486401_4FGL_J2244.2+4057_daily_bin1076.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.32e-07', energy_flux2='9.05e-05', photon_flux_error='5.42e-08', dlogl='2.06e-01', energy_flux='7.62e-05', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-09-28 20:06:51.197153', photon_index_error2='0.29', photon_index2='1.84', ts='27.15', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='4.12e-05', EG='1.04', time_epoch_completed='1632884811.2', return_code='0', job_id='459622', GAL2='1.00', EG2='1.06', return_code2='0', energy_flux_error='3.14e-05', photon_flux_error2='4.95e-08', ts2='27.66', photon_index='2.03' WHERE bin_id='1076' AND source_name='4FGL J2244.2+4057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:06:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 459622: <4FGL_J2244.2+4057_daily_bin1076> in cluster <slac> Done

Job <4FGL_J2244.2+4057_daily_bin1076> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep 28 19:50:13 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:50:14 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:50:14 2021
Terminated at Tue Sep 28 20:06:51 2021
Results reported at Tue Sep 28 20:06:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2244.2+4057_daily_bin1076 341.061 40.9597 518227201 518486401 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 :                                   766.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   997 sec.
    Turnaround time :                            998 sec.

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

