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


Performing analysis on: 4FGL_J2212.9-2526_daily_bin1016
RA = 333.226, Dec = -25.4335
tmin = 502675201, tmax = 502934401
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='224290', job_status='RUN', time_executed='2021-09-28 07:12:23.649858', time_epoch_executed='1632838343.65' WHERE source_name='4FGL J2212.9-2526' and cadence='daily' and bin_id='1016'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/224290

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/224290/ft1_4FGL_J2212.9-2526_daily_bin1016.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/224290/ft2_4FGL_J2212.9-2526_daily_bin1016.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/224290/ft1_4FGL_J2212.9-2526_daily_bin1016.fits outfile=/scratch/kocevski/224290/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin1016.fits ra=333.226 dec=-25.4335 rad=12.0 tmin=502675201.0 tmax=502934401.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.64
user 3.35
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/224290/ft2_4FGL_J2212.9-2526_daily_bin1016.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/224290/ft2_4FGL_J2212.9-2526_daily_bin1016.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/224290/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin1016.fits evtable="EVENTS" outfile="/scratch/kocevski/224290/ft1_filtered_4FGL_J2212.9-2526_daily_bin1016.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.57
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/224290/ft1_filtered_4FGL_J2212.9-2526_daily_bin1016.fits" evtable="EVENTS" scfile=/scratch/kocevski/224290/ft2_4FGL_J2212.9-2526_daily_bin1016.fits sctable="SC_DATA" outfile=/scratch/kocevski/224290/ltcube_502675201_502934401_4FGL_J2212.9-2526_daily_bin1016.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/224290/ft2_4FGL_J2212.9-2526_daily_bin1016.fits
.....................!
real 11.96
user 11.62
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/224290/ft1_filtered_4FGL_J2212.9-2526_daily_bin1016.fits evtable="EVENTS" scfile=/scratch/kocevski/224290/ft2_4FGL_J2212.9-2526_daily_bin1016.fits sctable="SC_DATA" expcube=/scratch/kocevski/224290/ltcube_502675201_502934401_4FGL_J2212.9-2526_daily_bin1016.fits outfile=/scratch/kocevski/224290/expmap_502675201_502934401_4FGL_J2212.9-2526_daily_bin1016.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/224290/ltcube_502675201_502934401_4FGL_J2212.9-2526_daily_bin1016.fits
.....................!
real 193.03
user 187.36
sys 4.90

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

