/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 222 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 = 7477
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2212.9-2526_daily_bin392
RA = 333.226, Dec = -25.4335
tmin = 340934401, tmax = 341193601
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='221259', job_status='RUN', time_executed='2021-09-28 07:04:24.913279', time_epoch_executed='1632837864.91' WHERE source_name='4FGL J2212.9-2526' and cadence='daily' and bin_id='392'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/221259

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/221259/ft1_4FGL_J2212.9-2526_daily_bin392.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/221259/ft2_4FGL_J2212.9-2526_daily_bin392.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/221259/ft1_4FGL_J2212.9-2526_daily_bin392.fits outfile=/scratch/kocevski/221259/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin392.fits ra=333.226 dec=-25.4335 rad=12.0 tmin=340934401.0 tmax=341193601.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.35
user 3.15
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/221259/ft2_4FGL_J2212.9-2526_daily_bin392.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/221259/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin392.fits evtable="EVENTS" outfile="/scratch/kocevski/221259/ft1_filtered_4FGL_J2212.9-2526_daily_bin392.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.50
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/221259/ft1_filtered_4FGL_J2212.9-2526_daily_bin392.fits" evtable="EVENTS" scfile=/scratch/kocevski/221259/ft2_4FGL_J2212.9-2526_daily_bin392.fits sctable="SC_DATA" outfile=/scratch/kocevski/221259/ltcube_340934401_341193601_4FGL_J2212.9-2526_daily_bin392.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/221259/ft2_4FGL_J2212.9-2526_daily_bin392.fits
.....................!
real 11.91
user 11.56
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/221259/ft1_filtered_4FGL_J2212.9-2526_daily_bin392.fits evtable="EVENTS" scfile=/scratch/kocevski/221259/ft2_4FGL_J2212.9-2526_daily_bin392.fits sctable="SC_DATA" expcube=/scratch/kocevski/221259/ltcube_340934401_341193601_4FGL_J2212.9-2526_daily_bin392.fits outfile=/scratch/kocevski/221259/expmap_340934401_341193601_4FGL_J2212.9-2526_daily_bin392.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/221259/ltcube_340934401_341193601_4FGL_J2212.9-2526_daily_bin392.fits
.....................!
real 190.47
user 185.32
sys 4.84

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/221259/ft1_filtered_4FGL_J2212.9-2526_daily_bin392.fits scfile=/scratch/kocevski/221259/ft2_4FGL_J2212.9-2526_daily_bin392.fits outfile=/scratch/kocevski/221259/cmap_340934401_341193601_4FGL_J2212.9-2526_daily_bin392.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/221259/ft1_filtered_4FGL_J2212.9-2526_daily_bin392.fits scfile=/scratch/kocevski/221259/ft2_4FGL_J2212.9-2526_daily_bin392.fits outfile=/scratch/kocevski/221259/cmap_HighResolution_340934401_341193601_4FGL_J2212.9-2526_daily_bin392.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/221259/ft1_filtered_4FGL_J2212.9-2526_daily_bin392.fits evtable="EVENTS" scfile=/scratch/kocevski/221259/ft2_4FGL_J2212.9-2526_daily_bin392.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/221259/Model_4FGL_J2212.9-2526_daily_bin392.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/221259/ft1_filtered_4FGL_J2212.9-2526_daily_bin392.fits.....................!
real 50.70
user 49.32
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11961E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.675       1.0000         .10000E-03   10000.    
     6 'Prefactor '    24.393       1.0000         .10000E-03   10000.    
     7 'Prefactor '    61.230       1.0000         .10000E-03   10000.    
     8 'norm      '    .54873       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.0073       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.2382       1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.087       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.886       1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.705       1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.3841       1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.446       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.1994       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.3975       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .98995       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .68111       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=   5965.967     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     3121 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.6331       -.97039E-06** at limit **
   2  Prefactor     .10000E-03    3.9839       -.14959E-06** at limit **
   3  Prefactor     .10000E-03    7.0494       -.45553E-06** at limit **
   4  norm          .10000E-03    3.3947       -.11681E-06** at limit **
   5  Prefactor     19.675        23.803       -.31190E-06    .15807E-04
   6  Prefactor     24.396        28.620        .18320E-05   -.13073E-03
   7  Prefactor     61.274        74.535       -.62851E-05   -.22498E-03
   8  norm          .53364        2.8831       -.10673E-05   -.26896E-04
   9  Prefactor     .10000E-03    6.9861       -.18847E-06** at limit **
  10  norm          2.0078        .48960        .12480E-06    .59713E-03
  11  Prefactor     6.2356        12.110        .33183E-06    .26832E-04
  12  Prefactor     26.086        19.049        .14557E-06    .97834E-05
  13  Prefactor     .10000E-03    1.8008       -.81827E-07** at limit **
  14  Prefactor     .10000E-03    25.855       -.10127E-05** at limit **
  15  norm          12.886        13.996        .18086E-06   -.96151E-04
  16  Prefactor     23.706        12.941        .62372E-06   -.24685E-03
  17  norm          .10000E-03    1.1101        .15295E-05** at limit **
  18  Prefactor     1.3496        284.05       -.80754E-05   -.70293E-04
  19  Prefactor     17.445        11.016       -.88734E-07   -.39179E-04
  20  norm          .10000E-03    1.2485        .83514E-07** at limit **
  21  Prefactor     .10000E-03    4.7974       -.15900E-08** at limit **
  22  Prefactor     .10000E-03    5.7209        .48458E-06** at limit **
  23  norm          1.1994        .59967       -.23943E-06   -.90845E-03
  24  Prefactor     1.3967        9.0611        .72098E-05   -.14613E-03
  25  Normalizat    .99001        .19274        .82927E-06   -.36079E-04
  26  Prefactor     .68113        .14345        .56172E-06    .92196E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.6747
  Prefactor  = 24.396
  Prefactor  = 61.2745
  norm       = 0.533636
  Prefactor  = 0.0001
  norm       = 2.00783
  Prefactor  = 6.23559
  Prefactor  = 26.0856
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.8858
  Prefactor  = 23.7058
  norm       = 0.0001
  Prefactor  = 1.34959
  Prefactor  = 17.4446
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.19942
  Prefactor  = 1.39673
  Normalizat = 0.990012
  Prefactor  = 0.681132
 **********
 **   18 **HESSE 
 **********

 FCN=   5965.967     FROM HESSE     STATUS=OK           460 CALLS     3581 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    18.479        .31951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.0124        .15056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.0867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.4246        .13896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.675        23.835        .90297E-04   -1.4821    
   6  Prefactor     24.396        28.693        .81105E-04   -1.4720    
   7  Prefactor     61.274        75.978        .51278E-04   -1.4141    
   8  norm          .53364        9.7304        .21575E-02   -1.5562    
   9  Prefactor     .10000E-03    6.9966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.0078        .49474        .24083E-04   -1.5425    
  11  Prefactor     6.2356        12.099        .16072E-03   -1.5208    
  12  Prefactor     26.086        19.068        .78433E-04   -1.4686    
  13  Prefactor     .10000E-03    1.8098        .10123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    25.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.886        13.989        .11159E-03   -1.4990    
  16  Prefactor     23.706        13.026        .82272E-04   -1.4734    
  17  norm          .10000E-03    1.1119        .15628E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.3496        308.85        .36977E-02   -1.5476    
  19  Prefactor     17.445        11.096        .95890E-04   -1.4872    
  20  norm          .10000E-03    1.2529        .84191E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.8078        .16517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.7681        .17941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.1994        .59798        .37247E-04   -1.5489    
  24  Prefactor     1.3967        9.3981        .18360E-02   -1.5472    
  25  Normalizat    .99001        .23379        .24086E-03   -.93366    
  26  Prefactor     .68113        .17165        .22931E-03   -1.0427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68411e-08
