/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 77 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 = 7015
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2212.9-2526_daily_bin312
RA = 333.226, Dec = -25.4335
tmin = 320198401, tmax = 320457601
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='221137', job_status='RUN', time_executed='2021-09-28 07:01:54.412581', time_epoch_executed='1632837714.41' WHERE source_name='4FGL J2212.9-2526' and cadence='daily' and bin_id='312'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/221137

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/221137/ft1_4FGL_J2212.9-2526_daily_bin312.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/221137/ft2_4FGL_J2212.9-2526_daily_bin312.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/221137/ft1_4FGL_J2212.9-2526_daily_bin312.fits outfile=/scratch/kocevski/221137/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin312.fits ra=333.226 dec=-25.4335 rad=12.0 tmin=320198401.0 tmax=320457601.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.48
user 3.14
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/221137/ft2_4FGL_J2212.9-2526_daily_bin312.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/221137/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin312.fits evtable="EVENTS" outfile="/scratch/kocevski/221137/ft1_filtered_4FGL_J2212.9-2526_daily_bin312.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/221137/ft1_filtered_4FGL_J2212.9-2526_daily_bin312.fits" evtable="EVENTS" scfile=/scratch/kocevski/221137/ft2_4FGL_J2212.9-2526_daily_bin312.fits sctable="SC_DATA" outfile=/scratch/kocevski/221137/ltcube_320198401_320457601_4FGL_J2212.9-2526_daily_bin312.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/221137/ft2_4FGL_J2212.9-2526_daily_bin312.fits
.....................!
real 11.30
user 10.96
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/221137/ft1_filtered_4FGL_J2212.9-2526_daily_bin312.fits evtable="EVENTS" scfile=/scratch/kocevski/221137/ft2_4FGL_J2212.9-2526_daily_bin312.fits sctable="SC_DATA" expcube=/scratch/kocevski/221137/ltcube_320198401_320457601_4FGL_J2212.9-2526_daily_bin312.fits outfile=/scratch/kocevski/221137/expmap_320198401_320457601_4FGL_J2212.9-2526_daily_bin312.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/221137/ltcube_320198401_320457601_4FGL_J2212.9-2526_daily_bin312.fits
.....................!
real 191.20
user 185.66
sys 5.21

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/221137/ft1_filtered_4FGL_J2212.9-2526_daily_bin312.fits scfile=/scratch/kocevski/221137/ft2_4FGL_J2212.9-2526_daily_bin312.fits outfile=/scratch/kocevski/221137/cmap_320198401_320457601_4FGL_J2212.9-2526_daily_bin312.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/221137/ft1_filtered_4FGL_J2212.9-2526_daily_bin312.fits scfile=/scratch/kocevski/221137/ft2_4FGL_J2212.9-2526_daily_bin312.fits outfile=/scratch/kocevski/221137/cmap_HighResolution_320198401_320457601_4FGL_J2212.9-2526_daily_bin312.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/221137/ft1_filtered_4FGL_J2212.9-2526_daily_bin312.fits evtable="EVENTS" scfile=/scratch/kocevski/221137/ft2_4FGL_J2212.9-2526_daily_bin312.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/221137/Model_4FGL_J2212.9-2526_daily_bin312.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/221137/ft1_filtered_4FGL_J2212.9-2526_daily_bin312.fits.....................!
real 53.51
user 52.17
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/221137/ft1_filtered_4FGL_J2212.9-2526_daily_bin312.fits', '/scratch/kocevski/221137/ft2_4FGL_J2212.9-2526_daily_bin312.fits', expMap='/scratch/kocevski/221137/expmap_320198401_320457601_4FGL_J2212.9-2526_daily_bin312.fits', expCube='/scratch/kocevski/221137/ltcube_320198401_320457601_4FGL_J2212.9-2526_daily_bin312.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/221137/Model_4FGL_J2212.9-2526_daily_bin312.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/221137/ft1_filtered_4FGL_J2212.9-2526_daily_bin312.fits
Spacecraft file(s): /scratch/kocevski/221137/ft2_4FGL_J2212.9-2526_daily_bin312.fits
Exposure map: /scratch/kocevski/221137/expmap_320198401_320457601_4FGL_J2212.9-2526_daily_bin312.fits
Exposure cube: /scratch/kocevski/221137/ltcube_320198401_320457601_4FGL_J2212.9-2526_daily_bin312.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/221137/Model_4FGL_J2212.9-2526_daily_bin312.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) = 6026.90140466

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    9.3101       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11811E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .53866E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    18.056       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1091       1.0000         .10000E-03   10000.    
    10 'norm      '    .29533       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .36053       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .86394       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.7875       1.0000         .10000E-03   10000.    
    16 'Prefactor '    56.449       1.0000         .10000E-03   10000.    
    17 'norm      '    2.3267       1.0000         .10000E-03   10000.    
    18 'Prefactor '    28.899       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10249E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.6557       1.0000         .10000E-03   10000.    
    23 'norm      '    .38591       1.0000         .10000E-03   10000.    
    24 'Prefactor '    40.170       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2931       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2337       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=   6026.852     FROM MIGRAD    STATUS=CONVERGED   1095 CALLS     3677 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.8427        .36285E-03** at limit **
   2  Prefactor     .10000E-03    2.1901        .11213E-02** at limit **
   3  Prefactor     .10000E-03    3.7074        .14597E-02** at limit **
   4  norm          9.3135        10.427        .13135E-03   -.12897E-04
   5  Prefactor     .10000E-03    63.435        .18142E-02** at limit **
   6  Prefactor     .10000E-03    29.565        .18142E-02** at limit **
   7  Prefactor     .10000E-03    57.228        .16689    ** at limit **
   8  norm          18.054        8.5421        .94257E-04   -.12471E-03
   9  Prefactor     2.1147        32.754        .28409E-03    .10805E-05
  10  norm          .29553        .39803        .55453E-03    .78408E-03
  11  Prefactor     .46511        76.407        .42740E-02    .20818E-03
  12  Prefactor     .10000E-03    36.859        .18142E-02** at limit **
  13  Prefactor     .86531        11.772        .50705E-03    .73318E-05
  14  Prefactor     .10000E-03    33.073        .18142E-02** at limit **
  15  norm          2.7949        47.987        .24371E-03    .29389E-05
  16  Prefactor     56.472        27.435        .53392E-04   -.14053E-04
  17  norm          2.3363        3.5938        .13174E-03   -.17086E-03
  18  Prefactor     28.774        82.982        .74527E-04    .67120E-05
  19  Prefactor     .10000E-03    6.3670        .18142E-02** at limit **
  20  norm          .10000E-03    1.9662        .10573E-02** at limit **
  21  Prefactor     .10000E-03    24.324        .18142E-02** at limit **
  22  Prefactor     6.6553        9.8421        .15554E-03    .45609E-04
  23  norm          .38646        .55044        .74965E-03    .33795E-02
  24  Prefactor     40.173        21.247        .63243E-04    .19234E-04
  25  Normalizat    1.2930        .32686        .31343E-03    .71927E-04
  26  Prefactor     1.2335        .23785        .25033E-03   -.46504E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.31349
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 18.0537
  Prefactor  = 2.11466
  norm       = 0.295531
  Prefactor  = 0.465111
  Prefactor  = 0.0001
  Prefactor  = 0.865305
  Prefactor  = 0.0001
  norm       = 2.79488
  Prefactor  = 56.4722
  norm       = 2.33632
  Prefactor  = 28.7737
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.65532
  norm       = 0.386461
  Prefactor  = 40.1728
  Normalizat = 1.29298
  Prefactor  = 1.2335
 **********
 **   18 **HESSE 
 **********

 FCN=   6026.852     FROM HESSE     STATUS=OK           446 CALLS     4123 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.8430        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.1902        .22426E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.7075        .29194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          9.3135        10.425        .52538E-05   -1.5098    
   5  Prefactor     .10000E-03    63.489        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    29.576        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    57.363        .16645       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          18.054        8.5305        .37703E-05   -1.4858    
   9  Prefactor     2.1147        32.746        .11364E-04   -1.5417    
  10  norm          .29553        .39731        .22181E-04   -1.5599    
  11  Prefactor     .46511        76.346        .17096E-03   -1.5572    
  12  Prefactor     .10000E-03    36.866        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .86531        11.761        .20282E-04   -1.5522    
  14  Prefactor     .10000E-03    33.074        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.7949        47.973        .97483E-05   -1.5374    
  16  Prefactor     56.472        27.446        .21357E-05   -1.4204    
  17  norm          2.3363        3.6004        .52698E-05   -1.5402    
  18  Prefactor     28.774        83.222        .29811E-05   -1.4635    
  19  Prefactor     .10000E-03    6.3675        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.9664        .21146E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    24.327        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.6553        9.8320        .62217E-05   -1.5192    
  23  norm          .38646        .54950        .14993E-03   -1.5584    
  24  Prefactor     40.173        21.239        .25297E-05   -1.4439    
  25  Normalizat    1.2930        .32633        .12537E-04   -.83776    
  26  Prefactor     1.2335        .23818        .10013E-04   -.85307    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00803e-09