Setting source of interest to:
4FGL J2212.9-2526 @ 333.226 -25.4335

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/224290/ft1_filtered_4FGL_J2212.9-2526_daily_bin1016.fits scfile=/scratch/kocevski/224290/ft2_4FGL_J2212.9-2526_daily_bin1016.fits outfile=/scratch/kocevski/224290/cmap_502675201_502934401_4FGL_J2212.9-2526_daily_bin1016.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=333.226 yref=-25.4335 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.81
user 0.37
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/224290/ft1_filtered_4FGL_J2212.9-2526_daily_bin1016.fits scfile=/scratch/kocevski/224290/ft2_4FGL_J2212.9-2526_daily_bin1016.fits outfile=/scratch/kocevski/224290/cmap_HighResolution_502675201_502934401_4FGL_J2212.9-2526_daily_bin1016.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=333.226 yref=-25.4335 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.78
user 0.39
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/224290/ft1_filtered_4FGL_J2212.9-2526_daily_bin1016.fits evtable="EVENTS" scfile=/scratch/kocevski/224290/ft2_4FGL_J2212.9-2526_daily_bin1016.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/224290/Model_4FGL_J2212.9-2526_daily_bin1016.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/224290/ft1_filtered_4FGL_J2212.9-2526_daily_bin1016.fits.....................!
real 64.06
user 61.19
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/224290/ft1_filtered_4FGL_J2212.9-2526_daily_bin1016.fits', '/scratch/kocevski/224290/ft2_4FGL_J2212.9-2526_daily_bin1016.fits', expMap='/scratch/kocevski/224290/expmap_502675201_502934401_4FGL_J2212.9-2526_daily_bin1016.fits', expCube='/scratch/kocevski/224290/ltcube_502675201_502934401_4FGL_J2212.9-2526_daily_bin1016.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/224290/Model_4FGL_J2212.9-2526_daily_bin1016.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2212.9-2526'

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  5.247e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  2.255e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
243        Scale:  1.123e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/224290/ft1_filtered_4FGL_J2212.9-2526_daily_bin1016.fits
Spacecraft file(s): /scratch/kocevski/224290/ft2_4FGL_J2212.9-2526_daily_bin1016.fits
Exposure map: /scratch/kocevski/224290/expmap_502675201_502934401_4FGL_J2212.9-2526_daily_bin1016.fits
Exposure cube: /scratch/kocevski/224290/ltcube_502675201_502934401_4FGL_J2212.9-2526_daily_bin1016.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/224290/Model_4FGL_J2212.9-2526_daily_bin1016.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) = 8019.4776984

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3559       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.448       1.0000         .10000E-03   10000.    
     4 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2276       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    7.2667       1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.376       1.0000         .10000E-03   10000.    
    10 'norm      '    1.6594       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    33.870       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.193       1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.131       1.0000         .10000E-03   10000.    
    15 'norm      '    29.460       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .38465E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.479       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.3038       1.0000         .10000E-03   10000.    
    20 'norm      '    .96544       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .99180E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .73710       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.3382       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0795       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .64026       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8019.405     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     2689 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3558        2.4321       -.27159E-07   -.30510E-04
   2  Prefactor     .10000E-03    4.5061        .28783E-07** at limit **
   3  Prefactor     16.447        9.1856        .11123E-06   -.75960E-05
   4  norm          .10000E-03    2.1048        .19644E-08** at limit **
   5  Prefactor     1.2176        30.686        .24048E-05    .38771E-04
   6  Prefactor     .10000E-03    7.9442       -.34602E-07** at limit **
   7  Prefactor     .10000E-03    30.233        .10078E-06** at limit **
   8  norm          7.2669        3.4493        .10452E-06   -.21817E-04
   9  Prefactor     10.384        14.460       -.19834E-06    .11570E-04
  10  norm          1.6593        .36105        .53872E-08   -.96542E-04
  11  Prefactor     .10000E-03    2.0275       -.14089E-08** at limit **
  12  Prefactor     33.872        14.842        .99982E-07   -.28465E-04
  13  Prefactor     10.194        7.2703        .75527E-06    .21729E-03
  14  Prefactor     20.110        29.077        .30557E-05   -.13593E-03
  15  norm          29.462        15.865       -.21933E-07   -.83693E-04
  16  Prefactor     .10003E-03    6.7640       -.23389E-05** at limit **
  17  norm          .10000E-03    .59122        .26740E-06** at limit **
  18  Prefactor     15.488        23.928       -.21675E-05   -.12137E-03
  19  Prefactor     9.3039        9.9415        .97175E-06   -.28069E-04
  20  norm          .96360        2.8823        .27769E-06   -.67830E-03
  21  Prefactor     .10000E-03    4.3779        .10052E-06** at limit **
  22  Prefactor     .10019E-03    4.2500        .21616E-05** at limit **
  23  norm          .73677        .59817       -.26931E-06   -.64803E-02
  24  Prefactor     3.3365        5.2756        .22501E-05    .72407E-04
  25  Normalizat    1.0794        .15897       -.20188E-05   -.52512E-03
  26  Prefactor     .64039        .11640        .90606E-06   -.42481E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.35577
  Prefactor  = 0.0001
  Prefactor  = 16.4473
  norm       = 0.0001
  Prefactor  = 1.2176
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.26689
  Prefactor  = 10.3836
  norm       = 1.65933
  Prefactor  = 0.0001
  Prefactor  = 33.8722
  Prefactor  = 10.1943
  Prefactor  = 20.1105
  norm       = 29.4625
  Prefactor  = 0.000100027
  norm       = 0.0001
  Prefactor  = 15.4884
  Prefactor  = 9.30388
  norm       = 0.963598
  Prefactor  = 0.0001
  Prefactor  = 0.000100194
  norm       = 0.736772
  Prefactor  = 3.33651
  Normalizat = 1.0794
  Prefactor  = 0.640393
 **********
 **   18 **HESSE 
 **********

 FCN=   8019.405     FROM HESSE     STATUS=OK           464 CALLS     3153 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3558        2.4425        .13857E-03   -1.5401    
   2  Prefactor     .10000E-03    4.6229        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.447        9.1846        .98756E-04   -1.4897    
   4  norm          .10000E-03    2.1175        .12686E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.2176        30.949        .40623E-03   -1.5487    
   6  Prefactor     .10000E-03    8.0075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    30.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.2669        3.4598        .10599E-03   -1.5169    
   9  Prefactor     10.384        14.327        .12439E-03   -1.5063    
  10  norm          1.6593        .36244        .23571E-04   -1.5450    
  11  Prefactor     .10000E-03    2.0389        .12451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     33.872        14.864        .68855E-04   -1.4543    
  13  Prefactor     10.194        7.3016        .62752E-03   -1.5069    
  14  Prefactor     20.110        28.645        .89270E-04   -1.4811    
  15  norm          29.462        15.864        .73815E-04   -1.4622    
  16  Prefactor     .10003E-03    18.669        .38190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .60163        .67350E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.488        23.902        .10180E-03   -1.4921    
  19  Prefactor     9.3039        9.9696        .65695E-03   -1.5098    
  20  norm          .96360        2.7496        .22983E-03   -1.5512    
  21  Prefactor     .10000E-03    4.3837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10019E-03    29.453        .27646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .73677        .53838        .51131E-03   -1.5536    
  24  Prefactor     3.3365        5.3716        .11076E-02   -1.5343    
  25  Normalizat    1.0794        .17945        .22876E-03   -.90416    
  26  Prefactor     .64039        .13275        .23067E-03   -1.0591    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.22411e-09
