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


Performing analysis on: 4FGL_J2212.9-2526_daily_bin172
RA = 333.226, Dec = -25.4335
tmin = 283910401, tmax = 284169601
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='219866', job_status='RUN', time_executed='2021-09-28 06:59:02.955367', time_epoch_executed='1632837542.96' WHERE source_name='4FGL J2212.9-2526' and cadence='daily' and bin_id='172'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/219866

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/219866/ft1_4FGL_J2212.9-2526_daily_bin172.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/219866/ft2_4FGL_J2212.9-2526_daily_bin172.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/219866/ft1_4FGL_J2212.9-2526_daily_bin172.fits outfile=/scratch/kocevski/219866/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin172.fits ra=333.226 dec=-25.4335 rad=12.0 tmin=283910401.0 tmax=284169601.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.56
user 3.32
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/219866/ft1_filtered_4FGL_J2212.9-2526_daily_bin172.fits" evtable="EVENTS" scfile=/scratch/kocevski/219866/ft2_4FGL_J2212.9-2526_daily_bin172.fits sctable="SC_DATA" outfile=/scratch/kocevski/219866/ltcube_283910401_284169601_4FGL_J2212.9-2526_daily_bin172.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/219866/ft2_4FGL_J2212.9-2526_daily_bin172.fits
.....................!
real 11.80
user 11.48
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/219866/ft1_filtered_4FGL_J2212.9-2526_daily_bin172.fits evtable="EVENTS" scfile=/scratch/kocevski/219866/ft2_4FGL_J2212.9-2526_daily_bin172.fits sctable="SC_DATA" expcube=/scratch/kocevski/219866/ltcube_283910401_284169601_4FGL_J2212.9-2526_daily_bin172.fits outfile=/scratch/kocevski/219866/expmap_283910401_284169601_4FGL_J2212.9-2526_daily_bin172.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/219866/ltcube_283910401_284169601_4FGL_J2212.9-2526_daily_bin172.fits
.....................!
real 192.21
user 186.93
sys 4.96

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/219866/ft1_filtered_4FGL_J2212.9-2526_daily_bin172.fits scfile=/scratch/kocevski/219866/ft2_4FGL_J2212.9-2526_daily_bin172.fits outfile=/scratch/kocevski/219866/cmap_283910401_284169601_4FGL_J2212.9-2526_daily_bin172.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=333.226 yref=-25.4335 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10177E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.5841       1.0000         .10000E-03   10000.    
     4 'norm      '    .10145E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.982       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.313       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.8140       1.0000         .10000E-03   10000.    
    10 'norm      '    .73023       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.4725       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11873E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.069       1.0000         .10000E-03   10000.    
    20 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.686       1.0000         .10000E-03   10000.    
    23 'norm      '    .44067       1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.913       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4065       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .89679       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=   4967.748     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     3097 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.6651       -.96299E-08** at limit **
   2  Prefactor     .10000E-03    14.262        .16583E-05** at limit **
   3  Prefactor     5.5891        19.674       -.22486E-06    .46610E-04
   4  norm          .10000E-03    15.639       -.61813E-06** at limit **
   5  Prefactor     14.010        34.589       -.38401E-05   -.23164E-03
   6  Prefactor     .10000E-03    19.618       -.15859E-05** at limit **
   7  Prefactor     .10001E-03    91.760       -.45404E-05** at limit **
   8  norm          10.316        6.9100        .75999E-07    .44756E-03
   9  Prefactor     5.8138        13.584        .24896E-06    .43316E-04
  10  norm          .73026        .38848       -.47922E-09    .51574E-03
  11  Prefactor     .10000E-03    15.905       -.96872E-06** at limit **
  12  Prefactor     .10000E-03    12.450       -.45640E-06** at limit **
  13  Prefactor     8.4768        10.194       -.11228E-05    .46106E-03
  14  Prefactor     .10001E-03    24.392        .29874E-05** at limit **
  15  norm          .10000E-03    5.8713       -.59382E-08** at limit **
  16  Prefactor     .10002E-03    104.33       -.24485E-04** at limit **
  17  norm          .10000E-03    .90533       -.28957E-07** at limit **
  18  Prefactor     .10000E-03    36.291       -.18870E-05** at limit **
  19  Prefactor     12.078        18.354        .31291E-06    .66149E-04
  20  norm          .10000E-03    1.9892       -.24711E-07** at limit **
  21  Prefactor     .10000E-03    6.7788        .12845E-07** at limit **
  22  Prefactor     11.692        15.241       -.13950E-06    .90541E-04
  23  norm          .44086        .48079        .11366E-07    .23546E-03
  24  Prefactor     13.911        20.006       -.13613E-06    .35760E-04
  25  Normalizat    1.4056        .25917       -.10953E-05    .14199E-03
  26  Prefactor     .89725        .18333        .12175E-05    .19574E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 5.58915
  norm       = 0.0001
  Prefactor  = 14.0095
  Prefactor  = 0.000100002
  Prefactor  = 0.000100012
  norm       = 10.3165
  Prefactor  = 5.81385
  norm       = 0.730264
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.47677
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 0.000100024
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 12.0784
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.6924
  norm       = 0.440857
  Prefactor  = 13.9105
  Normalizat = 1.40562
  Prefactor  = 0.897251
 **********
 **   18 **HESSE 
 **********

 FCN=   4967.748     FROM HESSE     STATUS=OK           450 CALLS     3547 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.6669        .13178E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.689        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     5.5891        19.623        .17001E-03   -1.5235    
   4  norm          .10000E-03    16.080        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     14.010        35.355        .10712E-03   -1.4959    
   6  Prefactor     .10000E-03    19.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    93.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.316        6.9053        .12477E-03   -1.5065    
   9  Prefactor     5.8138        13.578        .16656E-03   -1.5226    
  10  norm          .73026        .38902        .30322E-04   -1.5537    
  11  Prefactor     .10000E-03    16.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.483        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.4768        10.322        .68860E-03   -1.5126    
  14  Prefactor     .10001E-03    24.882        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.8714        .16680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10002E-03    104.67        .56715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .90828        .65472E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    36.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.078        18.376        .11531E-03   -1.5013    
  20  norm          .10000E-03    1.9961        .96994E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.7801        .17917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.692        15.241        .11719E-03   -1.5024    
  23  norm          .44086        .47746        .47318E-04   -1.5575    
  24  Prefactor     13.911        19.869        .10738E-03   -1.4962    
  25  Normalizat    1.4056        .30449        .26667E-03   -.80466    
  26  Prefactor     .89725        .21990        .24886E-03   -.96237    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69841e-09