Minuit parameter uncertainties:
  1  0.000144051
  2  1.22334e-05
  3  1.01482e-06
  4  1.02494e-05
  5  23.8461
  6  28.7095
  7  76.0981
  8  4.55783
  9  1.59601e-05
  10  0.494746
  11  12.1041
  12  19.0721
  13  4.30087e-06
  14  0.000131543
  15  13.9926
  16  13.0273
  17  2.34161e-05
  18  41.0467
  19  11.0976
  20  7.1312e-06
  21  2.14879e-05
  22  4.73927e-05
  23  0.597985
  24  7.24754
  25  0.234036
  26  0.171785
Done.

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

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  2.609e+01  1.907e+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.811e-01  1.718e-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:  9.900e-01  2.340e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.24
Ra Dec: 333.226 -25.433
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 4.86e-08 +/- 3.55e-08
Energy Flux (Fixed Index): 1.98e-05 +/- 1.45e-05

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

Saving results to:
/scratch/kocevski/221259/likelihoodResults_340934401_341193601_4FGL_J2212.9-2526_daily_bin392.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): 0
logL (Free Index) = 5965.11239745
delta logL = 0.854168409336

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5965.09903711
delta logL = 0.867528755885

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.6400       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1358       1.0000          .0000       10.000    
     3 'Normalizat'    .93333       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71236       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5965.099     FROM MIGRAD    STATUS=FAILED        98 CALLS      294 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6134        22.417        .63344E-03   -.12698E-03
   2  Index         3.1372        1.2703        .41455E-02    .54758E-03
   3  Normalizat    .93317        .21628        .24696E-03   -.46954E-05
   4  Prefactor     .71242        .17096        .22453E-03   -.27595E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5965.099     FROM SIMPLEX   STATUS=UNCHANGED     75 CALLS      369 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6134        22.417        .17096E-03   -1.5088    
   2  Index         3.1372        1.2703        .81847E-03   -.38176    
   3  Normalizat    .93317        .21628        .27807E-03   -.95304    
   4  Prefactor     .71242        .17096        .20258E-03   -1.0304    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5965.099     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      402 TOTAL
                     EDM=   .40E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.6135        13.864        .25338E-04    .49356E-05
   2  Index         3.1372        .79083        .82911E-03   -.24407E-05
   3  Normalizat    .93317        .21408        .98786E-05    .23017E-06
   4  Prefactor     .71243        .16932        .89813E-05    .10127E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.61347
  Index      = 3.13721
  Normalizat = 0.933172
  Prefactor  = 0.712425
 **********
 **   18 **HESSE 
 **********

 FCN=   5965.099     FROM HESSE     STATUS=OK            23 CALLS      425 TOTAL
                     EDM=   .55E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.6135        13.200        .10135E-05   -1.5088    
   2  Index         3.1372        .75309        .33164E-04   -.38176    
   3  Normalizat    .93317        .21388        .19757E-05   -.95304    
   4  Prefactor     .71243        .16917        .89813E-05   -1.0304    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.4706e-13
