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


Performing analysis on: 4FGL_J2212.9-2526_daily_bin404
RA = 333.226, Dec = -25.4335
tmin = 344044801, tmax = 344304001
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='221277', job_status='RUN', time_executed='2021-09-28 07:02:50.953079', time_epoch_executed='1632837770.95' WHERE source_name='4FGL J2212.9-2526' and cadence='daily' and bin_id='404'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/221277

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/221277/ft1_4FGL_J2212.9-2526_daily_bin404.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/221277/ft2_4FGL_J2212.9-2526_daily_bin404.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/221277/ft1_4FGL_J2212.9-2526_daily_bin404.fits outfile=/scratch/kocevski/221277/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin404.fits ra=333.226 dec=-25.4335 rad=12.0 tmin=344044801.0 tmax=344304001.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.39
user 3.14
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/221277/ft1_filtered_4FGL_J2212.9-2526_daily_bin404.fits" evtable="EVENTS" scfile=/scratch/kocevski/221277/ft2_4FGL_J2212.9-2526_daily_bin404.fits sctable="SC_DATA" outfile=/scratch/kocevski/221277/ltcube_344044801_344304001_4FGL_J2212.9-2526_daily_bin404.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/221277/ft2_4FGL_J2212.9-2526_daily_bin404.fits
.....................!
real 12.01
user 11.65
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/221277/ft1_filtered_4FGL_J2212.9-2526_daily_bin404.fits evtable="EVENTS" scfile=/scratch/kocevski/221277/ft2_4FGL_J2212.9-2526_daily_bin404.fits sctable="SC_DATA" expcube=/scratch/kocevski/221277/ltcube_344044801_344304001_4FGL_J2212.9-2526_daily_bin404.fits outfile=/scratch/kocevski/221277/expmap_344044801_344304001_4FGL_J2212.9-2526_daily_bin404.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/221277/ltcube_344044801_344304001_4FGL_J2212.9-2526_daily_bin404.fits
.....................!
real 189.55
user 185.00
sys 4.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/221277/ft1_filtered_4FGL_J2212.9-2526_daily_bin404.fits scfile=/scratch/kocevski/221277/ft2_4FGL_J2212.9-2526_daily_bin404.fits outfile=/scratch/kocevski/221277/cmap_344044801_344304001_4FGL_J2212.9-2526_daily_bin404.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/221277/ft1_filtered_4FGL_J2212.9-2526_daily_bin404.fits scfile=/scratch/kocevski/221277/ft2_4FGL_J2212.9-2526_daily_bin404.fits outfile=/scratch/kocevski/221277/cmap_HighResolution_344044801_344304001_4FGL_J2212.9-2526_daily_bin404.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/221277/ft1_filtered_4FGL_J2212.9-2526_daily_bin404.fits evtable="EVENTS" scfile=/scratch/kocevski/221277/ft2_4FGL_J2212.9-2526_daily_bin404.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/221277/Model_4FGL_J2212.9-2526_daily_bin404.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/221277/ft1_filtered_4FGL_J2212.9-2526_daily_bin404.fits.....................!
real 41.76
user 40.44
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8221       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    11.156       1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.628       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11791E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    15.221       1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.996       1.0000         .10000E-03   10000.    
    10 'norm      '    1.1583       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.453       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    89.871       1.0000         .10000E-03   10000.    
    19 'Prefactor '    43.441       1.0000         .10000E-03   10000.    
    20 'norm      '    17.456       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .36436       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1634       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .81589       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=   4374.886     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3118 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8195        8.8842       -.69054E-06   -.49778E-04
   2  Prefactor     .10000E-03    6.2342       -.30868E-07** at limit **
   3  Prefactor     11.149        19.607        .21119E-05   -.63593E-04
   4  norm          .10000E-03    4.7609        .13851E-09** at limit **
   5  Prefactor     20.630        20.074       -.35516E-06    .12933E-04
   6  Prefactor     .10000E-03    23.829       -.32347E-07** at limit **
   7  Prefactor     .10000E-03    501.87       -.27185E-05** at limit **
   8  norm          15.219        7.4695       -.65742E-06   -.13971E-02
   9  Prefactor     11.998        18.892        .40858E-06   -.32689E-04
  10  norm          1.1583        .50114        .32305E-07    .12288E-03
  11  Prefactor     13.449        17.791       -.27453E-05    .10330E-03
  12  Prefactor     .10000E-03    62.910       -.12594E-06** at limit **
  13  Prefactor     .10000E-03    4.8160        .55285E-08** at limit **
  14  Prefactor     .10000E-03    30.614        .17787E-06** at limit **
  15  norm          .10000E-03    14.229        .24881E-07** at limit **
  16  Prefactor     .10000E-03    11.212       -.23954E-06** at limit **
  17  norm          .10000E-03    2.4448       -.18465E-06** at limit **
  18  Prefactor     89.877        75.199        .33198E-05   -.48346E-04
  19  Prefactor     43.448        24.454       -.38794E-05    .32758E-03
  20  norm          17.456        7.3869        .13957E-06   -.19009E-04
  21  Prefactor     .10000E-03    11.059        .89019E-07** at limit **
  22  Prefactor     .10000E-03    6.8718       -.25308E-07** at limit **
  23  norm          .36428        .51056       -.19545E-07   -.20102E-03
  24  Prefactor     .10000E-03    4.8574       -.20782E-07** at limit **
  25  Normalizat    1.1632        .26863        .13365E-05   -.15622E-04
  26  Prefactor     .81602        .19569       -.17308E-06    .44641E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.8195
  Prefactor  = 0.0001
  Prefactor  = 11.1489
  norm       = 0.0001
  Prefactor  = 20.6301
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 15.2193
  Prefactor  = 11.9978
  norm       = 1.15827
  Prefactor  = 13.4487
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 89.8775
  Prefactor  = 43.4483
  norm       = 17.4564
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.364282
  Prefactor  = 0.0001
  Normalizat = 1.16322
  Prefactor  = 0.816019
 **********
 **   18 **HESSE 
 **********

 FCN=   4374.886     FROM HESSE     STATUS=OK           454 CALLS     3572 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8195        8.9216        .18320E-03   -1.5269    
   2  Prefactor     .10000E-03    6.2655        .16126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.149        19.574        .11995E-03   -1.5040    
   4  norm          .10000E-03    4.7778        .14094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.630        20.078        .88187E-04   -1.4799    
   6  Prefactor     .10000E-03    23.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    506.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          15.219        8.0470        .51331E-03   -1.4928    
   9  Prefactor     11.998        18.877        .11566E-03   -1.5015    
  10  norm          1.1583        .50485        .29065E-04   -1.5493    
  11  Prefactor     13.449        17.742        .10921E-03   -1.4974    
  12  Prefactor     .10000E-03    63.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.8423        .14175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    30.621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    14.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    11.252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.4834        .20077E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     89.877        75.165        .42385E-04   -1.3809    
  19  Prefactor     43.448        23.965        .60825E-04   -1.4389    
  20  norm          17.456        7.3484        .95862E-04   -1.4872    
  21  Prefactor     .10000E-03    11.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.9135        .16911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .36428        .46587        .53362E-03   -1.5587    
  24  Prefactor     .10000E-03    4.8641        .14236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1632        .33314        .27850E-03   -.87747    
  26  Prefactor     .81602        .24068        .24847E-03   -.99141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07204e-09
