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


Performing analysis on: 4FGL_J2212.9-2526_daily_bin599
RA = 333.226, Dec = -25.4335
tmin = 394588801, tmax = 394848001
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='221560', job_status='RUN', time_executed='2021-09-28 07:04:33.160075', time_epoch_executed='1632837873.16' WHERE source_name='4FGL J2212.9-2526' and cadence='daily' and bin_id='599'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/221560

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/221560/ft1_4FGL_J2212.9-2526_daily_bin599.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/221560/ft2_4FGL_J2212.9-2526_daily_bin599.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/221560/ft1_4FGL_J2212.9-2526_daily_bin599.fits outfile=/scratch/kocevski/221560/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin599.fits ra=333.226 dec=-25.4335 rad=12.0 tmin=394588801.0 tmax=394848001.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 4.57
user 4.35
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/221560/ft2_4FGL_J2212.9-2526_daily_bin599.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/221560/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin599.fits evtable="EVENTS" outfile="/scratch/kocevski/221560/ft1_filtered_4FGL_J2212.9-2526_daily_bin599.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/221560/ft1_filtered_4FGL_J2212.9-2526_daily_bin599.fits" evtable="EVENTS" scfile=/scratch/kocevski/221560/ft2_4FGL_J2212.9-2526_daily_bin599.fits sctable="SC_DATA" outfile=/scratch/kocevski/221560/ltcube_394588801_394848001_4FGL_J2212.9-2526_daily_bin599.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/221560/ft2_4FGL_J2212.9-2526_daily_bin599.fits
.....................!
real 11.87
user 11.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/221560/ft1_filtered_4FGL_J2212.9-2526_daily_bin599.fits evtable="EVENTS" scfile=/scratch/kocevski/221560/ft2_4FGL_J2212.9-2526_daily_bin599.fits sctable="SC_DATA" expcube=/scratch/kocevski/221560/ltcube_394588801_394848001_4FGL_J2212.9-2526_daily_bin599.fits outfile=/scratch/kocevski/221560/expmap_394588801_394848001_4FGL_J2212.9-2526_daily_bin599.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/221560/ltcube_394588801_394848001_4FGL_J2212.9-2526_daily_bin599.fits
.....................!
real 191.63
user 186.50
sys 4.82

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/221560/ft1_filtered_4FGL_J2212.9-2526_daily_bin599.fits scfile=/scratch/kocevski/221560/ft2_4FGL_J2212.9-2526_daily_bin599.fits outfile=/scratch/kocevski/221560/cmap_394588801_394848001_4FGL_J2212.9-2526_daily_bin599.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/221560/ft1_filtered_4FGL_J2212.9-2526_daily_bin599.fits scfile=/scratch/kocevski/221560/ft2_4FGL_J2212.9-2526_daily_bin599.fits outfile=/scratch/kocevski/221560/cmap_HighResolution_394588801_394848001_4FGL_J2212.9-2526_daily_bin599.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/221560/ft1_filtered_4FGL_J2212.9-2526_daily_bin599.fits evtable="EVENTS" scfile=/scratch/kocevski/221560/ft2_4FGL_J2212.9-2526_daily_bin599.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/221560/Model_4FGL_J2212.9-2526_daily_bin599.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/221560/ft1_filtered_4FGL_J2212.9-2526_daily_bin599.fits.....................!
real 41.50
user 40.22
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    8.4447       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    41.143       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    15.412       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.5054       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1710       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    66.056       1.0000         .10000E-03   10000.    
    16 'Prefactor '    29.707       1.0000         .10000E-03   10000.    
    17 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.7619       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .27298E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    27.128       1.0000         .10000E-03   10000.    
    23 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.595       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .75049       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1765       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=   4558.211     FROM MIGRAD    STATUS=CONVERGED   1064 CALLS     4016 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.6215        .14163E-02** at limit **
   2  Prefactor     8.4449        13.183        .13795E-03   -.69721E-04
   3  Prefactor     .10000E-03    28.804        .18142E-02** at limit **
   4  norm          .10000E-03    7.6023        .18131E-02** at limit **
   5  Prefactor     41.133        30.694        .62494E-04    .12734E-05
   6  Prefactor     .10000E-03    9.8812        .18142E-02** at limit **
   7  Prefactor     .10000E-03    35.670        .18142E-02** at limit **
   8  norm          15.408        8.0452        .10202E-03    .40261E-03
   9  Prefactor     .10000E-03    5.4602        .15406E-02** at limit **
  10  norm          1.5053        .55274        .28374E-04    .17797E-02
  11  Prefactor     .10000E-03    4.4884        .13961E-02** at limit **
  12  Prefactor     1.1454        152.26        .42402E-02    .28185E-03
  13  Prefactor     .10000E-03    8.7928        .18142E-02** at limit **
  14  Prefactor     .10000E-03    21.114        .18142E-02** at limit **
  15  norm          66.051        37.740        .49380E-04    .11672E-03
  16  Prefactor     29.704        22.120        .73508E-04    .22673E-03
  17  norm          .10000E-03    3.5815        .18556E-02** at limit **
  18  Prefactor     8.7433        138.22        .13541E-03   -.10159E-04
  19  Prefactor     .10000E-03    5.9109        .16019E-02** at limit **
  20  norm          .10000E-03    4.2925        .13543E-02** at limit **
  21  Prefactor     .10000E-03    241.80        .54200E-02** at limit **
  22  Prefactor     27.125        15.603        .76916E-04    .15505E-03
  23  norm          .10000E-03    1.1667        .99401E-03** at limit **
  24  Prefactor     17.600        18.305        .95481E-04    .63701E-04
  25  Normalizat    .75107        .31385        .33776E-03    .38820E-03
  26  Prefactor     1.1761        .23086        .21723E-03    .71782E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 8.44494
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 41.1328
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.4082
  Prefactor  = 0.0001
  norm       = 1.50534
  Prefactor  = 0.0001
  Prefactor  = 1.14541
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 66.0508
  Prefactor  = 29.7037
  norm       = 0.000100001
  Prefactor  = 8.74334
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 27.1253
  norm       = 0.0001
  Prefactor  = 17.6001
  Normalizat = 0.751071
  Prefactor  = 1.1761
 **********
 **   18 **HESSE 
 **********

 FCN=   4558.211     FROM HESSE     STATUS=OK           432 CALLS     4448 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.6217        .28327E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.4449        13.180        .55180E-05   -1.5127    
   3  Prefactor     .10000E-03    28.826        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    7.6038        .36263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     41.133        30.695        .24998E-05   -1.4424    
   6  Prefactor     .10000E-03    9.8815        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    35.671        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          15.408        8.0450        .40809E-05   -1.4923    
   9  Prefactor     .10000E-03    5.4602        .30812E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.5053        .55273        .56749E-05   -1.5463    
  11  Prefactor     .10000E-03    4.4885        .27921E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.1454        151.03        .84804E-03   -1.5494    
  13  Prefactor     .10000E-03    8.7956        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.114        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          66.051        37.739        .98761E-05   -1.4081    
  16  Prefactor     29.704        22.120        .14702E-04   -1.4617    
  17  norm          .10000E-03    3.5876        .37113E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.7433        138.33        .54166E-05   -1.5116    
  19  Prefactor     .10000E-03    5.9112        .32038E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    4.2934        .27085E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    247.81        .21680E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     27.125        15.464        .30766E-05   -1.4666    
  23  norm          .10000E-03    1.1684        .19880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     17.600        18.306        .38193E-05   -1.4869    
  25  Normalizat    .75107        .31303        .67552E-04   -1.0191    
  26  Prefactor     1.1761        .23095        .43446E-04   -.87070    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41244e-09
