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


Performing analysis on: 4FGL_J2212.9-2526_daily_bin393
RA = 333.226, Dec = -25.4335
tmin = 341193601, tmax = 341452801
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='221261', job_status='RUN', time_executed='2021-09-28 07:03:40.095860', time_epoch_executed='1632837820.1' WHERE source_name='4FGL J2212.9-2526' and cadence='daily' and bin_id='393'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/221261

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/221261/ft1_4FGL_J2212.9-2526_daily_bin393.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/221261/ft2_4FGL_J2212.9-2526_daily_bin393.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/221261/ft1_4FGL_J2212.9-2526_daily_bin393.fits outfile=/scratch/kocevski/221261/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin393.fits ra=333.226 dec=-25.4335 rad=12.0 tmin=341193601.0 tmax=341452801.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.45
user 3.21
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/221261/ft1_filtered_4FGL_J2212.9-2526_daily_bin393.fits" evtable="EVENTS" scfile=/scratch/kocevski/221261/ft2_4FGL_J2212.9-2526_daily_bin393.fits sctable="SC_DATA" outfile=/scratch/kocevski/221261/ltcube_341193601_341452801_4FGL_J2212.9-2526_daily_bin393.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/221261/ft2_4FGL_J2212.9-2526_daily_bin393.fits
.....................!
real 11.87
user 11.48
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/221261/ft1_filtered_4FGL_J2212.9-2526_daily_bin393.fits evtable="EVENTS" scfile=/scratch/kocevski/221261/ft2_4FGL_J2212.9-2526_daily_bin393.fits sctable="SC_DATA" expcube=/scratch/kocevski/221261/ltcube_341193601_341452801_4FGL_J2212.9-2526_daily_bin393.fits outfile=/scratch/kocevski/221261/expmap_341193601_341452801_4FGL_J2212.9-2526_daily_bin393.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/221261/ltcube_341193601_341452801_4FGL_J2212.9-2526_daily_bin393.fits
.....................!
real 191.15
user 185.43
sys 5.36

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/221261/ft1_filtered_4FGL_J2212.9-2526_daily_bin393.fits scfile=/scratch/kocevski/221261/ft2_4FGL_J2212.9-2526_daily_bin393.fits outfile=/scratch/kocevski/221261/cmap_341193601_341452801_4FGL_J2212.9-2526_daily_bin393.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/221261/ft1_filtered_4FGL_J2212.9-2526_daily_bin393.fits scfile=/scratch/kocevski/221261/ft2_4FGL_J2212.9-2526_daily_bin393.fits outfile=/scratch/kocevski/221261/cmap_HighResolution_341193601_341452801_4FGL_J2212.9-2526_daily_bin393.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.55
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/221261/ft1_filtered_4FGL_J2212.9-2526_daily_bin393.fits evtable="EVENTS" scfile=/scratch/kocevski/221261/ft2_4FGL_J2212.9-2526_daily_bin393.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/221261/Model_4FGL_J2212.9-2526_daily_bin393.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/221261/ft1_filtered_4FGL_J2212.9-2526_daily_bin393.fits....................!
real 60.98
user 59.51
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .28704E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.1979       1.0000         .10000E-03   10000.    
     4 'norm      '    3.3524       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.573       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.1849       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.2726       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0049       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .84869E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.7156       1.0000         .10000E-03   10000.    
    17 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.2537       1.0000         .10000E-03   10000.    
    20 'norm      '    .10496E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.250       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .99338       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3828       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .73424       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.

 FCN=   7410.650     FROM MIGRAD    STATUS=CONVERGED    640 CALLS     2699 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.5317         .0000    ** at limit **
   2  Prefactor     .10000E-03    2.7738         .0000    ** at limit **
   3  Prefactor     8.1964        11.489         .0000        .82201E-04
   4  norm          3.3522        5.9236         .0000        .11254E-01
   5  Prefactor     19.571        16.515         .0000       -.44711E-04
   6  Prefactor     .10000E-03    5.7811         .0000    ** at limit **
   7  Prefactor     .10000E-03    15.800         .0000    ** at limit **
   8  norm          8.1845        4.0135         .0000        .43871E-03
   9  Prefactor     2.2735        16.113         .0000        .40384E-02
  10  norm          1.0049        .32107         .0000       -.22598E-03
  11  Prefactor     .10000E-03    2.2853         .0000    ** at limit **
  12  Prefactor     .10000E-03    7.4046         .0000    ** at limit **
  13  Prefactor     .10000E-03    2.0316         .0000    ** at limit **
  14  Prefactor     .10000E-03    30.055         .0000    ** at limit **
  15  norm          .10000E-03    3.4677         .0000    ** at limit **
  16  Prefactor     9.7145        11.390         .0000        .19602E-02
  17  norm          .10000E-03    .74432         .0000    ** at limit **
  18  Prefactor     .10000E-03    18.107         .0000    ** at limit **
  19  Prefactor     3.2527        10.244         .0000        .21137E-03
  20  norm          .10000E-03    1.2590         .0000    ** at limit **
  21  Prefactor     12.250        8.7231         .0000       -.13676E-03
  22  Prefactor     .10000E-03    2.7049         .0000    ** at limit **
  23  norm          .99342        .47505         .0000        .56592E-04
  24  Prefactor     .10000E-03    3.7178         .0000    ** at limit **
  25  Normalizat    1.3828        .18176         .0000        .49755E-04
  26  Prefactor     .73422        .14189         .0000        .60482E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.1964
  norm       = 3.35216
  Prefactor  = 19.5712
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.18452
  Prefactor  = 2.27353
  norm       = 1.00486
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.71453
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.25269
  norm       = 0.0001
  Prefactor  = 12.2505
  Prefactor  = 0.0001
  norm       = 0.993421
  Prefactor  = 0.0001
  Normalizat = 1.38284
  Prefactor  = 0.734219
 **********
 **   18 **HESSE 
 **********

 FCN=   7410.650     FROM HESSE     STATUS=OK           464 CALLS     3163 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.357        .31519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.7844        .14000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.1964        11.480        .14002E-03   -1.5135    
   4  norm          3.3522        5.9126        .11052E-02   -1.5342    
   5  Prefactor     19.571        16.504        .90531E-04   -1.4823    
   6  Prefactor     .10000E-03    5.7896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.1845        4.0179        .11301E-03   -1.5136    
   9  Prefactor     2.2735        16.073        .13621E-02   -1.5406    
  10  norm          1.0049        .32179        .26285E-04   -1.5507    
  11  Prefactor     .10000E-03    2.2895        .12708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    65.268        .45294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.0413        .11981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    30.121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.4681        .15656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.7145        11.472        .64281E-03   -1.5085    
  17  norm          .10000E-03    1.3678        .14424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.2527        10.318        .22453E-03   -1.5347    
  20  norm          .10000E-03    2.5652        .18644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.250        8.7166        .57227E-03   -1.5008    
  22  Prefactor     .10000E-03    2.7213        .13802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .99342        .47197        .38908E-04   -1.5509    
  24  Prefactor     .10000E-03    3.7441        .16203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3828        .22014        .23292E-03   -.81126    
  26  Prefactor     .73422        .17096        .25015E-03   -1.0220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07129e-10
