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


Performing analysis on: 4FGL_J2212.9-2526_daily_bin328
RA = 333.226, Dec = -25.4335
tmin = 324345601, tmax = 324604801
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='221161', job_status='RUN', time_executed='2021-09-28 07:04:05.339867', time_epoch_executed='1632837845.34' WHERE source_name='4FGL J2212.9-2526' and cadence='daily' and bin_id='328'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/221161

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/221161/ft1_4FGL_J2212.9-2526_daily_bin328.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/221161/ft2_4FGL_J2212.9-2526_daily_bin328.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/221161/ft1_4FGL_J2212.9-2526_daily_bin328.fits outfile=/scratch/kocevski/221161/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin328.fits ra=333.226 dec=-25.4335 rad=12.0 tmin=324345601.0 tmax=324604801.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 14.49
user 14.05
sys 0.39

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/221161/ft1_filtered_4FGL_J2212.9-2526_daily_bin328.fits" evtable="EVENTS" scfile=/scratch/kocevski/221161/ft2_4FGL_J2212.9-2526_daily_bin328.fits sctable="SC_DATA" outfile=/scratch/kocevski/221161/ltcube_324345601_324604801_4FGL_J2212.9-2526_daily_bin328.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/221161/ft2_4FGL_J2212.9-2526_daily_bin328.fits
.....................!
real 10.60
user 10.27
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/221161/ft1_filtered_4FGL_J2212.9-2526_daily_bin328.fits evtable="EVENTS" scfile=/scratch/kocevski/221161/ft2_4FGL_J2212.9-2526_daily_bin328.fits sctable="SC_DATA" expcube=/scratch/kocevski/221161/ltcube_324345601_324604801_4FGL_J2212.9-2526_daily_bin328.fits outfile=/scratch/kocevski/221161/expmap_324345601_324604801_4FGL_J2212.9-2526_daily_bin328.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/221161/ltcube_324345601_324604801_4FGL_J2212.9-2526_daily_bin328.fits
.....................!
real 193.00
user 185.25
sys 4.47

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/221161/ft1_filtered_4FGL_J2212.9-2526_daily_bin328.fits scfile=/scratch/kocevski/221161/ft2_4FGL_J2212.9-2526_daily_bin328.fits outfile=/scratch/kocevski/221161/cmap_324345601_324604801_4FGL_J2212.9-2526_daily_bin328.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/221161/ft1_filtered_4FGL_J2212.9-2526_daily_bin328.fits scfile=/scratch/kocevski/221161/ft2_4FGL_J2212.9-2526_daily_bin328.fits outfile=/scratch/kocevski/221161/cmap_HighResolution_324345601_324604801_4FGL_J2212.9-2526_daily_bin328.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.57
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.029       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.928       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.2363       1.0000         .10000E-03   10000.    
     5 'Prefactor '    34.947       1.0000         .10000E-03   10000.    
     6 'Prefactor '    71.578       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .81720E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    38.181       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .40150E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.7412       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13446E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    25.359       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .33574E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .12404E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    83.809       1.0000         .10000E-03   10000.    
    17 'norm      '    .10568E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .96149E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10252E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10176E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .97654       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=   311.6734     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     3553 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.060        56.558       -.16069E-04   -.81909E-05
   2  Prefactor     14.933        33.043       -.37307E-05    .43249E-05
   3  Prefactor     .10000E-03    32.450        .31256E-04** at limit **
   4  norm          6.2609        97.784       -.71500E-04    .23550E-05
   5  Prefactor     35.044        89.936        .49944E-05   -.18299E-03
   6  Prefactor     71.315        102.85       -.73462E-04   -.60747E-04
   7  Prefactor     .10253E-03    1463.1        .84014E-04** at limit **
   8  norm          38.196        37.756        .19920E-04   -.92455E-04
   9  Prefactor     .10003E-03    355.00        .11443E-03** at limit **
  10  norm          1.7406        2.9675       -.27610E-05    .61991E-03
  11  Prefactor     .10000E-03    20.220       -.19562E-06** at limit **
  12  Prefactor     .10000E-03    58.337        .10233E-05** at limit **
  13  Prefactor     25.356        31.718       -.95856E-06    .43121E-05
  14  Prefactor     .10000E-03    167.90       -.10151E-03** at limit **
  15  norm          .10000E-03    83.493        .31576E-05** at limit **
  16  Prefactor     83.780        67.842        .15092E-04    .96121E-05
  17  norm          .10000E-03    9.2090       -.36731E-06** at limit **
  18  Prefactor     .10001E-03    266.08        .13559E-04** at limit **
  19  Prefactor     .10000E-03    25.853       -.67214E-05** at limit **
  20  norm          .10000E-03    10.028       -.10120E-06** at limit **
  21  Prefactor     .10000E-03    33.263       -.29221E-04** at limit **
  22  Prefactor     .10000E-03    15.722       -.12630E-06** at limit **
  23  norm          .10000E-03    1.2917       -.59934E-07** at limit **
  24  Prefactor     .10000E-03    24.381        .40663E-05** at limit **
  25  Normalizat    .10000E-01    .25294       -.10283E-05** at limit **
  26  Prefactor     .97654        .34912        .12045E-04   -.16124E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 18.0595
  Prefactor  = 14.9332
  Prefactor  = 0.0001
  norm       = 6.26088
  Prefactor  = 35.0437
  Prefactor  = 71.3146
  Prefactor  = 0.000102534
  norm       = 38.1958
  Prefactor  = 0.000100029
  norm       = 1.74063
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 25.3562
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 83.7798
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.976544
 **********
 **   18 **HESSE 
 **********

 FCN=   311.6734     FROM HESSE     STATUS=OK           440 CALLS     3993 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.060        56.783        .94328E-04   -1.4858    
   2  Prefactor     14.933        33.262        .10366E-03   -1.4935    
   3  Prefactor     .10000E-03    32.475        .98374E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.2609        99.322        .16075E-03   -1.5207    
   5  Prefactor     35.044        90.070        .67790E-04   -1.4523    
   6  Prefactor     71.315        103.13        .23725E-03   -1.4017    
   7  Prefactor     .10253E-03    1488.5        .18440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          38.196        38.267        .64864E-04   -1.4471    
   9  Prefactor     .10003E-03    353.58        .21262E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.7406        2.9941        .31694E-04   -1.5444    
  11  Prefactor     .10000E-03    20.221        .77613E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    58.341        .13191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     25.356        31.723        .79548E-04   -1.4700    
  14  Prefactor     .10000E-03    167.90        .21342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    83.491        .15787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     83.780        67.950        .21939E-03   -1.3875    
  17  norm          .10000E-03    9.2235        .52356E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    266.08        .20788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    25.853        .87770E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    10.029        .54649E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    33.266        .99572E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.723        .68433E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.2919        .19610E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    24.380        .85229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .25310        .27532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .97654        .35678        .16804E-03   -.93516    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00867e-09