Minuit parameter uncertainties:
  1  2.44259
  2  4.033e-06
  3  9.18534
  4  1.14523e-06
  5  12.2839
  6  4.85521e-06
  7  8.1186e-06
  8  3.45989
  9  14.332
  10  0.362436
  11  1.84865e-06
  12  14.8654
  13  7.30226
  14  28.6642
  15  15.8665
  16  0.00142986
  17  1.08374e-05
  18  23.9167
  19  9.97136
  20  2.74998
  21  3.41513e-06
  22  0.00478712
  23  0.53838
  24  5.37233
  25  0.179555
  26  0.132819
Done.

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

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  3.387e+01  1.487e+01  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  2.255e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
243        Scale:  1.123e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  6.404e-01  1.328e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.079e+00  1.796e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.65
Ra Dec: 333.226 -25.433
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 6.32e-08 +/- 2.77e-08
Energy Flux (Fixed Index): 2.57e-05 +/- 1.13e-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) = 8019.40172259
delta logL = 0.00302323622145

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8019.39944916
delta logL = 0.0052966691228

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.111       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2143       1.0000          .0000       10.000    
     3 'Normalizat'    1.0819       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63928       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+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=   8019.399     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      233 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.112        19.994        .67631E-04   -.46214E-03
   2  Index         2.2146        .40344        .53996E-02   -.24318E-03
   3  Normalizat    1.0819        .16508        .22853E-03    .16322E-03
   4  Prefactor     .63908        .13030        .23089E-03    .30459E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.1121
  Index      = 2.21457
  Normalizat = 1.08191
  Prefactor  = 0.639079
 **********
 **   18 **HESSE 
 **********

 FCN=   8019.399     FROM HESSE     STATUS=OK            25 CALLS      258 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.112        19.405        .13526E-04   -1.4522    
   2  Index         2.2146        .39132        .21598E-03   -.59087    
   3  Normalizat    1.0819        .16511        .91412E-05   -.90335    
   4  Prefactor     .63908        .13036        .92356E-05   -1.0596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.85034e-10
Minuit parameter uncertainties:
  1  19.4085
  2  0.391898
  3  0.165189
  4  0.130417
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/224290': 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) = 8019.39944594
delta logL = 0.00529988980543

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  3.511e+01  1.941e+01  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  2.215e+00  3.919e-01  0.000e+00  1.000e+01 (-1.000e+00)
243        Scale:  1.123e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  6.391e-01  1.304e-01  0.000e+00  1.000e+01 ( 1.000e+00)
494        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
495        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
492   Normalization:  1.082e+00  1.652e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.61
Ra Dec: 333.226 -25.433
Photon Index (Free Index): 2.21 +/- 0.39
Photon Flux (Free Index): 6.13e-08 +/- 3.23e-08
Energy Flux (Free Index): 2.68e-05 +/- 1.63e-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/224290/cmap_HighResolution_502675201_502934401_4FGL_J2212.9-2526_daily_bin1016.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.32e-08', energy_flux2='2.68e-05', photon_flux_error='2.77e-08', dlogl='5.30e-03', energy_flux='2.57e-05', photon_flux2='6.13e-08', job_status='DONE', time_completed='2021-09-28 07:24:10.422927', photon_index_error2='0.39', photon_index2='2.21', ts='13.65', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', energy_flux_error2='1.63e-05', EG='1.08', time_epoch_completed='1632839050.42', return_code='0', job_id='224290', GAL2='0.64', EG2='1.08', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='3.23e-08', ts2='13.61', photon_index='2.26' WHERE bin_id='1016' AND source_name='4FGL J2212.9-2526' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:24:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0116>
Subject: Job 224290: <4FGL_J2212.9-2526_daily_bin1016> in cluster <slac> Done

Job <4FGL_J2212.9-2526_daily_bin1016> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 07:10:38 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 07:10:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 07:10:39 2021
Terminated at Tue Sep 28 07:24:11 2021
Results reported at Tue Sep 28 07:24:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2212.9-2526_daily_bin1016 333.226 -25.4335 502675201 502934401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2212.9-2526 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   660.26 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   811 sec.
    Turnaround time :                            813 sec.

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