Minuit parameter uncertainties:
  1  8.92405
  2  4.45154e-06
  3  19.5848
  4  1.02604e-06
  5  20.0842
  6  2.38354e-05
  7  0.00185351
  8  8.04756
  9  18.8866
  10  0.504855
  11  17.7493
  12  0.000220599
  13  1.08878e-06
  14  2.01034e-05
  15  1.32452e-05
  16  3.17038e-05
  17  2.86872e-05
  18  75.245
  19  23.9707
  20  7.34876
  21  1.24301e-05
  22  2.41205e-06
  23  0.465878
  24  2.82531e-06
  25  0.33375
  26  0.240994
Done.

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

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  1.000e-04  2.206e-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:  8.160e-01  2.410e-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.163e+00  3.337e-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.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/221277/likelihoodResults_344044801_344304001_4FGL_J2212.9-2526_daily_bin404.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) = 4374.88557834
delta logL = -7.44365770515e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4374.88550244
delta logL = 1.46665115608e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57710E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6315       1.0000          .0000       10.000    
     3 'Normalizat'    1.1632       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81602       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4374.866     FROM MIGRAD    STATUS=FAILED       179 CALLS      368 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0054        154.69        .30343E-03   -.30948E-04
   2  Index         3.4524        5.5368        .12770E-01    .13677E-03
   3  Normalizat    1.1418        .32492        .28080E-03    .61539E-05
   4  Prefactor     .82525        .23956        .24721E-03    .75879E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4374.866     FROM SIMPLEX   STATUS=UNCHANGED     87 CALLS      455 TOTAL
                     EDM=   .91E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0054        154.69        .22370E-03   -1.5507    
   2  Index         3.4524        5.5368        .76145E-03   -.31468    
   3  Normalizat    1.1418        .32492        .22335E-03   -.88420    
   4  Prefactor     .82525        .23956        .20312E-03   -.98804    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4374.866     FROM MIGRAD    STATUS=CONVERGED     36 CALLS      491 TOTAL
                     EDM=   .35E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0054        17.858        .12137E-04   -.14800E-04
   2  Index         3.4524        3.3084        .25539E-02    .93036E-06
   3  Normalizat    1.1418        .32557        .11232E-04   -.14170E-05
   4  Prefactor     .82525        .23979        .98885E-05   -.91975E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.00541
  Index      = 3.45243
  Normalizat = 1.14183
  Prefactor  = 0.825247
 **********
 **   18 **HESSE 
 **********

 FCN=   4374.866     FROM HESSE     STATUS=OK            23 CALLS      514 TOTAL
                     EDM=   .25E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0054        15.621        .24274E-05   -1.5507    
   2  Index         3.4524        3.1310        .10216E-03   -.31468    
   3  Normalizat    1.1418        .32445        .22464E-05   -.88420    
   4  Prefactor     .82525        .23892        .19777E-05   -.98804    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5446e-12
Minuit parameter uncertainties:
  1  7.92819
  2  3.41781
  3  0.325018
  4  0.239216
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/221277': 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) = 4374.8660793
delta logL = 0.019424610442

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  1.005e+00  7.928e+00  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  3.452e+00  3.418e+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:  8.252e-01  2.392e-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.142e+00  3.250e-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/221277/cmap_HighResolution_344044801_344304001_4FGL_J2212.9-2526_daily_bin404.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.19e-03', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-28 07:12:32.319054', job_id='221277', GAL2='0.83', fit_tolerance='1e-08', EG2='1.14', EG='1.16', time_epoch_completed='1632838352.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.94e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='404' AND source_name='4FGL J2212.9-2526' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:12:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 221277: <4FGL_J2212.9-2526_daily_bin404> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2212.9-2526_daily_bin404 333.226 -25.4335 344044801 344304001 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 :                                   557.41 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             220.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            720 sec.

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