Minuit parameter uncertainties:
  1  3.29392e-06
  2  1.04303e-06
  3  1.03484e-06
  4  10.427
  5  0.000145129
  6  2.1889e-05
  7  0.000869564
  8  8.53111
  9  16.6533
  10  0.397309
  11  11.9321
  12  1.68297e-05
  13  6.38143
  14  7.97731e-06
  15  23.1798
  16  27.4522
  17  3.60068
  18  83.5604
  19  7.24128e-06
  20  2.93616e-06
  21  3.48044e-06
  22  9.83439
  23  0.549504
  24  21.2429
  25  0.326852
  26  0.238386
Done.

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

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  1.000e-04  1.683e-05  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:  1.233e+00  2.384e-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.293e+00  3.269e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 333.226 -25.433
Photon Flux Upper Limit: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/221137/likelihoodResults_320198401_320457601_4FGL_J2212.9-2526_daily_bin312.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) = 6026.85239063
delta logL = -0.000129213215587

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6026.7311203
delta logL = 0.121141116281

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0975       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5134       1.0000          .0000       10.000    
     3 'Normalizat'    1.2432       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2542       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=   6026.731     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      299 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0973        399.22        .21459E-03   -.23030E-03
   2  Index         3.5135        5.1604        .90026E-02   -.44673E-04
   3  Normalizat    1.2432        .28894        .31882E-03   -.11297E-03
   4  Prefactor     1.2542        .22084        .24858E-03   -.80448E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.09726
  Index      = 3.51348
  Normalizat = 1.24324
  Prefactor  = 1.2542
 **********
 **   18 **HESSE 
 **********

 FCN=   6026.731     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0973        9.7669        .85834E-05   -1.5418    
   2  Index         3.5135        1.8739        .36010E-03   -.30187    
   3  Normalizat    1.2432        .31241        .12753E-04   -.85277    
   4  Prefactor     1.2542        .23708        .49715E-04   -.84679    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96967e-10
