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


Performing analysis on: 4FGL_J0212.9+2244_daily_bin1229
RA = 33.2427, Dec = 22.7466
tmin = 557884801, tmax = 558144001
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='201767', job_status='RUN', time_executed='2021-08-15 11:45:33.257468', time_epoch_executed='1629053133.26' WHERE source_name='4FGL J0212.9+2244' and cadence='daily' and bin_id='1229'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/201767

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/201767/ft1_4FGL_J0212.9+2244_daily_bin1229.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/201767/ft2_4FGL_J0212.9+2244_daily_bin1229.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/201767/ft1_4FGL_J0212.9+2244_daily_bin1229.fits outfile=/scratch/kocevski/201767/ft1_filteredMKT_4FGL_J0212.9+2244_daily_bin1229.fits ra=33.2427 dec=22.7466 rad=12.0 tmin=557884801.0 tmax=558144001.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 8.80
user 3.88
sys 4.86

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/201767/ft2_4FGL_J0212.9+2244_daily_bin1229.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/201767/ft2_4FGL_J0212.9+2244_daily_bin1229.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/201767/ft1_filteredMKT_4FGL_J0212.9+2244_daily_bin1229.fits evtable="EVENTS" outfile="/scratch/kocevski/201767/ft1_filtered_4FGL_J0212.9+2244_daily_bin1229.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 5.12
user 0.33
sys 4.76

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/201767/ft1_filtered_4FGL_J0212.9+2244_daily_bin1229.fits" evtable="EVENTS" scfile=/scratch/kocevski/201767/ft2_4FGL_J0212.9+2244_daily_bin1229.fits sctable="SC_DATA" outfile=/scratch/kocevski/201767/ltcube_557884801_558144001_4FGL_J0212.9+2244_daily_bin1229.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/201767/ft2_4FGL_J0212.9+2244_daily_bin1229.fits
.....................!
real 18.20
user 12.65
sys 5.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/201767/ft1_filtered_4FGL_J0212.9+2244_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/201767/ft2_4FGL_J0212.9+2244_daily_bin1229.fits sctable="SC_DATA" expcube=/scratch/kocevski/201767/ltcube_557884801_558144001_4FGL_J0212.9+2244_daily_bin1229.fits outfile=/scratch/kocevski/201767/expmap_557884801_558144001_4FGL_J0212.9+2244_daily_bin1229.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/201767/ltcube_557884801_558144001_4FGL_J0212.9+2244_daily_bin1229.fits
.....................!
real 197.49
user 185.94
sys 11.03

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 160 point sources and 0 extended sources

Setting source of interest to:
4FGL J0212.9+2244 @ 33.2427 22.7466

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/201767/ft1_filtered_4FGL_J0212.9+2244_daily_bin1229.fits scfile=/scratch/kocevski/201767/ft2_4FGL_J0212.9+2244_daily_bin1229.fits outfile=/scratch/kocevski/201767/cmap_557884801_558144001_4FGL_J0212.9+2244_daily_bin1229.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=33.2427 yref=22.7466 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 5.06
user 0.38
sys 4.64

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/201767/ft1_filtered_4FGL_J0212.9+2244_daily_bin1229.fits scfile=/scratch/kocevski/201767/ft2_4FGL_J0212.9+2244_daily_bin1229.fits outfile=/scratch/kocevski/201767/cmap_HighResolution_557884801_558144001_4FGL_J0212.9+2244_daily_bin1229.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=33.2427 yref=22.7466 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 4.59
user 0.39
sys 4.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/201767/ft1_filtered_4FGL_J0212.9+2244_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/201767/ft2_4FGL_J0212.9+2244_daily_bin1229.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/201767/Model_4FGL_J0212.9+2244_daily_bin1229.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/201767/ft1_filtered_4FGL_J0212.9+2244_daily_bin1229.fits...........................!
real 29.59
user 21.97
sys 7.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/201767/ft1_filtered_4FGL_J0212.9+2244_daily_bin1229.fits', '/scratch/kocevski/201767/ft2_4FGL_J0212.9+2244_daily_bin1229.fits', expMap='/scratch/kocevski/201767/expmap_557884801_558144001_4FGL_J0212.9+2244_daily_bin1229.fits', expCube='/scratch/kocevski/201767/ltcube_557884801_558144001_4FGL_J0212.9+2244_daily_bin1229.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/201767/Model_4FGL_J0212.9+2244_daily_bin1229.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0212.9+2244'

4FGL J0212.9+2244
   Spectrum: PowerLaw
