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


Performing analysis on: 4FGL_J2243.4-2544_daily_bin1273
RA = 340.865, Dec = -25.7363
tmin = 569289601, tmax = 569548801
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='438188', job_status='RUN', time_executed='2021-09-28 18:42:18.605425', time_epoch_executed='1632879738.61' WHERE source_name='4FGL J2243.4-2544' and cadence='daily' and bin_id='1273'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/438188

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/438188/ft1_4FGL_J2243.4-2544_daily_bin1273.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/438188/ft2_4FGL_J2243.4-2544_daily_bin1273.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/438188/ft1_4FGL_J2243.4-2544_daily_bin1273.fits outfile=/scratch/kocevski/438188/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1273.fits ra=340.865 dec=-25.7363 rad=12.0 tmin=569289601.0 tmax=569548801.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.61
user 3.40
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/438188/ft2_4FGL_J2243.4-2544_daily_bin1273.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/438188/ft2_4FGL_J2243.4-2544_daily_bin1273.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/438188/ft1_filteredMKT_4FGL_J2243.4-2544_daily_bin1273.fits evtable="EVENTS" outfile="/scratch/kocevski/438188/ft1_filtered_4FGL_J2243.4-2544_daily_bin1273.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/438188/ft1_filtered_4FGL_J2243.4-2544_daily_bin1273.fits" evtable="EVENTS" scfile=/scratch/kocevski/438188/ft2_4FGL_J2243.4-2544_daily_bin1273.fits sctable="SC_DATA" outfile=/scratch/kocevski/438188/ltcube_569289601_569548801_4FGL_J2243.4-2544_daily_bin1273.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/438188/ft2_4FGL_J2243.4-2544_daily_bin1273.fits
.....................!
real 12.16
user 11.81
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/438188/ft1_filtered_4FGL_J2243.4-2544_daily_bin1273.fits evtable="EVENTS" scfile=/scratch/kocevski/438188/ft2_4FGL_J2243.4-2544_daily_bin1273.fits sctable="SC_DATA" expcube=/scratch/kocevski/438188/ltcube_569289601_569548801_4FGL_J2243.4-2544_daily_bin1273.fits outfile=/scratch/kocevski/438188/expmap_569289601_569548801_4FGL_J2243.4-2544_daily_bin1273.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/438188/ltcube_569289601_569548801_4FGL_J2243.4-2544_daily_bin1273.fits
.....................!
real 190.03
user 185.00
sys 4.58

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 161 point sources and 0 extended sources

