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


Performing analysis on: 4FGL_J2244.2+4057_daily_bin1041
RA = 341.061, Dec = 40.9597
tmin = 509155201, tmax = 509414401
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='458566', job_status='RUN', time_executed='2021-09-28 19:49:06.718844', time_epoch_executed='1632883746.72' WHERE source_name='4FGL J2244.2+4057' and cadence='daily' and bin_id='1041'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/458566

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/458566/ft1_4FGL_J2244.2+4057_daily_bin1041.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/458566/ft2_4FGL_J2244.2+4057_daily_bin1041.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/458566/ft1_4FGL_J2244.2+4057_daily_bin1041.fits outfile=/scratch/kocevski/458566/ft1_filteredMKT_4FGL_J2244.2+4057_daily_bin1041.fits ra=341.061 dec=40.9597 rad=12.0 tmin=509155201.0 tmax=509414401.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.43
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/458566/ft1_filtered_4FGL_J2244.2+4057_daily_bin1041.fits evtable="EVENTS" scfile=/scratch/kocevski/458566/ft2_4FGL_J2244.2+4057_daily_bin1041.fits sctable="SC_DATA" expcube=/scratch/kocevski/458566/ltcube_509155201_509414401_4FGL_J2244.2+4057_daily_bin1041.fits outfile=/scratch/kocevski/458566/expmap_509155201_509414401_4FGL_J2244.2+4057_daily_bin1041.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/458566/ltcube_509155201_509414401_4FGL_J2244.2+4057_daily_bin1041.fits
.....................!
real 190.15
user 185.29
sys 4.50

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/458566/ft1_filtered_4FGL_J2244.2+4057_daily_bin1041.fits scfile=/scratch/kocevski/458566/ft2_4FGL_J2244.2+4057_daily_bin1041.fits outfile=/scratch/kocevski/458566/cmap_509155201_509414401_4FGL_J2244.2+4057_daily_bin1041.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/458566/ft1_filtered_4FGL_J2244.2+4057_daily_bin1041.fits scfile=/scratch/kocevski/458566/ft2_4FGL_J2244.2+4057_daily_bin1041.fits outfile=/scratch/kocevski/458566/cmap_HighResolution_509155201_509414401_4FGL_J2244.2+4057_daily_bin1041.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9721       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10713E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.717       1.0000         .10000E-03   10000.    
     4 'Prefactor '    183.44       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.7838       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10258E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    10.820       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.194       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .15495E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    2.4424       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19438E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    13.126       1.0000         .10000E-03   10000.    
    15 'norm      '    .33392E-03   1.0000         .10000E-03   10000.    
    16 'Normalizat'    1.0347       1.0000         .10000E-01   10.000    
    17 'Prefactor '    .94529       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=   11615.33     FROM MIGRAD    STATUS=CONVERGED    365 CALLS     1645 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9719        .81740       -.21343E-06   -.19945E-03
   2  Prefactor     .10000E-03    7.3465       -.24998E-06** at limit **
   3  Prefactor     14.704        14.761        .65465E-05   -.27450E-04
   4  Prefactor     182.97        96.561       -.21355E-05    .30955E-05
   5  Prefactor     7.7574        6.1834       -.19758E-05   -.81849E-04
   6  Prefactor     .10000E-03    8.7269        .43523E-06** at limit **
   7  norm          10.799        4.7444        .18712E-05   -.55809E-06
   8  Prefactor     .10000E-03    9.7933       -.24624E-07** at limit **
   9  Prefactor     10.190        6.9216       -.57085E-05   -.66674E-04
  10  Prefactor     .10000E-03    41.069       -.39724E-05** at limit **
  11  norm          2.4419        1.3476       -.22791E-08   -.24761E-03
  12  Prefactor     .10002E-03    4.9683       -.13912E-06** at limit **
  13  norm          .10000E-03    2.8687        .17823E-07** at limit **
  14  norm          13.091        10.656        .35438E-05    .28457E-04
  15  norm          .10006E-03    1.0160       -.18546E-06** at limit **
  16  Normalizat    1.0349        .22272        .64055E-06   -.12466E-04
  17  Prefactor     .94530        .65263E-01   -.26008E-06    .21190E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.97193
  Prefactor  = 0.0001
  Prefactor  = 14.7037
  Prefactor  = 182.972
  Prefactor  = 7.75741
  Prefactor  = 0.0001
  norm       = 10.7992
  Prefactor  = 0.0001
  Prefactor  = 10.1903
  Prefactor  = 0.0001
  norm       = 2.44187
  Prefactor  = 0.000100019
  norm       = 0.0001
  norm       = 13.0908
  norm       = 0.000100057
  Normalizat = 1.0349
  Prefactor  = 0.945297
 **********
 **   18 **HESSE 
 **********

 FCN=   11615.33     FROM HESSE     STATUS=OK           233 CALLS     1878 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9719        .81703        .47710E-04   -1.5363    
   2  Prefactor     .10000E-03    7.3523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.704        14.723        .10441E-03   -1.4941    
   4  Prefactor     182.97        96.557        .29809E-04   -1.2994    
   5  Prefactor     7.7574        6.1880        .14373E-03   -1.5151    
   6  Prefactor     .10000E-03    8.7455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          10.799        4.7475        .12180E-03   -1.5051    
   8  Prefactor     .10000E-03    9.8170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.190        6.9297        .12550E-03   -1.5069    
  10  Prefactor     .10000E-03    41.572        .20445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.4419        1.3452        .89414E-04   -1.5395    
  12  Prefactor     .10002E-03    25.341        .45800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.8920        .17825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          13.091        10.648        .11056E-03   -1.4984    
  15  norm          .10006E-03    1.4428        .40828E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Normalizat    1.0349        .23869        .46941E-03   -.91870    
  17  Prefactor     .94530        .71184E-01    .14642E-03   -.94576    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.56443e-10