Minuit parameter uncertainties:
  1  6.23329e-06
  2  1.68668e-06
  3  11.4828
  4  5.91365
  5  16.5079
  6  8.19321e-06
  7  3.1689e-06
  8  4.01803
  9  12.0945
  10  0.321791
  11  1.45881e-06
  12  0.000261406
  13  1.00403e-06
  14  6.01443e-06
  15  5.65641e-07
  16  11.4746
  17  2.4187e-07
  18  4.59662e-05
  19  10.3239
  20  2.12324e-07
  21  8.7175
  22  3.29631e-06
  23  0.471972
  24  2.61061e-06
  25  0.220288
  26  0.171085
Done.

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

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  1.000e-04  2.614e-04  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.342e-01  1.711e-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.383e+00  2.203e-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: 5.34e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.09e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/221261/likelihoodResults_341193601_341452801_4FGL_J2212.9-2526_daily_bin393.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) = 7410.65010325
delta logL = -7.07684939698e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7410.65003458
delta logL = -2.10393864108e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .14016E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3683       1.0000          .0000       10.000    
     3 'Normalizat'    1.3829       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73432       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.

 FCN=   7410.641     FROM MIGRAD    STATUS=CONVERGED    137 CALLS      316 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .41668        4.8722        .61265E-01    .80016E-03
   2  Index         3.1251        .59741        .50000        .50851E-05
   3  Normalizat    1.3782        .71732E-02    .52757E-01    .12893E-03
   4  Prefactor     .73596        .58420E-02    .42856E-01    .17936E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.416683
  Index      = 3.12509
  Normalizat = 1.37823
  Prefactor  = 0.735957
 **********
 **   18 **HESSE 
 **********

 FCN=   7410.641     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      349 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .41668        1208.6        .22099E-02   -1.5579    
   2  Index         3.1251        8.4374        .64692E-02   -.38438    
   3  Normalizat    1.3782        .15306        .23326E-03   -.81260    
   4  Prefactor     .73596        .12328        .24989E-03   -1.0213    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.03014e-08
Minuit parameter uncertainties:
  1  45.8339
  2  49.2161
  3  0.15311
  4  0.123321
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/221261': 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): 102
logL (Free Index) = 7410.64130481
delta logL = 0.00872766910197

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  4.167e-01  4.583e+01  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  3.125e+00  4.922e+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.360e-01  1.233e-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.378e+00  1.531e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/221261/cmap_HighResolution_341193601_341452801_4FGL_J2212.9-2526_daily_bin393.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.09e-03', job_status='DONE', photon_flux_upper_limit='5.34e-08', time_completed='2021-09-28 07:15:51.062504', job_id='221261', GAL2='0.74', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1632838551.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='8.73e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='393' AND source_name='4FGL J2212.9-2526' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:15:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 221261: <4FGL_J2212.9-2526_daily_bin393> in cluster <slac> Done

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

Your job looked like:

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

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