Minuit parameter uncertainties:
  1  2.41242e-06
  2  0.000252947
  3  19.6452
  4  0.000135564
  5  35.4081
  6  0.000351081
  7  0.00215816
  8  6.90579
  9  13.5855
  10  0.389024
  11  0.000172764
  12  7.88483e-05
  13  10.3246
  14  0.000729263
  15  5.19274e-07
  16  0.00318958
  17  5.24858e-09
  18  0.000503066
  19  18.3845
  20  1.39222e-06
  21  1.05635e-05
  22  15.2464
  23  0.477461
  24  19.8784
  25  0.304882
  26  0.220123
Done.

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

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  1.000e-04  7.885e-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:  8.973e-01  2.201e-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.406e+00  3.049e-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: 9.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/219866/likelihoodResults_283910401_284169601_4FGL_J2212.9-2526_daily_bin172.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) = 4967.74865375
delta logL = -0.000381524223485

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4967.74827223
delta logL = -6.16182660451e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2508       1.0000          .0000       10.000    
     3 'Normalizat'    1.4056       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89726       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=   4967.748     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      244 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    605.73        .18142E-02** at limit **
   2  Index         2.1105        8.6833        .50000       -.17576E-07
   3  Normalizat    1.4056        .44295E-01    .26667E-03   -.33679E-05
   4  Prefactor     .89725        .34107E-01    .24886E-03   -.21471E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.11049
  Normalizat = 1.40562
  Prefactor  = 0.89725
 **********
 **   18 **HESSE 
 **********

 FCN=   4967.748     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .55E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    1941.3        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1105        6.6436        .50000       -.61616    
   3  Normalizat    1.4056        .10411        .10667E-04   -.80466    
   4  Prefactor     .89725        .79903E-01    .99543E-05   -.96237    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.49232e-08
Minuit parameter uncertainties:
  1  0.00649757
  2  5201.82
  3  0.104129
  4  0.0799129
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/219866': 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) = 4967.74827217
delta logL = 5.23896233062e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  8.973e-01  7.991e-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.406e+00  1.041e-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/219866/cmap_HighResolution_283910401_284169601_4FGL_J2212.9-2526_daily_bin172.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.92e-03', job_status='DONE', photon_flux_upper_limit='9.04e-08', time_completed='2021-09-28 07:08:56.659622', job_id='219866', GAL2='0.90', fit_tolerance='1e-08', EG2='1.41', EG='1.41', time_epoch_completed='1632838136.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='5.24e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.26' WHERE bin_id='172' AND source_name='4FGL J2212.9-2526' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:08:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 219866: <4FGL_J2212.9-2526_daily_bin172> in cluster <slac> Done

Job <4FGL_J2212.9-2526_daily_bin172> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 06:55:45 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 06:55:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 06:55:47 2021
Terminated at Tue Sep 28 07:08:57 2021
Results reported at Tue Sep 28 07:08:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2212.9-2526_daily_bin172 333.226 -25.4335 283910401 284169601 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 :                                   591.29 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             297.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            792 sec.

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