Minuit parameter uncertainties:
  1  0.817032
  2  6.36506e-05
  3  14.7263
  4  96.6408
  5  6.18848
  6  1.50704e-07
  7  4.74771
  8  3.97175e-05
  9  6.93025
  10  0.000111145
  11  1.34526
  12  0.00140577
  13  3.42707e-07
  14  10.6492
  15  0.000572607
  16  0.238937
  17  0.0711906
Done.

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

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  1.080e+01  4.748e+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.453e-01  7.119e-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.035e+00  2.389e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.73
Ra Dec: 341.061 40.960
Photon Index (Fixed Index): 2.03 +/- 0.00
Photon Flux (Fixed Index): 9.20e-08 +/- 4.04e-08
Energy Flux (Fixed Index): 5.32e-05 +/- 2.34e-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) = 11615.2936561
delta logL = 0.0348790065182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11615.2905943
delta logL = 0.0379407839446

Fit tolerance = 1e-08

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

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

 FCN=   11615.29     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      242 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.132        4.7322        .12008E-03   -.19145E-02
   2  alpha         1.9306        .34497        .12310E-01   -.25704E-03
   3  Normalizat    1.0411        .23446        .46826E-03   -.32528E-03
   4  Prefactor     .94463        .70548E-01    .14648E-03    .38599E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 11.1316
  alpha      = 1.9306
  Normalizat = 1.04108
  Prefactor  = 0.944632
 **********
 **   18 **HESSE 
 **********

 FCN=   11615.29     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.132        4.7060        .24016E-04   -1.5041    
   2  alpha         1.9306        .34298        .49238E-03   -.22978    
   3  Normalizat    1.0411        .23450        .18730E-04   -.91667    
   4  Prefactor     .94463        .70572E-01    .29295E-04   -.94599    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61343e-09
Minuit parameter uncertainties:
  1  4.70612
  2  0.344129
  3  0.234734
  4  0.0705784
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/458566': 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) = 11615.2905943
delta logL = 0.0379408287845

Extracting fit parameters...

4FGL J2244.2+4057
   Spectrum: LogParabola
387         norm:  1.113e+01  4.706e+00  1.000e-04  1.000e+04 ( 1.000e-12)
388        alpha:  1.931e+00  3.441e-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.446e-01  7.058e-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.041e+00  2.347e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.87
Ra Dec: 341.061 40.960
Photon Index (Free Index): 1.93 +/- 0.34
Photon Flux (Free Index): 8.44e-08 +/- 4.45e-08
Energy Flux (Free Index): 5.79e-05 +/- 3.03e-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/458566/cmap_HighResolution_509155201_509414401_4FGL_J2244.2+4057_daily_bin1041.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.20e-08', energy_flux2='5.79e-05', photon_flux_error='4.04e-08', dlogl='3.79e-02', energy_flux='5.32e-05', photon_flux2='8.44e-08', job_status='DONE', time_completed='2021-09-28 20:01:45.920174', photon_index_error2='0.34', photon_index2='1.93', ts='17.73', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='3.03e-05', EG='1.03', time_epoch_completed='1632884505.92', return_code='0', job_id='458566', GAL2='0.94', EG2='1.04', return_code2='0', energy_flux_error='2.34e-05', photon_flux_error2='4.45e-08', ts2='17.87', photon_index='2.03' WHERE bin_id='1041' AND source_name='4FGL J2244.2+4057' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 20:01:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0076>
Subject: Job 458566: <4FGL_J2244.2+4057_daily_bin1041> in cluster <slac> Done

Job <4FGL_J2244.2+4057_daily_bin1041> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 19:45:43 2021
Job was executed on host(s) <bullet0076>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 19:45:45 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:45:45 2021
Terminated at Tue Sep 28 20:01:46 2021
Results reported at Tue Sep 28 20:01:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2244.2+4057_daily_bin1041 341.061 40.9597 509155201 509414401 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 :                                   758.31 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            963 sec.

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