Minuit parameter uncertainties:
  1  13.2041
  2  0.756437
  3  0.214076
  4  0.169287
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/221259': 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) = 5965.09903455
delta logL = 0.867531309525

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  9.613e+00  1.320e+01  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  3.137e+00  7.564e-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.124e-01  1.693e-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:  9.332e-01  2.141e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.09
Ra Dec: 333.226 -25.433
Photon Index (Free Index): 3.14 +/- 0.76
Photon Flux (Free Index): 8.90e-08 +/- 5.40e-08
Energy Flux (Free Index): 1.67e-05 +/- 9.54e-06

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/221259/cmap_HighResolution_340934401_341193601_4FGL_J2212.9-2526_daily_bin392.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.45e-03', comment='SUCCESS', photon_flux='4.86e-08', energy_flux2='1.67e-05', photon_flux_error='3.55e-08', dlogl='8.68e-01', energy_flux='1.98e-05', photon_flux2='8.90e-08', job_status='DONE', time_completed='2021-09-28 07:15:33.277932', photon_index_error2='0.76', photon_index2='3.14', ts='3.24', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='1.23e-07', energy_flux_error2='9.54e-06', EG='0.99', time_epoch_completed='1632838533.28', return_code='0', job_id='221259', GAL2='0.71', EG2='0.93', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='5.40e-08', ts2='5.09', photon_index='2.26' WHERE bin_id='392' AND source_name='4FGL J2212.9-2526' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:15:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 221259: <4FGL_J2212.9-2526_daily_bin392> in cluster <slac> Done

Job <4FGL_J2212.9-2526_daily_bin392> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 07:00:31 2021
Job was executed on host(s) <bullet0159>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 07:00:33 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:33 2021
Terminated at Tue Sep 28 07:15:34 2021
Results reported at Tue Sep 28 07:15:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2212.9-2526_daily_bin392 333.226 -25.4335 340934401 341193601 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 :                                   667.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             270.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            903 sec.

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

