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


Performing analysis on: 4FGL_J2212.9-2526_daily_bin837
RA = 333.226, Dec = -25.4335
tmin = 456278401, tmax = 456537601
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='222951', job_status='RUN', time_executed='2021-09-28 07:09:32.530097', time_epoch_executed='1632838172.53' WHERE source_name='4FGL J2212.9-2526' and cadence='daily' and bin_id='837'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/222951

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/222951/ft1_4FGL_J2212.9-2526_daily_bin837.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/222951/ft2_4FGL_J2212.9-2526_daily_bin837.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/222951/ft1_4FGL_J2212.9-2526_daily_bin837.fits outfile=/scratch/kocevski/222951/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin837.fits ra=333.226 dec=-25.4335 rad=12.0 tmin=456278401.0 tmax=456537601.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 5.03
user 4.79
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/222951/ft1_filtered_4FGL_J2212.9-2526_daily_bin837.fits" evtable="EVENTS" scfile=/scratch/kocevski/222951/ft2_4FGL_J2212.9-2526_daily_bin837.fits sctable="SC_DATA" outfile=/scratch/kocevski/222951/ltcube_456278401_456537601_4FGL_J2212.9-2526_daily_bin837.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/222951/ft2_4FGL_J2212.9-2526_daily_bin837.fits
.....................!
real 12.11
user 11.74
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/222951/ft1_filtered_4FGL_J2212.9-2526_daily_bin837.fits evtable="EVENTS" scfile=/scratch/kocevski/222951/ft2_4FGL_J2212.9-2526_daily_bin837.fits sctable="SC_DATA" expcube=/scratch/kocevski/222951/ltcube_456278401_456537601_4FGL_J2212.9-2526_daily_bin837.fits outfile=/scratch/kocevski/222951/expmap_456278401_456537601_4FGL_J2212.9-2526_daily_bin837.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/222951/ltcube_456278401_456537601_4FGL_J2212.9-2526_daily_bin837.fits
.....................!
real 190.66
user 185.12
sys 5.24

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/222951/ft1_filtered_4FGL_J2212.9-2526_daily_bin837.fits scfile=/scratch/kocevski/222951/ft2_4FGL_J2212.9-2526_daily_bin837.fits outfile=/scratch/kocevski/222951/cmap_456278401_456537601_4FGL_J2212.9-2526_daily_bin837.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.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/222951/ft1_filtered_4FGL_J2212.9-2526_daily_bin837.fits scfile=/scratch/kocevski/222951/ft2_4FGL_J2212.9-2526_daily_bin837.fits outfile=/scratch/kocevski/222951/cmap_HighResolution_456278401_456537601_4FGL_J2212.9-2526_daily_bin837.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/222951/ft1_filtered_4FGL_J2212.9-2526_daily_bin837.fits evtable="EVENTS" scfile=/scratch/kocevski/222951/ft2_4FGL_J2212.9-2526_daily_bin837.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/222951/Model_4FGL_J2212.9-2526_daily_bin837.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/222951/ft1_filtered_4FGL_J2212.9-2526_daily_bin837.fits.....................!
real 46.30
user 44.98
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .90851       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11129E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.5911       1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.938       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10358E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    71.699       1.0000         .10000E-03   10000.    
     8 'norm      '    .78245E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.522       1.0000         .10000E-03   10000.    
    10 'norm      '    1.5827       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2390       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.669       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.6716       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.269       1.0000         .10000E-03   10000.    
    15 'norm      '    5.7183       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .18121E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    3.5925       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .20792E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12515E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0791       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .77168       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5311.706     FROM MIGRAD    STATUS=CONVERGED    137 CALLS     2666 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .90845        5.5914       -.98971E-05   -.36293E-05
   2  Prefactor     .10000E-03    2.7468       -.24247E-05** at limit **
   3  Prefactor     .10000E-03    7.6558       -.14959E-04** at limit **
   4  norm          4.5834        6.2565        .70730E-05    .92538E-04
   5  Prefactor     34.934        7.9526       -.13016E-04   -.46104E-02
   6  Prefactor     .10000E-03    20.076        .70368E-05** at limit **
   7  Prefactor     71.488        54.701       -.33748E-04    .88418E-03
   8  norm          .19455        44.632       -.20776E-04   -.21508E-03
   9  Prefactor     15.527        4.6787        .64561E-05    .35785E-02
  10  norm          1.5783        .52421        .52415E-06   -.17001E-02
  11  Prefactor     2.2383        7.4182       -.21006E-05   -.35085E-04
  12  Prefactor     17.671        2.0816        .17062E-05    .11253E-02
  13  Prefactor     1.6741        5.3573        .20118E-05   -.54372E-04
  14  Prefactor     10.279        9.2455       -.28199E-04   -.18110E-02
  15  norm          5.7221        5.4112        .61883E-05    .11544E-02
  16  Prefactor     .10027E-03    43.277        .25211E-04** at limit **
  17  norm          3.5972        2.3824       -.21314E-06    .29923E-03
  18  Prefactor     .10491E-03    197.93        .23529E-03** at limit **
  19  Prefactor     .10000E-03    21.881       -.13364E-04** at limit **
  20  norm          .10000E-03    .84888       -.12466E-06** at limit **
  21  Prefactor     .10000E-03    2.8468       -.57853E-06** at limit **
  22  Prefactor     .10000E-03    1.6759       -.32424E-06** at limit **
  23  norm          .10000E-03    .11509       -.19691E-06** at limit **
  24  Prefactor     .10000E-03    2.6273        .22684E-05** at limit **
  25  Normalizat    1.0786        .21613        .15222E-04   -.89640E-06
  26  Prefactor     .77177        .17813        .29086E-05    .18349E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.908448
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.58339
  Prefactor  = 34.9338
  Prefactor  = 0.0001
  Prefactor  = 71.488
  norm       = 0.194547
  Prefactor  = 15.5272
  norm       = 1.57833
  Prefactor  = 2.23834
  Prefactor  = 17.6712
  Prefactor  = 1.67407
  Prefactor  = 10.2794
  norm       = 5.72211
  Prefactor  = 0.000100268
  norm       = 3.59724
  Prefactor  = 0.000104906
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.07863
  Prefactor  = 0.771769
 **********
 **   18 **HESSE 
 **********

 FCN=   5311.706     FROM HESSE     STATUS=OK           532 CALLS     3198 TOTAL
                     EDM=   .30E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .90845        5.7307        .12838E-01   -1.5517    
   2  Prefactor     .10000E-03    2.7395        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.6233        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.5834        6.2709        .46964E-02   -1.5280    
   5  Prefactor     34.934        24.524        .16949E-02   -1.4525    
   6  Prefactor     .10000E-03    20.117        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     71.488        56.031        .11853E-02   -1.4015    
   8  norm          .19455        3.2539        .74973E-01   -1.5620    
   9  Prefactor     15.527        14.038        .25415E-02   -1.4920    
  10  norm          1.5783        .51025        .59181E-02   -1.5457    
  11  Prefactor     2.2383        7.4901        .68671E-02   -1.5409    
  12  Prefactor     17.671        13.929        .23821E-02   -1.4867    
  13  Prefactor     1.6741        5.3882        .81509E-02   -1.5449    
  14  Prefactor     10.279        26.696        .31259E-02   -1.5067    
  15  norm          5.7221        14.303        .41993E-02   -1.5230    
  16  Prefactor     .10027E-03    8.7620        .74726E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.5972        2.7221        .53299E-02   -1.5329    
  18  Prefactor     .10491E-03    38.776        .12973       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    20.846        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .84716        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.8434        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.6702        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .11245        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.6183        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0786        .19120        .38924E-01   -.90441    
  26  Prefactor     .77177        .15400        .43348E-01   -1.0078    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.99049e-07