Setting source of interest to:
4FGL J2243.4-2544 @ 340.865 -25.7363

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/438188/ft1_filtered_4FGL_J2243.4-2544_daily_bin1273.fits scfile=/scratch/kocevski/438188/ft2_4FGL_J2243.4-2544_daily_bin1273.fits outfile=/scratch/kocevski/438188/cmap_569289601_569548801_4FGL_J2243.4-2544_daily_bin1273.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=340.865 yref=-25.7363 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.52
user 0.39
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/438188/ft1_filtered_4FGL_J2243.4-2544_daily_bin1273.fits scfile=/scratch/kocevski/438188/ft2_4FGL_J2243.4-2544_daily_bin1273.fits outfile=/scratch/kocevski/438188/cmap_HighResolution_569289601_569548801_4FGL_J2243.4-2544_daily_bin1273.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=340.865 yref=-25.7363 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.53
user 0.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/438188/ft1_filtered_4FGL_J2243.4-2544_daily_bin1273.fits evtable="EVENTS" scfile=/scratch/kocevski/438188/ft2_4FGL_J2243.4-2544_daily_bin1273.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/438188/Model_4FGL_J2243.4-2544_daily_bin1273.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/438188/ft1_filtered_4FGL_J2243.4-2544_daily_bin1273.fits.....................!
real 38.81
user 37.34
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/438188/ft1_filtered_4FGL_J2243.4-2544_daily_bin1273.fits', '/scratch/kocevski/438188/ft2_4FGL_J2243.4-2544_daily_bin1273.fits', expMap='/scratch/kocevski/438188/expmap_569289601_569548801_4FGL_J2243.4-2544_daily_bin1273.fits', expCube='/scratch/kocevski/438188/ltcube_569289601_569548801_4FGL_J2243.4-2544_daily_bin1273.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/438188/Model_4FGL_J2243.4-2544_daily_bin1273.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2243.4-2544'

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.477e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.999e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
254         beta:  1.309e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
255           Eb:  1.191e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/438188/ft1_filtered_4FGL_J2243.4-2544_daily_bin1273.fits
Spacecraft file(s): /scratch/kocevski/438188/ft2_4FGL_J2243.4-2544_daily_bin1273.fits
Exposure map: /scratch/kocevski/438188/expmap_569289601_569548801_4FGL_J2243.4-2544_daily_bin1273.fits
Exposure cube: /scratch/kocevski/438188/ltcube_569289601_569548801_4FGL_J2243.4-2544_daily_bin1273.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/438188/Model_4FGL_J2243.4-2544_daily_bin1273.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) = 4276.9366746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10494E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.5691       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11966E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.426       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.598       1.0000         .10000E-03   10000.    
    11 'norm      '    .76592       1.0000         .10000E-03   10000.    
    12 'norm      '    .12613E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .21138E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .30113       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.7922       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.6089       1.0000         .10000E-03   10000.    
    18 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.240       1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.1108       1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .84213       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0770       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+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=   4276.880     FROM MIGRAD    STATUS=CONVERGED   1090 CALLS     3484 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.692        .18142E-02** at limit **
   2  Prefactor     .10001E-03    125.09        .18142E-02** at limit **
   3  norm          1.5691        .49916        .25253E-04   -.31244E-03
   4  Prefactor     .10002E-03    99.228        .44641E-02** at limit **
   5  Prefactor     21.425        19.705        .86532E-04   -.77515E-05
   6  Prefactor     .10000E-03    11.059        .18142E-02** at limit **
   7  Prefactor     .10000E-03    16.858        .18142E-02** at limit **
   8  norm          .10000E-03    30.080        .18142E-02** at limit **
   9  Prefactor     .10000E-03    66.134        .18142E-02** at limit **
  10  Prefactor     12.608        18.515        .11286E-03    .75451E-04
  11  norm          .76593        .68276        .48170E-03   -.46185E-03
  12  norm          .10000E-03    6.6648        .19944E-02** at limit **
  13  Prefactor     .10015E-03    61.155        .13398    ** at limit **
  14  Prefactor     .10000E-03    15.388        .18142E-02** at limit **
  15  norm          .29568        9.9767        .24023E-02    .28911E-03
  16  Prefactor     2.8094        31.312        .24349E-03   -.13027E-04
  17  Prefactor     1.6002        28.353        .16700E-02   -.18326E-03
  18  norm          .10000E-03    .46714        .70239E-03** at limit **
  19  Prefactor     .10000E-03    53.420        .18142E-02** at limit **
  20  Prefactor     14.239        16.616        .10614E-03    .32132E-06
  21  Prefactor     5.1170        14.403        .17784E-03   -.90007E-04
  22  norm          .10000E-03    2.9483        .21630E-03** at limit **
  23  Prefactor     .10000E-03    25.861        .18142E-02** at limit **
  24  Normalizat    .84227        .27433        .26880E-03    .69911E-04
  25  Prefactor     1.0769        .24821        .22179E-03    .10398E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  norm       = 1.56909
  Prefactor  = 0.000100023
  Prefactor  = 21.4254
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 12.6084
  norm       = 0.765925
  norm       = 0.000100005
  Prefactor  = 0.00010015
  Prefactor  = 0.0001
  norm       = 0.295679
  Prefactor  = 2.80943
  Prefactor  = 1.60018
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 14.2394
  Prefactor  = 5.11699
  norm       = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.842265
  Prefactor  = 1.07686
 **********
 **   18 **HESSE 
 **********

 FCN=   4276.880     FROM HESSE     STATUS=OK           417 CALLS     3901 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.692        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    125.11        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.5691        .49916        .10101E-05   -1.5457    
   4  Prefactor     .10002E-03    101.13        .89283E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.425        19.704        .34613E-05   -1.4782    
   6  Prefactor     .10000E-03    11.063        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.858        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    30.091        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    66.175        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.608        18.514        .45143E-05   -1.4998    
  11  norm          .76593        .68278        .96339E-04   -1.5533    
  12  norm          .10000E-03    6.7027        .39888E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10015E-03    61.165        .13361       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.394        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .29568        9.6372        .96091E-04   -1.5599    
  16  Prefactor     2.8094        30.034        .97396E-05   -1.5373    
  17  Prefactor     1.6002        25.624        .66799E-04   -1.5455    
  18  norm          .10000E-03    .46715        .14048E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    53.422        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.239        16.617        .42457E-05   -1.4953    
  21  Prefactor     5.1170        14.064        .71137E-05   -1.5256    
  22  norm          .10000E-03    2.9483        .43260E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    25.863        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .84227        .27396        .10752E-04   -.98520    
  25  Prefactor     1.0769        .24804        .44359E-04   -.90210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75772e-09