212    Prefactor:  1.178e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
213        Index:  2.054e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
214        Scale:  2.189e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/201767/ft1_filtered_4FGL_J0212.9+2244_daily_bin1229.fits
Spacecraft file(s): /scratch/kocevski/201767/ft2_4FGL_J0212.9+2244_daily_bin1229.fits
Exposure map: /scratch/kocevski/201767/expmap_557884801_558144001_4FGL_J0212.9+2244_daily_bin1229.fits
Exposure cube: /scratch/kocevski/201767/ltcube_557884801_558144001_4FGL_J0212.9+2244_daily_bin1229.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/201767/Model_4FGL_J0212.9+2244_daily_bin1229.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) = 915.084541749

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    90.846       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10185E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    150.71       1.0000         .10000E-03   10000.    
     6 'Prefactor '    151.71       1.0000         .10000E-03   10000.    
     7 'norm      '    27.587       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .17790E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.157       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    17.079       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    33.797       1.0000         .10000E-03   10000.    
    14 'norm      '    .11291E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.1631       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.204       1.0000         .10000E-03   10000.    
    19 'norm      '    50.366       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .59644       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .49905E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    100.86       1.0000         .10000E-03   10000.    
    26 'norm      '    .13745E-01   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .22393E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0742       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5180E+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=   915.0137     FROM MIGRAD    STATUS=CONVERGED   1263 CALLS     4592 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     90.845        79.042        .42160E-04   -.11524E-03
   2  Prefactor     .10000E-03    127.58        .18142E-02** at limit **
   3  Prefactor     .10000E-03    224.19        .18142E-02** at limit **
   4  norm          .10000E-03    2.8873        .49784E-03** at limit **
   5  Prefactor     150.71        89.331        .32831E-04   -.19495E-03
   6  Prefactor     151.76        221.01        .16362E-03   -.19415E-04
   7  norm          27.590        33.346        .76275E-04   -.59504E-04
   8  Prefactor     .10000E-03    904.19        .18142E-02** at limit **
   9  Prefactor     12.159        9.7318        .75312E-04   -.51519E-03
  10  Prefactor     .10000E-03    43.812        .18142E-02** at limit **
  11  norm          17.077        20.854        .96914E-04   -.21656E-03
  12  Prefactor     .10000E-03    24.377        .14589E-02** at limit **
  13  Prefactor     33.796        52.049        .68929E-04   -.30348E-04
  14  norm          .10001E-03    478.39        .18142E-02** at limit **
  15  Prefactor     8.1298        408.29        .14032E-03   -.23183E-04
  16  Prefactor     .10000E-03    34.275        .17248E-02** at limit **
  17  Prefactor     .10000E-03    117.03        .18142E-02** at limit **
  18  Prefactor     24.204        40.899        .81421E-04   -.16959E-03
  19  norm          50.365        22.282        .56508E-04   -.15035E-03
  20  Prefactor     .10000E-03    19.317        .12986E-02** at limit **
  21  norm          .59539        2.0600        .55460E-03   -.64589E-03
  22  Prefactor     .10000E-03    106.75        .18142E-02** at limit **
  23  Prefactor     .10474E-03    350.47        .98215E-01** at limit **
  24  Prefactor     .10000E-03    18.565        .12735E-02** at limit **
  25  Prefactor     100.87        116.98        .20016E-03   -.41342E-04
  26  norm          .10594E-03    174.72        .10970    ** at limit **
  27  Normalizat    .21278E-01    9.7997        .12839E-01   -.71615E-04
  28  Prefactor     1.0747        .48423        .18537E-03   -.48688E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 90.8451
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 150.707
  Prefactor  = 151.757
  norm       = 27.5895
  Prefactor  = 0.000100001
  Prefactor  = 12.1587
  Prefactor  = 0.0001
  norm       = 17.0773
  Prefactor  = 0.0001
  Prefactor  = 33.7963
  norm       = 0.000100006
  Prefactor  = 8.12984
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.2044
  norm       = 50.3653
  Prefactor  = 0.0001
  norm       = 0.595387
  Prefactor  = 0.0001
  Prefactor  = 0.000104737
  Prefactor  = 0.0001
  Prefactor  = 100.872
  norm       = 0.000105938
  Normalizat = 0.0212777
  Prefactor  = 1.07466
 **********
 **   18 **HESSE 
 **********

 FCN=   915.0137     FROM HESSE     STATUS=OK           511 CALLS     5103 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     90.845        78.511        .84319E-05   -1.3799    
   2  Prefactor     .10000E-03    127.58        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    224.19        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    2.8874        .99567E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     150.71        87.025        .65662E-05   -1.3246    
   6  Prefactor     151.76        220.62        .32724E-04   -1.3238    
   7  norm          27.590        33.308        .15255E-04   -1.4657    
   8  Prefactor     .10000E-03    904.19        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.159        9.4942        .15062E-04   -1.5010    
  10  Prefactor     .10000E-03    43.814        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          17.077        20.851        .38766E-05   -1.4881    
  12  Prefactor     .10000E-03    24.378        .29177E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     33.796        52.047        .13786E-04   -1.4545    
  14  norm          .10001E-03    478.39        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.1298        406.99        .28065E-04   -1.5138    
  16  Prefactor     .10000E-03    34.280        .34496E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    117.03        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.204        40.830        .16284E-04   -1.4724    
  19  norm          50.365        22.241        .11302E-04   -1.4287    
  20  Prefactor     .10000E-03    19.317        .25972E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .59539        2.0360        .22184E-04   -1.5554    
  22  Prefactor     .10000E-03    106.75        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10474E-03    320.10        .10246       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    18.565        .25471E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     100.87        116.91        .40031E-04   -1.3696    
  26  norm          .10594E-03    166.15        .11191       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .21278E-01    8.4846        .51357E-03   -1.5036    
  28  Prefactor     1.0747        .37372        .37074E-04   -.90281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.20278e-08
