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


Performing analysis on: 4FGL_J2212.9-2526_daily_bin407
RA = 333.226, Dec = -25.4335
tmin = 344822401, tmax = 345081601
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='221282', job_status='RUN', time_executed='2021-09-28 07:00:44.416124', time_epoch_executed='1632837644.42' WHERE source_name='4FGL J2212.9-2526' and cadence='daily' and bin_id='407'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/221282

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/221282/ft1_4FGL_J2212.9-2526_daily_bin407.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/221282/ft2_4FGL_J2212.9-2526_daily_bin407.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/221282/ft1_4FGL_J2212.9-2526_daily_bin407.fits outfile=/scratch/kocevski/221282/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin407.fits ra=333.226 dec=-25.4335 rad=12.0 tmin=344822401.0 tmax=345081601.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.43
user 3.21
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/221282/ft1_filtered_4FGL_J2212.9-2526_daily_bin407.fits" evtable="EVENTS" scfile=/scratch/kocevski/221282/ft2_4FGL_J2212.9-2526_daily_bin407.fits sctable="SC_DATA" outfile=/scratch/kocevski/221282/ltcube_344822401_345081601_4FGL_J2212.9-2526_daily_bin407.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/221282/ft2_4FGL_J2212.9-2526_daily_bin407.fits
.....................!
real 12.04
user 11.71
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/221282/ft1_filtered_4FGL_J2212.9-2526_daily_bin407.fits evtable="EVENTS" scfile=/scratch/kocevski/221282/ft2_4FGL_J2212.9-2526_daily_bin407.fits sctable="SC_DATA" expcube=/scratch/kocevski/221282/ltcube_344822401_345081601_4FGL_J2212.9-2526_daily_bin407.fits outfile=/scratch/kocevski/221282/expmap_344822401_345081601_4FGL_J2212.9-2526_daily_bin407.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/221282/ltcube_344822401_345081601_4FGL_J2212.9-2526_daily_bin407.fits
.....................!
real 189.31
user 185.12
sys 3.86

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/221282/ft1_filtered_4FGL_J2212.9-2526_daily_bin407.fits scfile=/scratch/kocevski/221282/ft2_4FGL_J2212.9-2526_daily_bin407.fits outfile=/scratch/kocevski/221282/cmap_344822401_345081601_4FGL_J2212.9-2526_daily_bin407.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.64
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/221282/ft1_filtered_4FGL_J2212.9-2526_daily_bin407.fits scfile=/scratch/kocevski/221282/ft2_4FGL_J2212.9-2526_daily_bin407.fits outfile=/scratch/kocevski/221282/cmap_HighResolution_344822401_345081601_4FGL_J2212.9-2526_daily_bin407.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=333.226 yref=-25.4335 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/221282/ft1_filtered_4FGL_J2212.9-2526_daily_bin407.fits evtable="EVENTS" scfile=/scratch/kocevski/221282/ft2_4FGL_J2212.9-2526_daily_bin407.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/221282/Model_4FGL_J2212.9-2526_daily_bin407.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/221282/ft1_filtered_4FGL_J2212.9-2526_daily_bin407.fits.....................!
real 41.82
user 40.51
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.7493       1.0000         .10000E-03   10000.    
     4 'norm      '    .13019E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.420       1.0000         .10000E-03   10000.    
     8 'norm      '    5.2258       1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.263       1.0000         .10000E-03   10000.    
    10 'norm      '    .76133       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.861       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10168E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .30238       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10052E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.4684       1.0000         .10000E-03   10000.    
    20 'norm      '    25.539       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.8476       1.0000         .10000E-03   10000.    
    23 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .71894       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1620       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=   4685.237     FROM MIGRAD    STATUS=CONVERGED    628 CALLS     3126 TOTAL
                     EDM=   .67E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.5779       -.77496E-09** at limit **
   2  Prefactor     .10000E-03    8.3779        .10366E-07** at limit **
   3  Prefactor     8.7677        18.767        .30444E-06   -.49321E-06
   4  norm          .10001E-03    6.0028       -.80130E-06** at limit **
   5  Prefactor     .10000E-03    44.478       -.16666E-05** at limit **
   6  Prefactor     .10000E-03    11.858       -.75262E-06** at limit **
   7  Prefactor     23.338        68.044        .85126E-05    .12817E-04
   8  norm          5.2304        6.8917        .60031E-06    .87785E-04
   9  Prefactor     27.273        24.596        .10878E-05    .10947E-04
  10  norm          .76131        .39818       -.72204E-07   -.59708E-04
  11  Prefactor     .10000E-03    3.7259       -.68189E-07** at limit **
  12  Prefactor     28.872        20.293        .59781E-06    .21288E-05
  13  Prefactor     .10000E-03    3.0986        .25534E-07** at limit **
  14  Prefactor     .10000E-03    25.431       -.11573E-05** at limit **
  15  norm          .10000E-03    40.662        .21687E-05** at limit **
  16  Prefactor     .10000E-03    9.2402       -.20181E-07** at limit **
  17  norm          .30336        2.6235        .44295E-06    .72951E-05
  18  Prefactor     .10000E-03    295.69        .89361E-06** at limit **
  19  Prefactor     6.4701        8.7844        .88300E-07   -.31612E-05
  20  norm          25.537        8.0964        .79915E-08   -.43066E-04
  21  Prefactor     .10000E-03    10.630        .13455E-06** at limit **
  22  Prefactor     5.8485        10.314        .20786E-06   -.11239E-04
  23  norm          .10000E-03    .28731       -.28841E-08** at limit **
  24  Prefactor     .10000E-03    4.5057        .11717E-07** at limit **
  25  Normalizat    .71877        .23422       -.13537E-05    .25431E-04
  26  Prefactor     1.1621        .18349       -.23139E-06    .19726E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.76772
  norm       = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.3381
  norm       = 5.23044
  Prefactor  = 27.2731
  norm       = 0.761312
  Prefactor  = 0.0001
  Prefactor  = 28.8724
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.303364
  Prefactor  = 0.0001
  Prefactor  = 6.47012
  norm       = 25.5372
  Prefactor  = 0.0001
  Prefactor  = 5.84847
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.71877
  Prefactor  = 1.1621
 **********
 **   18 **HESSE 
 **********

 FCN=   4685.237     FROM HESSE     STATUS=OK           456 CALLS     3582 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.5782        .10733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.5198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.7677        18.752        .13551E-03   -1.5116    
   4  norm          .10001E-03    22.304        .30985E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    45.138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.944        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.338        68.095        .82771E-04   -1.4741    
   8  norm          5.2304        6.9537        .86763E-03   -1.5251    
   9  Prefactor     27.273        24.615        .76726E-04   -1.4663    
  10  norm          .76131        .40076        .28825E-04   -1.5533    
  11  Prefactor     .10000E-03    3.7313        .12903E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     28.872        20.292        .74575E-04   -1.4633    
  13  Prefactor     .10000E-03    3.1043        .11767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    25.424        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    41.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.2778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .30336        2.5899        .21193E-03   -1.5598    
  18  Prefactor     .10000E-03    300.11        .36293E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.4701        8.7859        .15780E-03   -1.5199    
  20  norm          25.537        8.0722        .79268E-04   -1.4697    
  21  Prefactor     .10000E-03    10.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.8485        9.9626        .16608E-03   -1.5224    
  23  norm          .10000E-03    .31983        .68388E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.5095        .14183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .71877        .27150        .31832E-03   -1.0316    
  26  Prefactor     1.1621        .21394        .20648E-03   -.87506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.69653e-10