Minuit parameter uncertainties:
  1  0.000119035
  2  0.00230989
  3  0.49916
  4  0.0030754
  5  19.71
  6  1.10514e-05
  7  1.96476e-05
  8  0.000381305
  9  0.000831266
  10  18.5224
  11  0.68279
  12  0.000349577
  13  0.00606339
  14  8.60851e-06
  15  3.37613
  16  18.383
  17  12.8127
  18  6.46696e-06
  19  0.000572207
  20  16.6225
  21  14.0728
  22  7.53767e-06
  23  0.000363328
  24  0.27441
  25  0.248308
Done.

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

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  3.496e-04  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  1.999e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
254         beta:  1.309e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
255           Eb:  1.191e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.077e+00  2.483e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  8.423e-01  2.744e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 340.865 -25.736
Photon Flux Upper Limit: 6.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.33e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/438188/likelihoodResults_569289601_569548801_4FGL_J2243.4-2544_daily_bin1273.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) = 4276.88099874
delta logL = -0.000717072820407

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4276.88028237
delta logL = -7.0988699008e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10142E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0089       1.0000          .0000       5.0000    
     3 'Normalizat'    .84255       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0767       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5200E+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=   4276.880     FROM MIGRAD    STATUS=FAILED        90 CALLS      254 TOTAL
                     EDM=   .34E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10133E-03    290.64        .16720E-02** at limit **
   2  alpha         2.2203        2.6631        .50000       -.20345E-05
   3  Normalizat    .84227        .35036E-01    .26880E-03    .32606E-03
   4  Prefactor     1.0769        .32477E-01    .22179E-03    .41490E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4276.880     FROM SIMPLEX   STATUS=PROGRESS     143 CALLS      397 TOTAL
                     EDM=   .46E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10074E-03    290.64        .32188E-03** at limit **
   2  alpha         2.2202        2.6631        .78089E-04   -.20345E-05
   3  Normalizat    .84226        .35036E-01    .18325E-05    .32606E-03
   4  Prefactor     1.0769        .32477E-01    .10768E-05    .41490E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4276.880     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      437 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    987.43        .33440E-03** at limit **
   2  alpha         2.2801        3.8589        .50000       -.80831E-07
   3  Normalizat    .84226        .78539E-01    .53761E-04    .14591E-04
   4  Prefactor     1.0769        .72764E-01    .44359E-04    .57512E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.28008
  Normalizat = 0.842264
  Prefactor  = 1.07686
 **********
 **   18 **HESSE 
 **********

 FCN=   4276.880     FROM HESSE     STATUS=OK            29 CALLS      466 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.4761        .66879E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2801        3.3674        .50000       -.88082E-01
   3  Normalizat    .84226        .26295        .10752E-04   -.98520    
   4  Prefactor     1.0769        .24383        .88717E-05   -.90210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.25764e-11
Minuit parameter uncertainties:
  1  0.000136539
  2  196.99
  3  0.26335
  4  0.244077
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/438188': 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) = 4276.88028119
delta logL = 4.7219600674e-07

Extracting fit parameters...

4FGL J2243.4-2544
   Spectrum: LogParabola
252         norm:  1.000e-04  1.365e-04  1.000e-04  1.000e+04 ( 1.000e-12)
253        alpha:  2.280e+00  1.970e+02  0.000e+00  5.000e+00 ( 1.000e+00)
254         beta:  1.309e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
255           Eb:  1.191e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
517    Prefactor:  1.077e+00  2.441e-01  0.000e+00  1.000e+01 ( 1.000e+00)
518        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
519        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
516   Normalization:  8.423e-01  2.634e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 340.865 -25.736

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/438188/cmap_HighResolution_569289601_569548801_4FGL_J2243.4-2544_daily_bin1273.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.33e-05', job_status='DONE', photon_flux_upper_limit='6.81e-08', time_completed='2021-09-28 18:52:23.701634', job_id='438188', GAL2='1.08', fit_tolerance='1e-08', EG2='0.84', EG='0.84', time_epoch_completed='1632880343.7', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='4.72e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1273' AND source_name='4FGL J2243.4-2544' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 18:52:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 438188: <4FGL_J2243.4-2544_daily_bin1273> in cluster <slac> Done

Job <4FGL_J2243.4-2544_daily_bin1273> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 18:40:30 2021
Job was executed on host(s) <bullet0266>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 18:40:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 18:40:31 2021
Terminated at Tue Sep 28 18:52:24 2021
Results reported at Tue Sep 28 18:52:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2243.4-2544_daily_bin1273 340.865 -25.7363 569289601 569548801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2243.4-2544 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   571.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             274.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            714 sec.

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

