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


Performing analysis on: 4FGL_J2212.9-2526_daily_bin604
RA = 333.226, Dec = -25.4335
tmin = 395884801, tmax = 396144001
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='221567', job_status='RUN', time_executed='2021-09-28 07:02:54.218101', time_epoch_executed='1632837774.22' WHERE source_name='4FGL J2212.9-2526' and cadence='daily' and bin_id='604'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/221567

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/221567/ft1_4FGL_J2212.9-2526_daily_bin604.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/221567/ft2_4FGL_J2212.9-2526_daily_bin604.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/221567/ft1_4FGL_J2212.9-2526_daily_bin604.fits outfile=/scratch/kocevski/221567/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin604.fits ra=333.226 dec=-25.4335 rad=12.0 tmin=395884801.0 tmax=396144001.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.30
user 3.08
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/221567/ft1_filtered_4FGL_J2212.9-2526_daily_bin604.fits" evtable="EVENTS" scfile=/scratch/kocevski/221567/ft2_4FGL_J2212.9-2526_daily_bin604.fits sctable="SC_DATA" outfile=/scratch/kocevski/221567/ltcube_395884801_396144001_4FGL_J2212.9-2526_daily_bin604.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/221567/ft2_4FGL_J2212.9-2526_daily_bin604.fits
.....................!
real 11.77
user 11.38
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/221567/ft1_filtered_4FGL_J2212.9-2526_daily_bin604.fits evtable="EVENTS" scfile=/scratch/kocevski/221567/ft2_4FGL_J2212.9-2526_daily_bin604.fits sctable="SC_DATA" expcube=/scratch/kocevski/221567/ltcube_395884801_396144001_4FGL_J2212.9-2526_daily_bin604.fits outfile=/scratch/kocevski/221567/expmap_395884801_396144001_4FGL_J2212.9-2526_daily_bin604.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/221567/ltcube_395884801_396144001_4FGL_J2212.9-2526_daily_bin604.fits
.....................!
real 190.22
user 184.42
sys 5.48

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/221567/ft1_filtered_4FGL_J2212.9-2526_daily_bin604.fits scfile=/scratch/kocevski/221567/ft2_4FGL_J2212.9-2526_daily_bin604.fits outfile=/scratch/kocevski/221567/cmap_395884801_396144001_4FGL_J2212.9-2526_daily_bin604.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/221567/ft1_filtered_4FGL_J2212.9-2526_daily_bin604.fits scfile=/scratch/kocevski/221567/ft2_4FGL_J2212.9-2526_daily_bin604.fits outfile=/scratch/kocevski/221567/cmap_HighResolution_395884801_396144001_4FGL_J2212.9-2526_daily_bin604.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/221567/ft1_filtered_4FGL_J2212.9-2526_daily_bin604.fits evtable="EVENTS" scfile=/scratch/kocevski/221567/ft2_4FGL_J2212.9-2526_daily_bin604.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/221567/Model_4FGL_J2212.9-2526_daily_bin604.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/221567/ft1_filtered_4FGL_J2212.9-2526_daily_bin604.fits.....................!
real 44.88
user 43.58
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6282       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.948       1.0000         .10000E-03   10000.    
     4 'norm      '    16.534       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.8344       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8598       1.0000         .10000E-03   10000.    
     7 'Prefactor '    168.33       1.0000         .10000E-03   10000.    
     8 'norm      '    .16473E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.472       1.0000         .10000E-03   10000.    
    10 'norm      '    1.2084       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0321       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    55.538       1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.8684       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .89823       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.4215       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .50875E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1257       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .66515       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4960E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5218.673     FROM MIGRAD    STATUS=CONVERGED     98 CALLS     2635 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6275        2.3654       -.16820E-07   -.27250E-02
   2  Prefactor     .10000E-03    4.3617       -.31926E-06** at limit **
   3  Prefactor     17.950        1.7808       -.69832E-07    .39428E-03
   4  norm          16.538        1.9798       -.20536E-07   -.28044E-02
   5  Prefactor     4.8404        1.3631        .68568E-07   -.64791E-05
   6  Prefactor     4.8685        1.8139        .14892E-06    .70063E-03
   7  Prefactor     168.37        14.325        .23829E-06   -.32729E-01
   8  norm          .10194E-03    122.17       -.17611E-05** at limit **
   9  Prefactor     34.465        1.2709       -.17915E-07    .33876E-03
  10  norm          1.2093        .41724        .63953E-07    .16969E-02
  11  Prefactor     .10000E-03    3.5991        .31691E-06** at limit **
  12  Prefactor     .10000E-03    4.1668        .51811E-06** at limit **
  13  Prefactor     5.0298        7.1875       -.10411E-06   -.16508E-02
  14  Prefactor     .10000E-03    19.299        .96560E-06** at limit **
  15  norm          55.532        1.2404       -.18645E-07    .30411E-03
  16  Prefactor     8.8643        1.5390        .70494E-08   -.63797E-03
  17  norm          .10000E-03    .84838       -.60592E-06** at limit **
  18  Prefactor     .10041E-03    39.905        .51851E-05** at limit **
  19  Prefactor     .87823        2.8975        .39751E-07   -.64061E-03
  20  norm          .10000E-03    1.7871        .67588E-06** at limit **
  21  Prefactor     9.4241        1.5525       -.42026E-08   -.10587E-02
  22  Prefactor     .10359E-03    35.625       -.16781E-06** at limit **
  23  norm          .10000E-03    .31057       -.23368E-07** at limit **
  24  Prefactor     .10000E-03    4.6220        .11729E-05** at limit **
  25  Normalizat    1.1260        .22142        .35752E-05    .43282E-03
  26  Prefactor     .66508        .17514       -.20937E-05    .26232E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.6275
  Prefactor  = 0.0001
  Prefactor  = 17.9504
  norm       = 16.5382
  Prefactor  = 4.84039
  Prefactor  = 4.86845
  Prefactor  = 168.37
  norm       = 0.000101939
  Prefactor  = 34.4649
  norm       = 1.2093
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.02977
  Prefactor  = 0.000100003
  norm       = 55.532
  Prefactor  = 8.86428
  norm       = 0.0001
  Prefactor  = 0.000100408
  Prefactor  = 0.878226
  norm       = 0.0001
  Prefactor  = 9.42409
  Prefactor  = 0.000103592
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.12596
  Prefactor  = 0.665084
 **********
 **   18 **HESSE 
 **********

 FCN=   5218.673     FROM HESSE     STATUS=OK           532 CALLS     3167 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6275        6.9015        .53026E-02   -1.5327    
   2  Prefactor     .10000E-03    4.3274        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.950        15.850        .23635E-02   -1.4860    
   4  norm          16.538        9.1267        .24625E-02   -1.4894    
   5  Prefactor     4.8404        33.887        .45740E-02   -1.5268    
   6  Prefactor     4.8685        110.42        .45618E-02   -1.5267    
   7  Prefactor     168.37        129.97        .77733E-03   -1.3105    
   8  norm          .10194E-03    2.9795        .74696E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     34.465        23.242        .17063E-02   -1.4533    
  10  norm          1.2093        .43402        .60029E-02   -1.5488    
  11  Prefactor     .10000E-03    3.5938        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.1659        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.0298        7.6282        .44814E-02   -1.5259    
  14  Prefactor     .10000E-03    19.381        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          55.532        26.121        .13456E-02   -1.4216    
  16  Prefactor     8.8643        10.995        .33648E-02   -1.5112    
  17  norm          .10000E-03    .84434        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10041E-03    40.071        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .87823        11.791        .74847E-01   -1.5521    
  20  norm          .10000E-03    1.7801        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.4241        9.5483        .32641E-02   -1.5094    
  22  Prefactor     .10359E-03    4.3721        .80339E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .21539        .15963E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    4.5867        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1260        .20423        .54179E-01   -.88923    
  26  Prefactor     .66508        .15326        .41935E-01   -1.0491    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18768e-05