Minuit parameter uncertainties:
  1  56.9535
  2  33.3036
  3  0.000111463
  4  49.9718
  5  90.4229
  6  103.393
  7  0.126109
  8  38.2914
  9  0.00645407
  10  2.99435
  11  1.49174e-05
  12  0.000128958
  13  31.7445
  14  0.000218853
  15  0.000301338
  16  68.0135
  17  0.000106032
  18  0.00273131
  19  1.85063e-05
  20  2.64158e-05
  21  4.24243e-05
  22  4.96627e-05
  23  5.35482e-06
  24  3.21292e-05
  25  2.04551e-06
  26  0.35764
Done.

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

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  1.000e-04  1.290e-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:  9.765e-01  3.576e-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.000e-02  2.046e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 333.226 -25.433
Photon Flux Upper Limit: 5.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.93e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/221161/likelihoodResults_324345601_324604801_4FGL_J2212.9-2526_daily_bin328.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) = 311.673492583
delta logL = -8.11198061683e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 311.673412
delta logL = -5.36838740572e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5484       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97655       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=   311.6734     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      269 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10555E-03    52.280        .10769E-01** at limit **
   2  Index         2.4410        6.1776        .50000        .88346E-05
   3  Normalizat    .10000E-01    .61479E-03    .27531E-02** at limit **
   4  Prefactor     .97655        .14187E-01    .16804E-03    .56757E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105548
  Index      = 2.44105
  Normalizat = 0.01
  Prefactor  = 0.976551
 **********
 **   18 **HESSE 
 **********

 FCN=   311.6734     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      298 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10555E-03    452.02        .11384E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4410        5.4326        .50000       -.53727    
   3  Normalizat    .10000E-01    .54884E-02    .55062E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .97655        .42391E-01    .33608E-04   -.93515    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.32817e-09
Minuit parameter uncertainties:
  1  0.100924
  2  574.731
  3  1.79879e-08
  4  0.0423922
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/221161': 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) = 311.67341182
delta logL = -3.5661810216e-07

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  1.055e-04  1.009e-01  1.000e-04  1.000e+04 ( 1.000e-13)
242        Index:  2.441e+00  5.747e+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:  9.766e-01  4.239e-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.000e-02  1.799e-08  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/221161/cmap_HighResolution_324345601_324604801_4FGL_J2212.9-2526_daily_bin328.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.93e-02', job_status='DONE', photon_flux_upper_limit='5.14e-07', time_completed='2021-09-28 07:10:34.565433', job_id='221161', GAL2='0.98', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632838234.57', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='-3.57e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='328' AND source_name='4FGL J2212.9-2526' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:10:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0126>
Subject: Job 221161: <4FGL_J2212.9-2526_daily_bin328> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2212.9-2526_daily_bin328 333.226 -25.4335 324345601 324604801 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 :                                   380.25 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             227.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   610 sec.
    Turnaround time :                            612 sec.

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