Minuit parameter uncertainties:
  1  9.05401
  2  1.9257
  3  0.312887
  4  0.237279
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/221137': 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) = 6026.73112029
delta logL = 0.121141119872

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  2.097e+00  9.054e+00  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  3.513e+00  1.926e+00  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:  1.254e+00  2.373e-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.243e+00  3.129e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 333.226 -25.433

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/221137/cmap_HighResolution_320198401_320457601_4FGL_J2212.9-2526_daily_bin312.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.26e-03', job_status='DONE', photon_flux_upper_limit='1.21e-07', time_completed='2021-09-28 07:13:40.230544', job_id='221137', GAL2='1.25', fit_tolerance='1e-08', EG2='1.24', EG='1.29', time_epoch_completed='1632838420.23', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='1.21e-01', ts2='0.26', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='312' AND source_name='4FGL J2212.9-2526' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:13:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 221137: <4FGL_J2212.9-2526_daily_bin312> in cluster <slac> Done

Job <4FGL_J2212.9-2526_daily_bin312> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 07:00:21 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 07:00:23 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:00:23 2021
Terminated at Tue Sep 28 07:13:41 2021
Results reported at Tue Sep 28 07:13:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2212.9-2526_daily_bin312 333.226 -25.4335 320198401 320457601 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 :                                   699.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            800 sec.

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

