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


Performing analysis on: 4FGL_J2212.9-2526_daily_bin470
RA = 333.226, Dec = -25.4335
tmin = 361152001, tmax = 361411201
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='221373', job_status='RUN', time_executed='2021-09-28 07:03:32.402820', time_epoch_executed='1632837812.4' WHERE source_name='4FGL J2212.9-2526' and cadence='daily' and bin_id='470'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/221373

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/221373/ft1_4FGL_J2212.9-2526_daily_bin470.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/221373/ft2_4FGL_J2212.9-2526_daily_bin470.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/221373/ft1_4FGL_J2212.9-2526_daily_bin470.fits outfile=/scratch/kocevski/221373/ft1_filteredMKT_4FGL_J2212.9-2526_daily_bin470.fits ra=333.226 dec=-25.4335 rad=12.0 tmin=361152001.0 tmax=361411201.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.33
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/221373/ft1_filtered_4FGL_J2212.9-2526_daily_bin470.fits" evtable="EVENTS" scfile=/scratch/kocevski/221373/ft2_4FGL_J2212.9-2526_daily_bin470.fits sctable="SC_DATA" outfile=/scratch/kocevski/221373/ltcube_361152001_361411201_4FGL_J2212.9-2526_daily_bin470.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/221373/ft2_4FGL_J2212.9-2526_daily_bin470.fits
.....................!
real 15.43
user 15.03
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/221373/ft1_filtered_4FGL_J2212.9-2526_daily_bin470.fits evtable="EVENTS" scfile=/scratch/kocevski/221373/ft2_4FGL_J2212.9-2526_daily_bin470.fits sctable="SC_DATA" expcube=/scratch/kocevski/221373/ltcube_361152001_361411201_4FGL_J2212.9-2526_daily_bin470.fits outfile=/scratch/kocevski/221373/expmap_361152001_361411201_4FGL_J2212.9-2526_daily_bin470.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/221373/ltcube_361152001_361411201_4FGL_J2212.9-2526_daily_bin470.fits
.....................!
real 189.00
user 184.20
sys 4.49

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/221373/ft1_filtered_4FGL_J2212.9-2526_daily_bin470.fits scfile=/scratch/kocevski/221373/ft2_4FGL_J2212.9-2526_daily_bin470.fits outfile=/scratch/kocevski/221373/cmap_361152001_361411201_4FGL_J2212.9-2526_daily_bin470.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/221373/ft1_filtered_4FGL_J2212.9-2526_daily_bin470.fits scfile=/scratch/kocevski/221373/ft2_4FGL_J2212.9-2526_daily_bin470.fits outfile=/scratch/kocevski/221373/cmap_HighResolution_361152001_361411201_4FGL_J2212.9-2526_daily_bin470.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    1.3238       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.2649       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.0561       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.2129       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.050       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    300.86       1.0000         .10000E-03   10000.    
    15 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10785E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.1748       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.611       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.1240       1.0000         .10000E-03   10000.    
    20 'norm      '    6.8233       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.844       1.0000         .10000E-03   10000.    
    23 'norm      '    4.4073       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4477       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .74062       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=   8763.264     FROM MIGRAD    STATUS=CONVERGED    629 CALLS     3162 TOTAL
                     EDM=   .70E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.2256       -.16172E-07** at limit **
   2  Prefactor     1.3247        3.5493        .10036E-05   -.12649E-05
   3  Prefactor     .10000E-03    5.4239       -.95234E-07** at limit **
   4  norm          8.2653        5.7415       -.80550E-07   -.70042E-04
   5  Prefactor     .10000E-03    11.033       -.16475E-06** at limit **
   6  Prefactor     .10000E-03    6.5633       -.95615E-07** at limit **
   7  Prefactor     .10000E-03    24.976       -.74953E-06** at limit **
   8  norm          1.0557        3.9306        .23593E-05   -.53405E-04
   9  Prefactor     .10000E-03    12.773       -.19310E-07** at limit **
  10  norm          1.2129        .37533       -.95393E-07   -.10977E-02
  11  Prefactor     .10000E-03    2.1241       -.27990E-07** at limit **
  12  Prefactor     10.049        8.9060        .58712E-07   -.10247E-04
  13  Prefactor     .10000E-03    6.7312       -.20320E-06** at limit **
  14  Prefactor     300.90        112.48        .87429E-06    .64223E-04
  15  norm          .10000E-03    10.205        .10736E-06** at limit **
  16  Prefactor     .10000E-03    20.569        .38369E-07** at limit **
  17  norm          1.1790        2.1575        .53485E-07   -.16441E-04
  18  Prefactor     14.537        40.167       -.40294E-06   -.34375E-04
  19  Prefactor     7.1217        8.2514        .10746E-06   -.10587E-04
  20  norm          6.8229        4.0154        .37170E-07   -.58818E-04
  21  Prefactor     .10000E-03    33.278        .67601E-06** at limit **
  22  Prefactor     18.838        14.498        .86819E-06   -.52275E-04
  23  norm          4.4073        1.2325       -.45730E-07    .73738E-04
  24  Prefactor     .10000E-03    3.3829       -.81511E-08** at limit **
  25  Normalizat    1.4482        .18394       -.90968E-06   -.88949E-04
  26  Prefactor     .74018        .13768        .31967E-06   -.17258E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 1.32471
  Prefactor  = 0.0001
  norm       = 8.26527
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.05568
  Prefactor  = 0.0001
  norm       = 1.21286
  Prefactor  = 0.0001
  Prefactor  = 10.0486
  Prefactor  = 0.0001
  Prefactor  = 300.902
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.179
  Prefactor  = 14.5367
  Prefactor  = 7.12171
  norm       = 6.82288
  Prefactor  = 0.0001
  Prefactor  = 18.838
  norm       = 4.40734
  Prefactor  = 0.0001
  Normalizat = 1.44825
  Prefactor  = 0.740178
 **********
 **   18 **HESSE 
 **********

 FCN=   8763.264     FROM HESSE     STATUS=OK           456 CALLS     3618 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.2431        .13638E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.3247        3.5205        .28112E-03   -1.5478    
   3  Prefactor     .10000E-03    5.4415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.2653        5.7405        .13945E-03   -1.5133    
   5  Prefactor     .10000E-03    11.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.5775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.0557        3.9463        .30918E-03   -1.5502    
   9  Prefactor     .10000E-03    12.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.2129        .37433        .28738E-04   -1.5488    
  11  Prefactor     .10000E-03    2.1316        .13323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     10.049        8.9097        .12639E-03   -1.5074    
  13  Prefactor     .10000E-03    6.9049        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     300.90        113.29        .11708E-03   -1.2221    
  15  norm          .10000E-03    10.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    21.196        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.1790        1.8157        .14812E-02   -1.5491    
  18  Prefactor     14.537        40.443        .10478E-03   -1.4945    
  19  Prefactor     7.1217        8.2623        .15029E-03   -1.5174    
  20  norm          6.8229        4.0082        .13454E-03   -1.5185    
  21  Prefactor     .10000E-03    33.587        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     18.838        14.917        .92266E-04   -1.4840    
  23  norm          4.4073        1.2780        .40561E-04   -1.5288    
  24  Prefactor     .10000E-03    3.3874        .16811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.4482        .22124        .25848E-03   -.79243    
  26  Prefactor     .74018        .16596        .27337E-03   -1.0197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.43582e-09