Minuit parameter uncertainties:
  1  1.80619e-07
  2  7.77616e-06
  3  18.7643
  4  0.00095047
  5  1.31018e-05
  6  7.85162e-05
  7  68.3233
  8  6.95472
  9  24.6244
  10  0.400762
  11  3.19249e-06
  12  20.2964
  13  2.09947e-06
  14  1.51393e-06
  15  2.30816e-05
  16  8.2027e-06
  17  1.77258
  18  0.000236787
  19  8.7877
  20  8.07256
  21  1.02311e-06
  22  9.96542
  23  1.53079e-07
  24  4.68644e-07
  25  0.272008
  26  0.214097
Done.

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

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  2.887e+01  2.030e+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:  1.162e+00  2.141e-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:  7.188e-01  2.720e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.15
Ra Dec: 333.226 -25.433
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 5.38e-08 +/- 3.78e-08
Energy Flux (Fixed Index): 2.19e-05 +/- 1.54e-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) = 4685.22693724
delta logL = 0.00980213278763

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4685.22403095
delta logL = 0.0127084174674

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.526       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1686       1.0000          .0000       10.000    
     3 'Normalizat'    .72319       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1602       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=   4685.224     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      258 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.527        23.858        .72518E-04   -.17637E-03
   2  Index         2.1686        .54702        .64446E-02   -.98613E-04
   3  Normalizat    .72295        .25995        .31746E-03    .27897E-04
   4  Prefactor     1.1604        .20983        .20662E-03    .70219E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.5271
  Index      = 2.16861
  Normalizat = 0.722955
  Prefactor  = 1.16037
 **********
 **   18 **HESSE 
 **********

 FCN=   4685.224     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.527        23.523        .14504E-04   -1.4602    
   2  Index         2.1686        .53917        .25778E-03   -.60198    
   3  Normalizat    .72295        .26012        .12698E-04   -1.0299    
   4  Prefactor     1.1604        .20999        .41324E-04   -.87560    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79578e-10
Minuit parameter uncertainties:
  1  23.5305
  2  0.54072
  3  0.260563
  4  0.210141
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/221282': 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) = 4685.22403052
delta logL = 0.0127088527051

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  3.053e+01  2.353e+01  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  2.169e+00  5.407e-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:  1.160e+00  2.101e-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:  7.230e-01  2.606e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.16
Ra Dec: 333.226 -25.433
Photon Index (Free Index): 2.17 +/- 0.54
Photon Flux (Free Index): 4.96e-08 +/- 4.44e-08
Energy Flux (Free Index): 2.36e-05 +/- 2.06e-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/221282/cmap_HighResolution_344822401_345081601_4FGL_J2212.9-2526_daily_bin407.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.38e-08', energy_flux2='2.36e-05', photon_flux_error='3.78e-08', dlogl='1.27e-02', energy_flux='2.19e-05', photon_flux2='4.96e-08', job_status='DONE', time_completed='2021-09-28 07:09:34.173004', photon_index_error2='0.54', photon_index2='2.17', ts='5.15', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='2.06e-05', EG='0.72', time_epoch_completed='1632838174.17', return_code='0', job_id='221282', GAL2='1.16', EG2='0.72', return_code2='0', energy_flux_error='1.54e-05', photon_flux_error2='4.44e-08', ts2='5.16', photon_index='2.26' WHERE bin_id='407' AND source_name='4FGL J2212.9-2526' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:09:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0046>
Subject: Job 221282: <4FGL_J2212.9-2526_daily_bin407> in cluster <slac> Done

Job <4FGL_J2212.9-2526_daily_bin407> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 07:00:34 2021
Job was executed on host(s) <bullet0046>, 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:09:34 2021
Results reported at Tue Sep 28 07:09:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2212.9-2526_daily_bin407 333.226 -25.4335 344822401 345081601 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 :                                   522.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   539 sec.
    Turnaround time :                            540 sec.

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