Minuit parameter uncertainties:
  1  1.43748e-05
  2  13.1845
  3  0.000368811
  4  5.3765e-05
  5  30.7069
  6  8.58348e-06
  7  5.51996e-05
  8  8.04559
  9  1.51284e-05
  10  0.552736
  11  4.59365e-05
  12  26.3721
  13  0.000112795
  14  5.04764e-05
  15  37.7526
  16  22.1256
  17  0.000127672
  18  69.7454
  19  2.43862e-05
  20  1.75594e-07
  21  0.00133458
  22  15.4661
  23  1.50588e-05
  24  18.3115
  25  0.313784
  26  0.231147
Done.

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

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  1.145e+00  2.637e+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.176e+00  2.311e-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.511e-01  3.138e-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.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/221560/likelihoodResults_394588801_394848001_4FGL_J2212.9-2526_daily_bin599.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) = 4557.8030417
delta logL = 0.407674192889

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4557.79386711
delta logL = 0.416848784772

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9544       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4805       1.0000          .0000       10.000    
     3 'Normalizat'    .66862       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2101       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=   4557.794     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      280 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9534        36.675        .14653E-03   -.78634E-03
   2  Index         3.4799        2.7540        .60963E-02   -.17468E-03
   3  Normalizat    .66840        .29538        .35647E-03   -.37556E-03
   4  Prefactor     1.2104        .22803        .21448E-03   -.47641E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.95337
  Index      = 3.47989
  Normalizat = 0.668401
  Prefactor  = 1.21036
 **********
 **   18 **HESSE 
 **********

 FCN=   4557.794     FROM HESSE     STATUS=OK            25 CALLS      305 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9534        10.628        .58612E-05   -1.5310    
   2  Index         3.4799        1.2770        .24385E-03   -.30891    
   3  Normalizat    .66840        .29585        .14259E-04   -1.0515    
   4  Prefactor     1.2104        .22746        .42896E-04   -.86013    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.51906e-10
Minuit parameter uncertainties:
  1  10.6332
  2  1.29285
  3  0.29656
  4  0.22764
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/221560': 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) = 4557.79386524
delta logL = 0.416850654779

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  3.953e+00  1.063e+01  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  3.480e+00  1.293e+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:  1.210e+00  2.276e-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:  6.684e-01  2.966e-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/221560/cmap_HighResolution_394588801_394848001_4FGL_J2212.9-2526_daily_bin599.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.65e-03', job_status='DONE', photon_flux_upper_limit='1.26e-07', time_completed='2021-09-28 07:14:44.355607', job_id='221560', GAL2='1.21', fit_tolerance='1e-08', EG2='0.67', EG='0.75', time_epoch_completed='1632838484.36', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='4.17e-01', ts2='0.92', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='599' AND source_name='4FGL J2212.9-2526' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:14:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 221560: <4FGL_J2212.9-2526_daily_bin599> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2212.9-2526_daily_bin599 333.226 -25.4335 394588801 394848001 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 :                                   608.01 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             243.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            831 sec.

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