Minuit parameter uncertainties:
  1  3.4558e-07
  2  3.52102
  3  2.46603e-06
  4  5.7409
  5  3.26537e-05
  6  5.73575e-08
  7  0.000279693
  8  3.94723
  9  3.60524e-06
  10  0.374332
  11  3.98455e-07
  12  8.9109
  13  1.53088e-06
  14  113.373
  15  3.60484e-05
  16  0.00016477
  17  1.81581
  18  40.5193
  19  8.26364
  20  4.0084
  21  8.15314e-05
  22  14.9199
  23  1.27803
  24  4.15855e-06
  25  0.221384
  26  0.166074
Done.

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

Extracting fit parameters...

4FGL J2212.9-2526
   Spectrum: PowerLaw
241    Prefactor:  1.005e+01  8.911e+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

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  7.402e-01  1.661e-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.448e+00  2.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.09
Ra Dec: 333.226 -25.433
Photon Index (Fixed Index): 2.26 +/- 0.00
Photon Flux (Fixed Index): 1.87e-08 +/- 1.66e-08
Energy Flux (Fixed Index): 7.63e-06 +/- 6.77e-06

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) = 8762.62990543
delta logL = 0.634267965246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8762.61716734
delta logL = 0.647006055999

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.682       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5551       1.0000          .0000       10.000    
     3 'Normalizat'    1.4584       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73676       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.

 FCN=   8762.617     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      217 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.692        17.099        .29301E-02    .10099E-03
   2  Index         1.5556        .66943        .29210       -.93314E-04
   3  Normalizat    1.4585        .17256        .58274E-01   -.19564E-04
   4  Prefactor     .73672        .13591        .61934E-01   -.12008E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6918
  Index      = 1.55557
  Normalizat = 1.45849
  Prefactor  = 0.736723
 **********
 **   18 **HESSE 
 **********

 FCN=   8762.617     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.692        12.007        .11721E-03   -1.5024    
   2  Index         1.5556        .59966        .10912E-01   -.75995    
   3  Normalizat    1.4585        .20578        .25769E-03   -.78951    
   4  Prefactor     .73672        .16224        .27395E-03   -1.0210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.86891e-11
Minuit parameter uncertainties:
  1  12.009
  2  0.602428
  3  0.205898
  4  0.162345
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/221373': 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) = 8762.61716687
delta logL = 0.647006529147

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
493    Prefactor:  7.367e-01  1.623e-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.458e+00  2.059e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.37
Ra Dec: 333.226 -25.433
Photon Index (Free Index): 1.56 +/- 0.60
Photon Flux (Free Index): 8.87e-09 +/- 1.14e-08
Energy Flux (Free Index): 2.33e-05 +/- 3.46e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/221373/cmap_HighResolution_361152001_361411201_4FGL_J2212.9-2526_daily_bin470.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.87e-08', energy_flux2='2.33e-05', photon_flux_error='1.66e-08', dlogl='6.47e-01', energy_flux='7.63e-06', photon_flux2='8.87e-09', job_status='DONE', time_completed='2021-09-28 07:15:58.585897', photon_index_error2='0.60', photon_index2='1.56', ts='4.09', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='3.46e-05', EG='1.45', time_epoch_completed='1632838558.59', return_code='0', job_id='221373', GAL2='0.74', EG2='1.46', return_code2='0', energy_flux_error='6.77e-06', photon_flux_error2='1.14e-08', ts2='5.37', photon_index='2.26' WHERE bin_id='470' AND source_name='4FGL J2212.9-2526' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 07:15:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 221373: <4FGL_J2212.9-2526_daily_bin470> in cluster <slac> Done

Job <4FGL_J2212.9-2526_daily_bin470> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 07:00:40 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 07:00:42 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:42 2021
Terminated at Tue Sep 28 07:15:59 2021
Results reported at Tue Sep 28 07:15:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2212.9-2526_daily_bin470 333.226 -25.4335 361152001 361411201 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 :                                   744.11 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             309.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            919 sec.

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