Minuit parameter uncertainties:
  1  78.601
  2  0.000129415
  3  0.000869576
  4  3.53078e-06
  5  87.0987
  6  221.838
  7  33.3303
  8  0.00146803
  9  9.49535
  10  0.000247731
  11  20.8595
  12  2.84176e-05
  13  52.1168
  14  0.00337189
  15  115.887
  16  4.72108e-05
  17  0.000147827
  18  40.877
  19  22.245
  20  1.47262e-06
  21  2.03619
  22  0.000155395
  23  0.0783019
  24  1.2028e-06
  25  117.181
  26  0.0629959
  27  0.687365
  28  0.374633
Done.

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

Extracting fit parameters...

4FGL J0212.9+2244
   Spectrum: PowerLaw
212    Prefactor:  1.000e-04  2.842e-05  1.000e-04  1.000e+04 ( 1.000e-13)
213        Index:  2.054e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
214        Scale:  2.189e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
515    Prefactor:  1.075e+00  3.746e-01  0.000e+00  1.000e+01 ( 1.000e+00)
516        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
517        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  2.128e-02  6.874e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 33.243 22.747
Photon Flux Upper Limit: 5.52e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.16e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/201767/likelihoodResults_557884801_558144001_4FGL_J0212.9+2244_daily_bin1229.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 915.01379333
delta logL = -0.00011439932905

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 915.013678987
delta logL = -5.61249180464e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0938       1.0000          .0000       10.000    
     3 'Normalizat'    .21345E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0746       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   915.0137     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      242 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    897.61        .90712E-02** at limit **
   2  Index         2.0749        5.0906        .50000        .63115E-05
   3  Normalizat    .21278E-01    .38860E-01    .32283       -.38327E-04
   4  Prefactor     1.0747        .56451E-01    .38641E-01    .10178E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.07493
  Normalizat = 0.0212775
  Prefactor  = 1.07466
 **********
 **   18 **HESSE 
 **********

 FCN=   915.0137     FROM HESSE     STATUS=OK            35 CALLS      277 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.556        .14479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0749        6.0313        .50000       -.62490    
   3  Normalizat    .21278E-01    1.9857        .12848E-01   -1.5036    
   4  Prefactor     1.0747        .24650        .18537E-03   -.90280    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04397e-09
Minuit parameter uncertainties:
  1  0.000226959
  2  4.12028
  3  0.310416
  4  0.246756
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/201767': 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) = 915.013678961
delta logL = -3.05471985484e-08

Extracting fit parameters...

4FGL J0212.9+2244
   Spectrum: PowerLaw
212    Prefactor:  1.000e-04  2.270e-04  1.000e-04  1.000e+04 ( 1.000e-13)
213        Index:  2.075e+00  4.120e+00  0.000e+00  1.000e+01 (-1.000e+00)
214        Scale:  2.189e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
515    Prefactor:  1.075e+00  2.468e-01  0.000e+00  1.000e+01 ( 1.000e+00)
516        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
517        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
514   Normalization:  2.128e-02  3.104e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 33.243 22.747

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/201767/cmap_HighResolution_557884801_558144001_4FGL_J0212.9+2244_daily_bin1229.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.16e-02', job_status='DONE', photon_flux_upper_limit='5.52e-07', time_completed='2021-08-15 11:53:20.963596', job_id='201767', GAL2='1.07', fit_tolerance='1e-08', EG2='0.02', EG='0.02', time_epoch_completed='1629053600.96', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='-3.05e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.05' WHERE bin_id='1229' AND source_name='4FGL J0212.9+2244' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 15 11:53:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0051>
Subject: Job 201767: <4FGL_J0212.9+2244_daily_bin1229> in cluster <slac> Done

Job <4FGL_J0212.9+2244_daily_bin1229> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 15 11:40:17 2021
Job was executed on host(s) <bullet0051>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 15 11:40:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 15 11:40:26 2021
Terminated at Sun Aug 15 11:53:22 2021
Results reported at Sun Aug 15 11:53:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0212.9+2244_daily_bin1229 33.2427 22.7466 557884801 558144001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0212.9+2244 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   536.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             214.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   778 sec.
    Turnaround time :                            785 sec.

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