Minuit parameter uncertainties:
  1  4.56374
  2  4.75205e-06
  3  2.75182e-05
  4  6.27183
  5  24.5316
  6  7.05574e-05
  7  56.0726
  8  1.59096
  9  14.0406
  10  0.510253
  11  7.49325
  12  13.932
  13  5.38978
  14  26.7269
  15  14.3115
  16  0.00306665
  17  2.72215
  18  0.0276028
  19  9.75273e-05
  20  5.86889e-07
  21  6.93597e-06
  22  5.31926e-07
  23  8.95106e-08
  24  1.21013e-06
  25  0.191322
  26  0.154083
Done.

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

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  1.767e+01  1.393e+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:  7.718e-01  1.541e-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.913e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.14
Ra Dec: 333.226 -25.433
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 3.29e-08 +/- 2.60e-08
Energy Flux (Fixed Index): 1.34e-05 +/- 1.06e-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) = 5311.67318009
delta logL = 0.0332475332398

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5311.6706268
delta logL = 0.0358008287658

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.841       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0932       1.0000          .0000       10.000    
     3 'Normalizat'    1.0834       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76960       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=   5311.671     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      271 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.841        17.365        .89918E-04    .50591E-03
   2  Index         2.0933        .60336        .80927E-02    .12331E-03
   3  Normalizat    1.0834        .21172        .23274E-03   -.70047E-04
   4  Prefactor     .76960        .17635        .22607E-03   -.79758E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.8407
  Index      = 2.09327
  Normalizat = 1.08343
  Prefactor  = 0.769601
 **********
 **   18 **HESSE 
 **********

 FCN=   5311.671     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.841        17.091        .17984E-04   -1.4817    
   2  Index         2.0933        .59379        .32371E-03   -.62038    
   3  Normalizat    1.0834        .21187        .93095E-05   -.90286    
   4  Prefactor     .76960        .17650        .90427E-05   -1.0086    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.30696e-10