Minuit parameter uncertainties:
  1  6.90304
  2  2.27474e-05
  3  15.8536
  4  9.1275
  5  25.6351
  6  46.4682
  7  130.192
  8  0.00480783
  9  23.2482
  10  0.434026
  11  1.52107e-05
  12  3.11583e-05
  13  7.62967
  14  0.00048572
  15  26.1259
  16  10.9978
  17  1.50054e-05
  18  0.00809097
  19  6.43707
  20  2.45624e-05
  21  9.54989
  22  0.00792637
  23  3.45572e-07
  24  6.85881e-05
  25  0.204374
  26  0.153357
Done.

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

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  1.000e-04  3.116e-05  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  2.255e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
243        Scale:  1.123e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  6.651e-01  1.534e-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.126e+00  2.044e-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: 4.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/221567/likelihoodResults_395884801_396144001_4FGL_J2212.9-2526_daily_bin604.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) = 5218.6743589
delta logL = -0.0011256782409

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5218.67323307
delta logL = 1.56170244736e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2349       1.0000          .0000       10.000    
     3 'Normalizat'    1.1260       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66506       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=   5218.673     FROM MIGRAD    STATUS=CONVERGED    112 CALLS      264 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.959        .14647E-01** at limit **
   2  Index         1.6559        7.8316        .50000       -.10001E-05
   3  Normalizat    1.1260        .10132E-01    .23956E-03   -.14781E-03
   4  Prefactor     .66509        .80703E-02    .24098E-03   -.14582E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.65594
  Normalizat = 1.12596
  Prefactor  = 0.665085
 **********
 **   18 **HESSE 
 **********

 FCN=   5218.673     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      291 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    225.22        .16679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6559        9.0895        .50000       -.73261    
   3  Normalizat    1.1260        .31799E-01    .47912E-04   -.88923    
   4  Prefactor     .66509        .25329E-01    .96391E-05   -1.0491    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.85361e-08
Minuit parameter uncertainties:
  1  6.26447e-06
  2  901.347
  3  0.0317995
  4  0.0253296
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/221567': 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) = 5218.67323017
delta logL = 3.05390130961e-06

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  1.000e-04  6.264e-06  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  1.656e+00  9.013e+02  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:  6.651e-01  2.533e-02  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.126e+00  3.180e-02  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/221567/cmap_HighResolution_395884801_396144001_4FGL_J2212.9-2526_daily_bin604.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.34e-03', job_status='DONE', photon_flux_upper_limit='4.36e-08', time_completed='2021-09-28 07:12:58.744409', job_id='221567', GAL2='0.67', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1632838378.74', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.67', dlogl='3.05e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='604' AND source_name='4FGL J2212.9-2526' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:12:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 221567: <4FGL_J2212.9-2526_daily_bin604> in cluster <slac> Done

Job <4FGL_J2212.9-2526_daily_bin604> 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) <bullet0220>, 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:12:59 2021
Results reported at Tue Sep 28 07:12:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2212.9-2526_daily_bin604 333.226 -25.4335 395884801 396144001 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 :                                   584.31 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             292.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   722 sec.
    Turnaround time :                            725 sec.

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