Minuit parameter uncertainties:
  1  17.0949
  2  0.595916
  3  0.212035
  4  0.176629
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/222951': 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) = 5311.67062679
delta logL = 0.0358008333214

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  1.984e+01  1.709e+01  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  2.093e+00  5.959e-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:  7.696e-01  1.766e-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.083e+00  2.120e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.20
Ra Dec: 333.226 -25.433
Photon Index (Free Index): 2.09 +/- 0.60
Photon Flux (Free Index): 2.87e-08 +/- 2.80e-08
Energy Flux (Free Index): 1.60e-05 +/- 1.72e-05

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/222951/cmap_HighResolution_456278401_456537601_4FGL_J2212.9-2526_daily_bin837.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.29e-08', energy_flux2='1.60e-05', photon_flux_error='2.60e-08', dlogl='3.58e-02', energy_flux='1.34e-05', photon_flux2='2.87e-08', job_status='DONE', time_completed='2021-09-28 07:18:42.510751', photon_index_error2='0.60', photon_index2='2.09', ts='4.14', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='1.72e-05', EG='1.08', time_epoch_completed='1632838722.51', return_code='0', job_id='222951', GAL2='0.77', EG2='1.08', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='2.80e-08', ts2='4.20', photon_index='2.26' WHERE bin_id='837' AND source_name='4FGL J2212.9-2526' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:18:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 222951: <4FGL_J2212.9-2526_daily_bin837> in cluster <slac> Done

Job <4FGL_J2212.9-2526_daily_bin837> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 07:05:44 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 07:05: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 07:05:45 2021
Terminated at Tue Sep 28 07:18:43 2021
Results reported at Tue Sep 28 07:18:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2212.9-2526_daily_bin837 333.226 -25.4335 456278401 456537601 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 :                                   548.25 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             251.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            779 sec.

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

